From b0fc3d923b64f95f4b3d503a8bc5c8c85bd8dd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Ch=C3=A1vez?= Date: Fri, 7 Feb 2025 12:47:33 -0500 Subject: [PATCH] feat: Add drag and drop to `LIBRARY_SUPPORTED_BLOCKS` (#1651) Add drag and drop v2 to LIBRARY_SUPPORTED_BLOCKS to enable the block by default --- .env | 2 +- .env.development | 2 +- .env.test | 2 +- src/library-authoring/add-content/AddContentContainer.test.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 831aeb2a2..1ace48c15 100644 --- a/.env +++ b/.env @@ -44,4 +44,4 @@ INVITE_STUDENTS_EMAIL_TO='' ENABLE_HOME_PAGE_COURSE_API_V2=true ENABLE_CHECKLIST_QUALITY='' ENABLE_GRADING_METHOD_IN_PROBLEMS=false -LIBRARY_SUPPORTED_BLOCKS="problem,video,html" +LIBRARY_SUPPORTED_BLOCKS="problem,video,html,drag-and-drop-v2" diff --git a/.env.development b/.env.development index 23b726e5e..f3e247e7c 100644 --- a/.env.development +++ b/.env.development @@ -47,4 +47,4 @@ INVITE_STUDENTS_EMAIL_TO="someone@domain.com" ENABLE_HOME_PAGE_COURSE_API_V2=true ENABLE_CHECKLIST_QUALITY=true ENABLE_GRADING_METHOD_IN_PROBLEMS=false -LIBRARY_SUPPORTED_BLOCKS="problem,video,html" +LIBRARY_SUPPORTED_BLOCKS="problem,video,html,drag-and-drop-v2" diff --git a/.env.test b/.env.test index b9e352ebc..7ee23dd9f 100644 --- a/.env.test +++ b/.env.test @@ -39,4 +39,4 @@ INVITE_STUDENTS_EMAIL_TO="someone@domain.com" ENABLE_HOME_PAGE_COURSE_API_V2=true ENABLE_CHECKLIST_QUALITY=true ENABLE_GRADING_METHOD_IN_PROBLEMS=false -LIBRARY_SUPPORTED_BLOCKS="problem,video,html" +LIBRARY_SUPPORTED_BLOCKS="problem,video,html,drag-and-drop-v2" diff --git a/src/library-authoring/add-content/AddContentContainer.test.tsx b/src/library-authoring/add-content/AddContentContainer.test.tsx index 229948c39..1f8a785f7 100644 --- a/src/library-authoring/add-content/AddContentContainer.test.tsx +++ b/src/library-authoring/add-content/AddContentContainer.test.tsx @@ -59,7 +59,7 @@ describe('', () => { expect(screen.queryByRole('button', { name: /text/i })).toBeInTheDocument(); expect(screen.queryByRole('button', { name: /problem/i })).toBeInTheDocument(); expect(screen.queryByRole('button', { name: /open reponse/i })).not.toBeInTheDocument(); // Excluded from MVP - expect(screen.queryByRole('button', { name: /drag drop/i })).not.toBeInTheDocument(); // Excluded from MVP + expect(screen.queryByRole('button', { name: /drag drop/i })).toBeInTheDocument(); expect(screen.queryByRole('button', { name: /video/i })).toBeInTheDocument(); expect(screen.queryByRole('button', { name: /advanced \/ other/i })).not.toBeInTheDocument(); // Excluded from MVP expect(screen.queryByRole('button', { name: /copy from clipboard/i })).not.toBeInTheDocument();