Skip to content

Reduce the use of Webkit in browser tests #8578

@benmccann

Description

@benmccann

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

Importance

i cannot use SvelteKit without it

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions