-
Notifications
You must be signed in to change notification settings - Fork 945
Introduce Safari browser testing #8396
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
Conversation
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (150,199 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.Test Logs |
2a43d59
to
5b2cad7
Compare
b2e32d2
to
e8d9bd6
Compare
e8d9bd6
to
849be6a
Compare
This is part of an effort to bring back cross-browser testing to the SDK.
This PR includes a custom Karma plugin,
karma-safari-launcher
, that is forked from https://github.com/karma-runner/karma-safari-launcher. The original plugin is no longer maintained, and has been broken since 2018. This custom plugin fixes the main issue with the previous plugin, where a file picker dialog is opened when Safari is launched, since we attempt to open a file that is opened outside of the Safari data directory (Library/Containers/com.apple.Safari/Data
). To fix the issue, we open an HTML trampoline in the Safari data directory, that then redirects us to the URL where the karma tests are hosted.