Skip to content

test(e2e): add tests for the progress reset flow - #54614

Merged
huyenltnguyen merged 6 commits into
freeCodeCamp:mainfrom
huyenltnguyen:test/progress-reset
May 13, 2024
Merged

huyenltnguyen merged 6 commits into
freeCodeCamp:mainfrom
huyenltnguyen:test/progress-reset

Conversation

@huyenltnguyen

@huyenltnguyen huyenltnguyen commented May 2, 2024 •

Copy link
Copy Markdown
Member

Checklist:

When I was working on #54542, I found that we don't have tests for the progress reset flow. But adding tests for it requires some code cleanup so I decided to split the work to a separate PR.

This PR:

  • Renames the existing reset-modal.spec.ts to challenge-reset-modal.spec.ts
    • We have two reset modals, both are namedreset-modal.tsx, but one is for resetting the code of a challenge and one is for resetting all progress
  • Adds progress-reset-modal.spec.ts
  • Removes the Cypress test for the progress reset modal
  • Removes some assertions from a test in settings.spec.ts since they are redundant

@github-actions github-actions Bot added the scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. label May 2, 2024
Comment thread e2e/settings.spec.ts Resolved
Comment thread e2e/settings.spec.ts Resolved
@huyenltnguyen
huyenltnguyen marked this pull request as ready for review May 3, 2024 09:37
@huyenltnguyen
huyenltnguyen requested a review from a team May 3, 2024 09:37

@naomi-lgbt naomi-lgbt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@huyenltnguyen huyenltnguyen mentioned this pull request May 6, 2024
61 tasks done
@huyenltnguyen huyenltnguyen added the MERGE CONFLICT! To be applied to PR's that have a merge conflict and need updating label May 10, 2024
@huyenltnguyen
huyenltnguyen merged commit 6c3e1ce into freeCodeCamp:main May 13, 2024
@huyenltnguyen
huyenltnguyen deleted the test/progress-reset branch May 13, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MERGE CONFLICT! To be applied to PR's that have a merge conflict and need updating scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants