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

chore(e2e): fix wdio config for Chrome #2251

Merged
merged 1 commit into from
Feb 17, 2025
Merged

chore(e2e): fix wdio config for Chrome #2251

merged 1 commit into from
Feb 17, 2025

Conversation

smalluban
Copy link
Collaborator

@smalluban smalluban commented Feb 13, 2025

The recent update of Chrome introduced a problem with the browser.switchWindow() API, which closes the whole browser and makes tests fail immediately after.

I tried many different approaches (from temporarily fixed Chrome version - v131 and older passes tests) to try to avoid the bug/feature of Chrome, but without success. However, the root problem is that the onboarding page automatically opens after an extension is installed. If we disable the automatic opening of that page, we can fix the issue using the latest Chrome.

I have used the --debug mode of the extension build to add conditions in the background to prevent onboarding from opening automatically. It is pointless to create a separate flag for it.

The good side-effect of using debug mode is sending telemetry signals to dev env, so for example engaged signals are not saved on prod (which can be many during a day, as every run of tests sends this signal).

@smalluban smalluban force-pushed the fix-wdio branch 15 times, most recently from 981be67 to 5d3a5f2 Compare February 14, 2025 13:25
@smalluban smalluban merged commit bfd413a into main Feb 17, 2025
2 checks passed
@smalluban smalluban deleted the fix-wdio branch February 17, 2025 08:55
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