From 38499b226eebe8d70344ac893157c3f99e8cf6e8 Mon Sep 17 00:00:00 2001 From: Ian Sanders Date: Wed, 20 Nov 2024 20:52:40 +0000 Subject: [PATCH] Update test config --- e2e/components/IconButton.test.ts | 16 +++--- package-lock.json | 90 ++++++++++++++++--------------- package.json | 3 +- 3 files changed, 57 insertions(+), 52 deletions(-) diff --git a/e2e/components/IconButton.test.ts b/e2e/components/IconButton.test.ts index 86a6b3d1c26..83b00e325e1 100644 --- a/e2e/components/IconButton.test.ts +++ b/e2e/components/IconButton.test.ts @@ -308,12 +308,12 @@ test.describe('IconButton', () => { }) } }) - test.describe('Keyshortcuts', () => { + test.describe('Keybinding hint', () => { for (const theme of themes) { test.describe(theme, () => { test('default @vrt', async ({page}) => { await visit(page, { - id: 'components-iconbutton-features--keyshortcuts', + id: 'components-iconbutton-features--keybinding-hint', globals: { colorScheme: theme, }, @@ -322,13 +322,13 @@ test.describe('IconButton', () => { // Default state await page.keyboard.press('Tab') // focus on icon button expect(await page.screenshot({animations: 'disabled'})).toMatchSnapshot( - `IconButton.Keyshortcuts.${theme}.png`, + `IconButton.Keybinding Hint.${theme}.png`, ) }) test('axe @aat', async ({page}) => { await visit(page, { - id: 'components-iconbutton-features--keyshortcuts', + id: 'components-iconbutton-features--keybinding-hint', globals: { colorScheme: theme, }, @@ -340,12 +340,12 @@ test.describe('IconButton', () => { } }) - test.describe('Keyshortcuts on Description', () => { + test.describe('Keybinding hint on Description', () => { for (const theme of themes) { test.describe(theme, () => { test('default @vrt', async ({page}) => { await visit(page, { - id: 'components-iconbutton-features--keyshortcuts-on-description', + id: 'components-iconbutton-features--keybinding-hint-on-description', globals: { colorScheme: theme, }, @@ -354,13 +354,13 @@ test.describe('IconButton', () => { // Default state await page.keyboard.press('Tab') // focus on icon button expect(await page.screenshot({animations: 'disabled'})).toMatchSnapshot( - `IconButton.Keyshortcuts on Description.${theme}.png`, + `IconButton.Keybinding Hint on Description.${theme}.png`, ) }) test('axe @aat', async ({page}) => { await visit(page, { - id: 'components-iconbutton-features--keyshortcuts-on-description', + id: 'components-iconbutton-features--keybinding-hint-on-description', globals: { colorScheme: theme, }, diff --git a/package-lock.json b/package-lock.json index 8394b00ba12..c467cbb127c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,11 +19,12 @@ "@github/markdownlint-github": "^0.6.0", "@github/prettier-config": "0.0.6", "@mdx-js/react": "1.6.22", - "@playwright/test": "^1.47.2", + "@playwright/test": "1.49.0", "@prettier/sync": "0.5.1", "@primer/stylelint-config": "13.1.1", "@size-limit/preset-big-lib": "11.1.6", "@types/jest": "29.5.12", + "@types/node": "22.9.1", "@typescript-eslint/eslint-plugin": "^7.11.0", "@typescript-eslint/parser": "^7.3.1", "eslint": "8.56.0", @@ -5891,13 +5892,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.47.2", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.47.2.tgz", - "integrity": "sha512-jTXRsoSPONAs8Za9QEQdyjFn+0ZQFjCiIztAIF6bi1HqhBzG9Ma7g1WotyiGqFSBRZjIEqMdT8RUlbk1QVhzCQ==", + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.49.0.tgz", + "integrity": "sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.47.2" + "playwright": "1.49.0" }, "bin": { "playwright": "cli.js" @@ -7630,15 +7631,6 @@ "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", "dev": true }, - "node_modules/@storybook/react-vite/node_modules/@types/node": { - "version": "22.5.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", - "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", - "dev": true, - "dependencies": { - "undici-types": "~6.19.2" - } - }, "node_modules/@storybook/react-vite/node_modules/acorn": { "version": "7.4.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", @@ -7733,12 +7725,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@storybook/react-vite/node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", - "dev": true - }, "node_modules/@storybook/react/node_modules/@storybook/react-dom-shim": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/@storybook/react-dom-shim/-/react-dom-shim-8.3.2.tgz", @@ -7759,14 +7745,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@storybook/react/node_modules/@types/node": { - "version": "22.5.4", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.19.2" - } - }, "node_modules/@storybook/react/node_modules/acorn": { "version": "7.4.1", "dev": true, @@ -7789,11 +7767,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@storybook/react/node_modules/undici-types": { - "version": "6.19.8", - "dev": true, - "license": "MIT" - }, "node_modules/@storybook/source-loader": { "version": "8.3.5", "resolved": "https://registry.npmjs.org/@storybook/source-loader/-/source-loader-8.3.5.tgz", @@ -8590,11 +8563,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "20.12.11", + "version": "22.9.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.1.tgz", + "integrity": "sha512-p8Yy/8sw1caA8CdRIQBG5tiLHmxtQKObCijiAa9Ez+d4+PRffM4054xbju0msf+cvhJpnFEeNjxmVT/0ipktrg==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.19.8" } }, "node_modules/@types/normalize-package-data": { @@ -22629,13 +22604,13 @@ } }, "node_modules/playwright": { - "version": "1.47.2", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.47.2.tgz", - "integrity": "sha512-nx1cLMmQWqmA3UsnjaaokyoUpdVaaDhJhMoxX2qj3McpjnsqFHs516QAKYhqHAgOP+oCFTEOCOAaD1RgD/RQfA==", + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.49.0.tgz", + "integrity": "sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.47.2" + "playwright-core": "1.49.0" }, "bin": { "playwright": "cli.js" @@ -22648,9 +22623,9 @@ } }, "node_modules/playwright-core": { - "version": "1.47.2", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.47.2.tgz", - "integrity": "sha512-3JvMfF+9LJfe16l7AbSmU555PaTl2tPyQsVInqm3id16pdDfvZ8TTZ/pyzmkbDrZTQefyzU7AIHlZqQnxpqHVQ==", + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.49.0.tgz", + "integrity": "sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==", "dev": true, "license": "Apache-2.0", "bin": { @@ -28817,7 +28792,9 @@ } }, "node_modules/undici-types": { - "version": "5.26.5", + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "dev": true, "license": "MIT" }, @@ -28931,6 +28908,16 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/unified-engine/node_modules/@types/node": { + "version": "20.17.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.6.tgz", + "integrity": "sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.19.2" + } + }, "node_modules/unified-engine/node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", @@ -30696,6 +30683,16 @@ } } }, + "packages/react/node_modules/@types/node": { + "version": "20.12.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.11.tgz", + "integrity": "sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } + }, "packages/react/node_modules/ansi-styles": { "version": "4.3.0", "dev": true, @@ -30836,6 +30833,13 @@ "node": ">= 8" } }, + "packages/react/node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true, + "license": "MIT" + }, "packages/react/node_modules/wrap-ansi": { "version": "7.0.0", "dev": true, diff --git a/package.json b/package.json index cf3ab916a77..fa698f7fa40 100644 --- a/package.json +++ b/package.json @@ -47,11 +47,12 @@ "@github/markdownlint-github": "^0.6.0", "@github/prettier-config": "0.0.6", "@mdx-js/react": "1.6.22", - "@playwright/test": "^1.47.2", + "@playwright/test": "1.49.0", "@prettier/sync": "0.5.1", "@primer/stylelint-config": "13.1.1", "@size-limit/preset-big-lib": "11.1.6", "@types/jest": "29.5.12", + "@types/node": "22.9.1", "@typescript-eslint/eslint-plugin": "^7.11.0", "@typescript-eslint/parser": "^7.3.1", "eslint": "8.56.0",