-
-
Notifications
You must be signed in to change notification settings - Fork 36k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write tests for modals #53895
Comments
I believe I spotted the existing Playwright test for the donation modal. There is the modal body itself that appears to need a fair bit of tests like the animation, the bear block completion illustration, the rows, the confirmation, and the header. Is this something I should consider working on in this file? |
@a2937 That's my least favorite modal (because of its complexity), so feel free to look into it 🙂 I think we can use that Just a note: If you need to add new tests, try to avoid the Here is our guide to working with Playwright: https://contribute.freecodecamp.org/#/how-to-add-playwright-tests. |
Closing this issue as we have decided to incorporate tests in the migration work, rather than making the changes in phases. The tests will be part of #52759. |
Description
Before we migrate the
Modal
component (#52759), we want to ensure the existing modals have sufficient test coverage.If we already have a corresponding Playwright test file for the modal, check if the test suite covers all expected behaviors (conditional rendering logic, user interaction, keyboard usage, etc.). If we don't have a corresponding Playwright test file for the modal, add the file in.
Note: I think we might want to incorporate modal tests with the relevant user flows rather than having them in separate files, but we can move the tests around later when we have all of them in.
Guides
Task list
Tasks
The text was updated successfully, but these errors were encountered: