jquery/.github
Michał Gołębiowski-Owczarek da7057e9b0
Build: Run GitHub Action browser tests on Playwright WebKit
So far, we've been running browser tests on GitHub Actions in Chrome
and Firefox. Regular Safari is not available in GitHub Actions but
Playwright WebKit comes close to a dev version of Safari.

With this change, our GitHub CI & local test runs will invoke tests on
all actively developed browser engines on all PRs.

Also, our GitHub Actions browser tests are now running on Node.js 18.

Detection of the Playwright WebKit browser in support unit tests is done
by checking if the `test_browser` query parameter is set to `"Playwright"`;
this is a `karma-webkit-launcher` feature. Detecting that browser via
user agent as we normally do is hard as the UA on Linux is very similar
to a real Safari one but it actually uses a newer version of the engine.

In addition, we now allow to pass custom browsers when one needs it;
e.g., to run the tests in all three engines on Linux/macOS, run:
```
grunt && BROWSERS=ChromeHeadless,FirefoxHeadless,WebkitHeadless grunt karma:main
```

Closes gh-5190

(cherry picked from commit b02a257f98)
2023-01-24 00:12:55 +01:00
..
workflows Build: Run GitHub Action browser tests on Playwright WebKit 2023-01-24 00:12:55 +01:00
dependabot.yml Build: Add dependabot.yml config (GitHub Actions) 2022-06-27 18:34:50 +02:00
ISSUE_TEMPLATE.md Build: Advise to create test cases on JS Bin or CodePen, drop JSFiddle 2019-01-29 14:13:53 +01:00
lock.yml Misc: Add config for lockbot 2018-06-17 15:49:27 -04:00
PULL_REQUEST_TEMPLATE.md Docs: Remove the CLA checkbox in the pull request template 2021-10-18 18:09:37 +02:00