-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
WebKit tests #4847
WebKit tests #4847
Conversation
Test: "prevents navigation triggered by back button" False positive? Yes Reason for failure: The browsers block attempts to prevent navigation on a frame that's never had a user gesture.
False positive? Yes Reason for failure: Test checked for chrome specific error page.
Test: "client-side error from load() is malformed" False positive? Yes Reason for failure: The test matched error.stack instead of error.message and WebKit doesn't show the message as the first line of the stack trace
Tests: 1. 'resets focus' 2. 'focus works if page load has hash' 3. 'focus works when navigating to a hash on the same page' False positives? Yes Reason for failure: "Press tab to highlight each item on a webpage" accessibility setting is turned off in Playwright. Need to use Alt+Tab for WebKit instead.
Test: "includes correct page request headers" False positive? Yes Reason for failure: Test targeted headers that Safari doesn't support.
Test: "should load stuff after reloading by goto" False positive? Yes Reason for failure: module flag wasn't reset between playwright runs
|
thank you! |
While writing a test for a Safari only bug (PR #4846), the test suite exposed 13 false positives originating from browser specific behavior in the tests. This PR slightly tweaks the integration tests to be more browser agnostic and allows them to be run using WebKit. It doesn’t include changes to the Playwright config, so the WebKit tests would still be completely opt-in.
Tests changed and reasons for WebKit false positives:
"includes correct page request headers"
Test targeted headers that Safari doesn't support
1. "resets focus"
2. "focus works if page load has hash"
3. "focus works when navigating to a hash on the same page"
"Press tab to highlight each item on a webpage" accessibility setting is turned off in Playwright. Need to use Alt+Tab for WebKit instead.
"client-side error from load() is malformed"
The test matched error.stack instead of error.message and WebKit doesn't show the message as the first line of the stack trace
"prevents redirect loops"
Test checked for chrome specific error page.
"prevents navigation triggered by back button"
The browsers block attempts to prevent navigation on a frame that's never had a user gesture.
"should load stuff after reloading by goto"
Module flag wasn't reset between playwright runs
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpx changeset
and following the prompts. All changesets should bepatch
until SvelteKit 1.0