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

Fix concurrent test worker login failure #1033

Merged
merged 3 commits into from
Nov 30, 2023

Conversation

AaronPlave
Copy link
Contributor

When multiple workers login simultaneously it introduces a conflict where the backend attempts to create multiple users with the same username. Instead of having each worker login this PR refactors e2e tests so that login is performed once in global setup, stored in an auth file for the e2e tests, and then removed during teardown. See https://playwright.dev/docs/test-global-setup-teardown. This should make tests less flaky though certain tests may still be flaky for unrelated reasons.

@AaronPlave AaronPlave requested a review from a team as a code owner November 30, 2023 01:45
@AaronPlave AaronPlave self-assigned this Nov 30, 2023
@AaronPlave AaronPlave added this to the FY24 Q1 - UI Bug Fixes milestone Nov 30, 2023
@AaronPlave AaronPlave added the refactor A code change that neither fixes a bug nor adds a feature label Nov 30, 2023
Copy link
Collaborator

@duranb duranb left a comment

Choose a reason for hiding this comment

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

yaaaaas

@AaronPlave AaronPlave merged commit ae19d0b into develop Nov 30, 2023
@AaronPlave AaronPlave deleted the refactor/test-authentication-refactor branch November 30, 2023 19:26
JosephVolosin pushed a commit that referenced this pull request Aug 20, 2024
* Use global setup and teardown strategies to only login once for e2e tests
JosephVolosin pushed a commit that referenced this pull request Oct 21, 2024
* Use global setup and teardown strategies to only login once for e2e tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor A code change that neither fixes a bug nor adds a feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants