Skip to content

MNTOR-4267: Set e2e feature flags reliably #5917

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

Closed
wants to merge 2 commits into from
Closed

Conversation

Vinnl
Copy link
Collaborator

@Vinnl Vinnl commented May 22, 2025

(Second attempt; see if CI has no cache errors now.)

The manual calls to beforeEach were not guaranteerd to run before other beforeEach calls - some of which did the initial page navigation. This meant that some tests would sometimes be interacting with pages that would have been loaded without setting the x-forced-feature-flags header, and thus not have the feature flags applied.

This method was sourced from
microsoft/playwright#9468 (comment)

The tl;dr is that the scope: "test", auto: true makes sure the fixture sharedBeforeEach is loaded automatically before each test, without the test needing to manually specify them like they do e.g. for AuthPage, LandingPage, etc.

Vinnl and others added 2 commits May 22, 2025 14:35
The manual calls to `beforeEach` were not guaranteerd to run before
other `beforeEach` calls - some of which did the initial page
navigation. This meant that some tests would sometimes be
interacting with pages that would have been loaded without setting
the x-forced-feature-flags header, and thus not have the feature
flags applied.

This method was sourced from
microsoft/playwright#9468 (comment)
Copy link

@Vinnl
Copy link
Collaborator Author

Vinnl commented May 26, 2025

Another attempt at #5923.

@Vinnl Vinnl closed this May 26, 2025
@Vinnl Vinnl deleted the sharedBeforeEach branch May 26, 2025 08:58
Copy link

Cleanup completed - database 'blurts-server-pr-5917' destroyed, cloud run service 'blurts-server-pr-5917' destroyed

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.

1 participant