Skip to content

feat: convert c-sharp exam tests to Playwright - #54946

Merged
moT01 merged 4 commits into
freeCodeCamp:mainfrom
Sembauke:feat/convert-c-sharp-exam-to-playwright
Jun 4, 2024
Merged

moT01 merged 4 commits into
freeCodeCamp:mainfrom
Sembauke:feat/convert-c-sharp-exam-to-playwright

Conversation

@Sembauke

@Sembauke Sembauke commented May 23, 2024 •

Copy link
Copy Markdown
Member

Checklist:

Note

Should show prerequisites alert and have "start exam" button disabled' is covered inexam-show-qualified.spec.ts

@github-actions github-actions Bot added the scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. label May 23, 2024
@github-actions github-actions Bot added the platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. label May 23, 2024
@Sembauke
Sembauke marked this pull request as ready for review May 23, 2024 12:33
@Sembauke
Sembauke requested a review from a team May 23, 2024 12:33
@Sembauke Sembauke mentioned this pull request May 23, 2024
61 tasks done
@moT01 moT01 added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label May 24, 2024
@Sembauke
Sembauke requested a review from moT01 May 29, 2024 05:01

@moT01 moT01 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.

I'm getting an issue locally when running the different browsers sequentially...

Screenshot 2024-05-31 at 9 52 17 AM

After the first run, the survey isn't getting reset. So when the next browser goes to the page, the survey is already completed. The script to delete the surveys doesn't delete the survey that gets added cause it has a different ID when it gets created by the test. We could run a query in this file to delete all surveys with the certified user ID?

@Sembauke

Sembauke commented Jun 3, 2024

Copy link
Copy Markdown
Member Author

Alright @moT01 this should be good now.

Just in case this ever gets run against a real db.
@ojeytonwilliams

Copy link
Copy Markdown
Contributor

Hey Sem, while it's incredibly unlikely that these scripts are ever run against real dbs, it's safer to limit their impact. To do so, I went for a middle ground between paranoia and usability, by deleting all of the surveys associated with test users, but nothing else.

@Sembauke

Sembauke commented Jun 4, 2024

Copy link
Copy Markdown
Member Author

@moT01 Can you give this one another look?

@moT01
moT01 merged commit 6d7ccc9 into freeCodeCamp:main Jun 4, 2024
@Sembauke
Sembauke deleted the feat/convert-c-sharp-exam-to-playwright branch June 4, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. 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.

4 participants