You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This changes how the browser test runner works by default. It will now
automatically detect the browser type and:
- Use the same options used in CircleCI (for chrome and firefox)
- Create and delete a temporary profile directory
- Terminate the browser
Adds two new options:
- `EMTEST_BROWSER_AUTO_CONFIG` or `--browser-auto-config`: disables the
automatic configuration,
- `EMTEST_HEADLESS` or `--headless`: run the test in headless mode
Last, two flags were removed from chrome:
- `--disk-cache-dir` this was causing errors (on CI and locally)
- `--incognito` not allowed in corporate environments and not needed
since the profile directory is automatically deleted.
These changes make it much easier to reproduce the circle ci environment
locally and make running a test multiple times more reliable.
---------
Co-authored-by: Alon Zakai <[email protected]>
print('Running the browser tests. Make sure the browser allows popups from localhost.')
216
205
print()
@@ -220,7 +209,7 @@ def proxy_to_worker(self):
220
209
221
210
defrequire_jspi(self):
222
211
ifnotis_chrome():
223
-
self.skipTest(f'Current browser ({EMTEST_BROWSER}) does not support JSPI. Only chromium-based browsers ({CHROMIUM_BASED_BROWSERS}) support JSPI today.')
212
+
self.skipTest(f'Current browser ({common.EMTEST_BROWSER}) does not support JSPI. Only chromium-based browsers ({CHROMIUM_BASED_BROWSERS}) support JSPI today.')
self.skipTest(f'Current browser ({EMTEST_BROWSER}) does not support JSPI. Only chromium-based browsers ({CHROMIUM_BASED_BROWSERS}) support JSPI today.')
3297
+
self.skipTest(f'Current browser ({common.EMTEST_BROWSER}) does not support JSPI. Only chromium-based browsers ({CHROMIUM_BASED_BROWSERS}) support JSPI today.')
self.skipTest(f'Current browser ({EMTEST_BROWSER}) does not support JSPI. Only chromium-based browsers ({CHROMIUM_BASED_BROWSERS}) support JSPI today.')
4969
+
self.skipTest(f'Current browser ({common.EMTEST_BROWSER}) does not support JSPI. Only chromium-based browsers ({CHROMIUM_BASED_BROWSERS}) support JSPI today.')
0 commit comments