feat: frontend tests for platform/ forms and pages#414
Merged
Conversation
Agent-Logs-Url: https://github.com/AvaCodeSolutions/django-email-learning/sessions/a24da982-8e72-4f1b-b728-72ef31917591 Co-authored-by: payamnj <11951509+payamnj@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
payamnj
May 5, 2026 13:29
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No frontend tests existed for any of the
platform/components. This adds 18 test files covering all major forms, dialogs, and page-level components.New tests (
frontend/src/test/platform/)Dialogs & confirmation forms
DeleteContentForm,DeleteCoursePopup,DeleteUserDialog— confirmation message interpolation, cancel/delete callbacks, API integrationEnableCourseSwitchPopup— enable/disable title variants, confirm flowData-entry forms
OrganizationForm— create/edit modes, required-field and URL validation, success callbackUserForm— add/edit modes, role descriptions, instructor display-name validation (whitespace-only bypass of HTMLrequired)CreateImapForm— field validation, folder chip add/remove, submitCreateInstructorForm— email/display-name validation, submitEnrollMenu— dropdown open, manual enrollment dialog, email validation, success flowComposite components
AddImapConnectionForm— no-connection accordion vs. existing-connection selectAddInstructorsSection— no-instructor accordion, instructor select label, pre-selection chipsContentTable— fetch-loaded rows, delete and click events dispatched viaeventHandlerQuestionForm— viewer vs. editor role gating, delete event, options tableEnrollment & pages
EnrollmentList— empty state, row rendering, row clickCourses,Organizations,ApiKeys— full page render via Base/MenuBar with fetch mocks, role-gated buttons, dialogsSource changes
Courses.jsx,Organizations.jsx, andApiKeys.jsxare Django-template entry points that define a component and immediately callrender({children: <Component />})with no export. Addedexport defaultto each so tests can import the component directly — the runtime behavior is unchanged.