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
This commit is contained in:
Chris Chávez
2025-02-07 12:47:33 -05:00
committed by GitHub
parent 05dddce920
commit b0fc3d923b
4 changed files with 4 additions and 4 deletions

2
.env
View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -59,7 +59,7 @@ describe('<AddContentContainer />', () => {
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();