-
Notifications
You must be signed in to change notification settings - Fork 8
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
Improve cross browser test coverage: enable WebKit tests on CI #990
Comments
# Pull Request ## 🤨 Rationale Fixes #984 ## 👩💻 Implementation As @rajsite and @msmithNI suggested in the linked issue, use `this.$fastController.isConnected` instead of `this.isConnected` in the table cell's `cellTemplateChanged()` method. ## 🧪 Testing I manually tested in Safari in Storybook and the Angular example app. Malcolm tested in Playwright's Safari. Auto tests would be covered by #990. ## ✅ Checklist <!--- Review the list and put an x in the boxes that apply or ~~strike through~~ around items that don't (along with an explanation). --> - [x] I have updated the project documentation to reflect my changes or determined no changes are needed.
…or tests (#1067) # Pull Request ## 🤨 Rationale Partially addresses #990 Since we've recently uncovered several Safari/WebKit-specific bugs, we want to make it easier for developers to catch issues in Safari (especially if they only have Windows machines). ## 👩💻 Implementation - Add `playwright` as dev dependency - Uptake Playwright for providing Chromium/Firefox/WebKit binaries for the test runs - Remove `puppeteer` dependency (was used for Chromium binaries) - Add `karma-webkit-launcher` as dev dependencies to nimble-components - [karma-webkit-launcher](https://github.com/google/karma-webkit-launcher) uses Playwright to launch a WebKit-based browser for tests. - Playwright-WebKit is always used if Playwright is available; we can add a separate command for Safari/Mac test running if we want to. - Add commands `test-webkit`, `test-webkit:debugger` and `storybook-open-webkit` to nimble-components. These will use the Playwright-provided WebKit binaries. - Update docs to mention new test commands. ## 🧪 Testing - Ran commands locally (note: we have some pre-existing WebKit and Firefox test failures) - PR/CI build. Note that this PR will not enable the tests to run automatically against WebKit on our PR/CI builds. When I tried that, I ran into issues with the `npm run test` stage of the build hanging (though it looked like the WebKit tests had already completed), so enabling the tests there will need some more investigation. We also have some pre-existing test failures on both Firefox and WebKit/Safari that we need to address in some manner. ## ✅ Checklist - [x] I have updated the project documentation to reflect my changes or determined no changes are needed.
|
@jattasNI that's mostly accurate. Initially I thought that it would be a quick fix for karma-webkit-launcher but I'm not sure about that anymore. A few months ago I tried essentially forking karma-webkit-launcher (copied the code to a local source file/ Karma plugin) to test out the process cleanup code that was already there, but I didn't get it working. (That was this branch / this build result) So options are probably
|
🧹 Tech Debt
We currently run unit tests in only Chromium and our Chromatic tests in Chromium and Firefox. More test coverage would be better to help catch issues like #984 via automated rather than manual testing.
Possible directions (might split this issue to track these separately)
add commands to run unit tests on other browsers and run them locally (I tried this briefly and discovered several failing in Safari and Firefox)Donerun tests as part of our PR build. Would require some research to find out best practices for getting agents with Firefox and webkit Done for Firefox
we'd also want a way to disable specific tests in specific browsers. We could consider the approach we use for WebVIs where certain tags are added to test names.DoneConsider whether we want to run cross-browser testing for nimble-tokens, nimble-angular, and nimble-blazor
Already done by @fredvisser :
Related PRs
The text was updated successfully, but these errors were encountered: