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

de-flake a test #1166

Merged
merged 3 commits into from
Jun 25, 2024
Merged

de-flake a test #1166

merged 3 commits into from
Jun 25, 2024

Conversation

ChristopherChudzicki
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki commented Jun 25, 2024

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/4222

Description (What does it do?)

This PR should resolve

That issue reported a test within DepartmentListingPage.test.tsx failing 2/3 times due to finding 'too many elements with heading "role" and name ...'. Locally, I was getting about 2 failures out of 1000 runs, so something seems to have changed since that issue was reported.

Anyway, this PR increases school names from 1 word to 3 words, so name collisions should be extremely rare now. (We could also make them unique, but Faker has deprecated that method so I'd rather not add more usages).

Screenshots (if appropriate):

How can this be tested?

CI should pass. Note CI checks on commit 1675010 passed, which use 1000 runs of that test.

Additional Context

@ChristopherChudzicki ChristopherChudzicki added the Needs Review An open Pull Request that is ready for review label Jun 25, 2024
@ChristopherChudzicki ChristopherChudzicki changed the title Cc/4222 flaky de-flake a test Jun 25, 2024
@ChristopherChudzicki ChristopherChudzicki marked this pull request as ready for review June 25, 2024 18:52
Copy link
Contributor

@gumaerc gumaerc left a comment

Choose a reason for hiding this comment

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

👍

@ChristopherChudzicki ChristopherChudzicki merged commit bace7e4 into main Jun 25, 2024
12 checks passed
@odlbot odlbot mentioned this pull request Jun 26, 2024
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review An open Pull Request that is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants