Skip to content

Commit

Permalink
use playwright backstop engine and update puppeteer syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
roshaanbajwa committed Jul 9, 2024
1 parent 956cbda commit 75ed804
Show file tree
Hide file tree
Showing 8 changed files with 254 additions and 527 deletions.
767 changes: 247 additions & 520 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-postcss": "^4.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.1.3",
"follow-redirects": "^1.15.6",
"gulp": "^5.0.0",
"gulp-clean": "^0.4.0",
Expand All @@ -56,9 +56,9 @@
"jest-environment-puppeteer": "^10.0.1",
"minimist": "^1.2.8",
"nunjucks": "^3.2.4",
"prettier": "^2.7.1",
"puppeteer": "^18.1.0",
"sass": "^1.77.4",
"prettier": "^3.3.2",
"puppeteer": "^22.12.1",
"sass": "^1.77.6",
"start-server-and-test": "^2.0.4",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^9.0.5",
Expand Down
2 changes: 1 addition & 1 deletion tests/backstop/backstop.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
debug: false,
debugWindow: false,
dockerCommandTemplate: 'docker run --rm --network=host --mount type=bind,source="{cwd}",target=/src backstopjs/backstopjs:{version} {backstopCommand} {args}',
engine: 'puppeteer',
engine: 'playwright',
engineOptions: {
args: ['--no-sandbox'],
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/integration/puppeteer/tabs.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import puppeteer from 'puppeteer'
const iPhone = puppeteer.devices['iPhone 6']
import puppeteer, { KnownDevices } from 'puppeteer'
const iPhone = KnownDevices['iPhone 6']

describe('Tabs', () => {
let page
Expand Down

0 comments on commit 75ed804

Please sign in to comment.