Skip to content

Commit

Permalink
Use Firefox from playwright (#481)
Browse files Browse the repository at this point in the history
* Use Firefox from playwright

* Skip webkit on Ubuntu
  • Loading branch information
fcollonval authored Nov 29, 2022
1 parent 0bd799a commit 2731adf
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
browser: [chrome-headless, firefox-headless]
browser: [chrome-headless, firefox-headless, webkit-headless]
exclude:
# macos and firefox-headless seems to consistently fail.
- os: macos-latest
browser: firefox-headless
# Playwright webkit binary is not compatible with ubuntu
- os: ubuntu-latest
browser: webkit-headless
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions packages/algorithm/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/application/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/collections/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/commands/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/coreutils/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/disposable/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/domutils/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/dragdrop/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/keyboard/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/messaging/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/polling/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/properties/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/signaling/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/virtualdom/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down
2 changes: 2 additions & 0 deletions packages/widgets/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Distributed under the terms of the Modified BSD License.
*/

process.env.FIREFOX_BIN = require('playwright').firefox.executablePath();
process.env.FIREFOX_HEADLESS_BIN = process.env.FIREFOX_BIN;
process.env.WEBKIT_BIN = require('playwright').webkit.executablePath();
process.env.WEBKIT_HEADLESS_BIN = process.env.WEBKIT_BIN;

Expand Down

0 comments on commit 2731adf

Please sign in to comment.