Skip to content
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

test: improve shortcuts modal spec #54544

Merged

Conversation

ojeytonwilliams
Copy link
Contributor

Checklist:

I noticed on #54518 that this spec is flaky https://github.com/freeCodeCamp/freeCodeCamp/actions/runs/8845803793/job/24290758729

I'm not 100% confident this fixes that, but it is considerably faster and a bit tidier.

In general, we should be able to make the tests more performant if we only test the UI once in the spec that's concerned with that portion of the UI. When a spec needs the db to be in a particular state before starting, we should set that up via db calls or, preferably, api calls.

@ojeytonwilliams ojeytonwilliams requested a review from a team as a code owner April 26, 2024 11:57
@github-actions github-actions bot added the scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. label Apr 26, 2024
@ojeytonwilliams ojeytonwilliams changed the title refactor: consolidate tests test: improve shortcuts modal spec Apr 26, 2024
@Sembauke Sembauke added the status: merge conflict To be applied to PR's that have a merge conflict and need updating label Apr 29, 2024
@ojeytonwilliams ojeytonwilliams added status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. and removed status: merge conflict To be applied to PR's that have a merge conflict and need updating labels May 2, 2024
@huyenltnguyen huyenltnguyen merged commit 2782f97 into freeCodeCamp:main May 2, 2024
22 checks passed
@ojeytonwilliams ojeytonwilliams deleted the test/shortcuts-modal branch May 2, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants