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

SWC-6536: ensure that userId is set before saving storage state #5180

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

hallieswan
Copy link
Contributor

No description provided.

Comment on lines 50 to 55
await loginTestUser(userPage, user.username, user.password)
// ensure that session_marker, i.e. user id, is set before saving state
await expect(async () => {
await getUserIdFromLocalStorage(userPage)
}).toPass()
await userPage.context().storageState({ path: storageStatePath })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tests run more quickly on the larger runner, so ensure that userId is set before saving state

Copy link
Contributor

Choose a reason for hiding this comment

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

It's so funny to me when slow machines hide race conditions

@hallieswan hallieswan marked this pull request as ready for review September 6, 2023 22:57
@hallieswan hallieswan self-assigned this Sep 6, 2023
@hallieswan hallieswan merged commit 66f4df0 into Sage-Bionetworks:develop Sep 7, 2023
2 checks passed
@hallieswan hallieswan deleted the SWC-6536 branch September 7, 2023 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants