Skip to content

Conversation

@rwood-moz
Copy link
Contributor

@rwood-moz rwood-moz commented Dec 4, 2025

Fixes #1369: Restructure the nightly E2E test suite into multiple BrowserStack sessions to fix authentication issues. Also adds a check at the start of each test in case the Appointment session has timed out, then it will log in again and save the auth state before the test starts. This is still not foolproof in that the Appointment sign in session might expire during a test and then the test would fail, however in that case the very next test would sign in again.

BrowserStack links here for desktop tests and mobile tests on stage.

@rwood-moz rwood-moz force-pushed the testing/improve-e2e branch from 92ca0fb to 7ad5cdf Compare December 4, 2025 16:31
@rwood-moz rwood-moz force-pushed the testing/improve-e2e branch from 7ad5cdf to 5a6615c Compare December 4, 2025 18:57
@rwood-moz rwood-moz force-pushed the testing/improve-e2e branch from 5a6615c to d2818fe Compare December 4, 2025 19:28
@rwood-moz rwood-moz force-pushed the testing/improve-e2e branch from d2818fe to c29176d Compare December 4, 2025 20:57
@rwood-moz rwood-moz force-pushed the testing/improve-e2e branch from c29176d to fe26525 Compare December 4, 2025 21:25
@rwood-moz rwood-moz force-pushed the testing/improve-e2e branch from fe26525 to 2f3da8a Compare December 4, 2025 22:51
@rwood-moz rwood-moz force-pushed the testing/improve-e2e branch from 2f3da8a to f401580 Compare December 4, 2025 23:12
@rwood-moz rwood-moz force-pushed the testing/improve-e2e branch from f401580 to c9895e6 Compare December 5, 2025 19:55
@rwood-moz rwood-moz changed the title WIP: Fix nightly E2E test suite authentication issues in BrowserStack Improve nightly E2E test suite authentication issues in BrowserStack Dec 5, 2025
@rwood-moz rwood-moz marked this pull request as ready for review December 5, 2025 20:36
Copy link
Member

@MelissaAutumn MelissaAutumn left a comment

Choose a reason for hiding this comment

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

Looks fine to me, thank you!

I wonder if we can eventually figure out a wait to remove all these waits, seems like a lot of unfortunate busy work 😅.

constructor(page: Page) {
this.page = page;
this.signInHeaderText = this.page.getByText('Enter your password');
this.signInHeaderText = this.page.getByText('Sign in to your account');
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we can just hook into the localization file for appointment and then call it by the l10n key.

...sorry just thinking ahead, no action for this PR 😄

@rwood-moz
Copy link
Contributor Author

Looks fine to me, thank you!

I wonder if we can eventually figure out a wait to remove all these waits, seems like a lot of unfortunate busy work 😅.

Yes that would be ideal, but unfortunately the timing is different on local vs stage vs prod vs mobile (especially slower in BrowserStack), so it's pretty tricky. Thanks for the review!

@rwood-moz rwood-moz merged commit 10ba438 into main Dec 5, 2025
8 checks passed
@rwood-moz rwood-moz deleted the testing/improve-e2e branch December 5, 2025 20:48
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.

E2E Test Authentication Issues

3 participants