Skip to content

Commit

Permalink
Scripts: Upgrade Puppeteer to v10.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Nov 9, 2021
1 parent 9fed001 commit 0b75a95
Show file tree
Hide file tree
Showing 18 changed files with 343 additions and 1,402 deletions.
1,682 changes: 297 additions & 1,385 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions packages/e2e-test-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

## Unreleased

### Breaking Changes

- The peer `puppeteer` dependency has been updated from requiring `>=1.19` to requiring `>=11` (see [Breaking Changes](https://github.com/puppeteer/puppeteer/releases/tag/v11.0.0), [#36040](https://github.com/WordPress/gutenberg/pull/36040)).

## 5.4.6 (2021-11-07)

### New Features

- Added `disablePageDialogAccept` - Disable auto-accepting dialogs enabled by `enablePageDialogAccept` [#35828](https://github.com/WordPress/gutenberg/pull/35828).

## 5.4.0 (2021-07-21)
Expand Down
7 changes: 6 additions & 1 deletion packages/e2e-test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@
},
"peerDependencies": {
"jest": ">=26",
"puppeteer": ">=1.19.0"
"puppeteer": ">=11"
},
"peerDependenciesMeta": {
"puppeteer": {
"optional": true
}
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/src/auto-accept-page-dialogs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @typedef {import('puppeteer').Dialog} Dialog */
/** @typedef {import('puppeteer-core').Dialog} Dialog */

/**
* Callback which automatically accepts dialog.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { first } from 'lodash';

/** @typedef {import('puppeteer').ElementHandle} ElementHandle */
/** @typedef {import('puppeteer-core').ElementHandle} ElementHandle */

/**
* Finds a sidebar panel with the provided title.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @typedef {import('puppeteer').ElementHandle} ElementHandle */
/** @typedef {import('puppeteer-core').ElementHandle} ElementHandle */

/**
* Finds the button responsible for toggling the sidebar panel with the provided title.
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/src/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { last } from 'lodash';

/** @typedef {import('puppeteer').Page} Page */
/** @typedef {import('puppeteer-core').Page} Page */

/**
* Opens the preview page of an edited post.
Expand Down
4 changes: 4 additions & 0 deletions packages/e2e-tests/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- The peer `puppeteer` dependency has been updated from requiring `>=1.19` to requiring `>=11` (see [Breaking Changes](https://github.com/puppeteer/puppeteer/releases/tag/v11.0.0), [#36040](https://github.com/WordPress/gutenberg/pull/36040)).

## 2.5.0 (2021-09-09)

### New Features
Expand Down
7 changes: 6 additions & 1 deletion packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@
"peerDependencies": {
"jest": ">=26",
"jest-snapshot": ">=26",
"puppeteer": ">=1.19.0"
"puppeteer": ">=11"
},
"peerDependenciesMeta": {
"puppeteer": {
"optional": true
}
},
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
getEditedPostContent,
} from '@wordpress/e2e-test-utils';

/** @typedef {import('puppeteer').ElementHandle} ElementHandle */
/** @typedef {import('puppeteer-core').ElementHandle} ElementHandle */

describe( 'adding patterns', () => {
beforeEach( async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
pressKeyWithModifier,
} from '@wordpress/e2e-test-utils';

/** @typedef {import('puppeteer').ElementHandle} ElementHandle */
/** @typedef {import('puppeteer-core').ElementHandle} ElementHandle */

/**
* Waits for all patterns in the inserter to have a height, which should
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/editor/various/preview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
pressKeyWithModifier,
} from '@wordpress/e2e-test-utils';

/** @typedef {import('puppeteer').Page} Page */
/** @typedef {import('puppeteer-core').Page} Page */

/**
* Given the Page instance for the editor, opens preview drodpdown, and
Expand Down
4 changes: 4 additions & 0 deletions packages/jest-puppeteer-axe/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- The peer `puppeteer` dependency has been updated from requiring `>=1.19` to requiring `>=11` (see [Breaking Changes](https://github.com/puppeteer/puppeteer/releases/tag/v11.0.0), [#36040](https://github.com/WordPress/gutenberg/pull/36040)).

## 3.0.0 (2021-01-21)

### Breaking Changes
Expand Down
7 changes: 6 additions & 1 deletion packages/jest-puppeteer-axe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
},
"peerDependencies": {
"jest": ">=26",
"puppeteer": ">=1.19.0"
"puppeteer": ">=11"
},
"peerDependenciesMeta": {
"puppeteer": {
"optional": true
}
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-puppeteer-axe/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import AxePuppeteer from '@axe-core/puppeteer';

/** @typedef {import('puppeteer').Page} Page */
/** @typedef {import('puppeteer-core').Page} Page */

/** @typedef {import('axe-core').RunOptions} RunOptions */

Expand Down
4 changes: 4 additions & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- The `puppeteer-core` dependency has been updated from requiring `^10.1.0` to requiring `^11.0.0` (see [Breaking Changes](https://github.com/puppeteer/puppeteer/releases/tag/v11.0.0), [#36040](https://github.com/WordPress/gutenberg/pull/36040)).

## 19.1.0 (2021-11-07)

### Enhancements
Expand Down
6 changes: 1 addition & 5 deletions packages/scripts/config/jest-environment-puppeteer/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ async function readConfig() {
function getPuppeteer( { browser } ) {
switch ( browser.toLowerCase() ) {
case 'chromium':
try {
return require( 'puppeteer' );
} catch ( e ) {
return require( 'puppeteer-core' );
}
return require( 'puppeteer-core' );
case 'firefox':
return require( 'puppeteer-firefox' );
default:
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"postcss": "^8.2.15",
"postcss-loader": "^6.1.1",
"prettier": "npm:wp-prettier@2.2.1-beta-1",
"puppeteer-core": "^10.1.0",
"puppeteer-core": "^11.0.0",
"read-pkg-up": "^1.0.1",
"resolve-bin": "^0.4.0",
"sass": "^1.35.2",
Expand Down

0 comments on commit 0b75a95

Please sign in to comment.