-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the problem
The WebKit tests are flaky. My best guess is that the WebKit playwright integration is poorly maintained as it is likely the least used. fetch just sometimes doesn't run in both the form action tests (#8570) and in the caching tests (#8225). Playwright for WebKit also sometimes returns content that clearly isn't in the page (microsoft/playwright#17557)
We added WebKit tests after it was discovered that we had a scrolling bug in Safari (#4065).
This is the only Safari-specific issue I recall though it's possible there have been others. We had to tweak the tests a bit to get them working in WebKit as it handled things like focus, browser history, fetch headers, and displaying client errors slightly differently (#4847), but these things were all working in Safari and it was only the test code that had to be updated.
Describe the proposed solution
I think we should be more explicit about which things need to tested cross-browser. There are some things like our 'Routing' and 'Scrolling' tests that probably make sense to run on MacOS WebKit, but I'm not sure the rest do. I'd probably let everything run on Windows still as we do catch lots of errors that are Windows-specific and the test runner there has not been causing us the same kinds of headaches
Alternatives considered
- @dominikg has a PR open to switch webkit to chrome: chore: switch macos to chromium #8151
- @dummdidumm has PRs open to skip just a few tests on webkit (chore: skip form action tests on webkit build #8570) and make some others more able to be retried when they flake (chore: make some test retries possible to succeed #8571)
Importance
i cannot use SvelteKit without it
Additional Information
No response