diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 57562aa10d..92c3d8c39d 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -35,13 +35,13 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16.17.0 + node-version: 20.13.1 - uses: pnpm/action-setup@v2.0.1 name: Install pnpm id: pnpm-install with: - version: 7 + version: 8 - name: Install dependencies run: pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22a5aa817b..71afa55e30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,13 +33,13 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16.17.0 + node-version: 20.13.1 - uses: pnpm/action-setup@v2.0.1 name: Install pnpm id: pnpm-install with: - version: 7 + version: 8 - name: Install dependencies run: pnpm install diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fc118bddeb..e3de88e5ab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,7 +33,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16.17.0 + node-version: 20.13.1 - uses: pnpm/action-setup@v2.0.1 name: Install pnpm @@ -63,7 +63,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16.17.0 + node-version: 20.13.1 - uses: pnpm/action-setup@v2.0.1 name: Install pnpm @@ -106,7 +106,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16.17.0 + node-version: 20.13.1 - uses: pnpm/action-setup@v2.0.1 name: Install pnpm @@ -160,7 +160,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16.17.0 + node-version: 20.13.1 # pnpm @@ -201,7 +201,7 @@ jobs: key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }} path: ${{ env.PLAYWRIGHT_BROWSERS_PATH }} - - run: pnpm playwright install + - run: pnpm playwright install --with-deps if: steps.playwright-cache.outputs.cache-hit != 'true' # Run tests @@ -225,7 +225,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16.17.0 + node-version: 20.13.1 - uses: pnpm/action-setup@v2.0.1 name: Install pnpm diff --git a/e2e/kit/package.json b/e2e/kit/package.json index 1a656f9bce..71f847be74 100644 --- a/e2e/kit/package.json +++ b/e2e/kit/package.json @@ -25,7 +25,7 @@ }, "devDependencies": { "@kitql/helpers": "^0.8.2", - "@playwright/test": "1.42.1", + "@playwright/test": "1.44.0", "@sveltejs/adapter-auto": "^3.0.0", "@sveltejs/kit": "^2.5.3", "@sveltejs/vite-plugin-svelte": "^3.0.2", diff --git a/e2e/react/package.json b/e2e/react/package.json index d8fa61f143..1f90f942b2 100644 --- a/e2e/react/package.json +++ b/e2e/react/package.json @@ -37,7 +37,7 @@ "react-streaming-compat": "^0.3.18" }, "devDependencies": { - "@playwright/test": "1.30.0", + "@playwright/test": "1.44.0", "@types/react": "^18.0.27", "@types/react-dom": "^18.0.10", "@vitejs/plugin-react": "^3.1.0", diff --git a/e2e/svelte/.gitignore b/e2e/svelte/.gitignore index 059d22ede7..ca4b87f9e0 100644 --- a/e2e/svelte/.gitignore +++ b/e2e/svelte/.gitignore @@ -24,3 +24,5 @@ dist-ssr *.sw? $houdini +playwright-report +test-results diff --git a/e2e/svelte/package.json b/e2e/svelte/package.json index b28dc3a5b3..82bf918d2b 100644 --- a/e2e/svelte/package.json +++ b/e2e/svelte/package.json @@ -21,7 +21,7 @@ }, "devDependencies": { "@kitql/helpers": "^0.8.2", - "@playwright/test": "1.30.0", + "@playwright/test": "1.44.0", "@sveltejs/vite-plugin-svelte": "^2.0.2", "@tsconfig/svelte": "^3.0.0", "concurrently": "7.1.0", diff --git a/e2e/svelte/playwright.config.ts b/e2e/svelte/playwright.config.ts index bd898e101d..e3bb63ad9f 100644 --- a/e2e/svelte/playwright.config.ts +++ b/e2e/svelte/playwright.config.ts @@ -1,3 +1,5 @@ +import { defineConfig } from "@playwright/test"; + // eslint-disable-next-line @typescript-eslint/no-explicit-any const reporter = [['list']] if (process.env.CI) { @@ -5,8 +7,9 @@ if (process.env.CI) { reporter.push(['github']) } -const config = { +const config = defineConfig({ retries: process.env.CI ? 3 : 0, + testMatch: 'spec.ts', workers: 5, reporter, screenshot: 'only-on-failure', @@ -15,6 +18,6 @@ const config = { port: 3006, timeout: 120 * 1000, }, -} +}); export default config diff --git a/package.json b/package.json index 8b8990b576..315e1c4dc9 100755 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@changesets/changelog-git": "^0.1.14", "@changesets/changelog-github": "^0.4.8", "@changesets/cli": "^2.26.0", - "@playwright/test": "1.30.0", + "@playwright/test": "1.44.0", "@theguild/eslint-config": "^0.8.0", "@trivago/prettier-plugin-sort-imports": "^4.0.0", "@types/react": "^18.2.22", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7b70b7c56e..c372472cc8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,8 +34,8 @@ importers: specifier: ^2.26.0 version: 2.26.0 '@playwright/test': - specifier: 1.30.0 - version: 1.30.0 + specifier: 1.44.0 + version: 1.44.0 '@theguild/eslint-config': specifier: ^0.8.0 version: 0.8.0(eslint@8.57.0)(typescript@4.9.4) @@ -119,8 +119,8 @@ importers: specifier: ^0.8.2 version: 0.8.2 '@playwright/test': - specifier: 1.42.1 - version: 1.42.1 + specifier: 1.44.0 + version: 1.44.0 '@sveltejs/adapter-auto': specifier: ^3.0.0 version: 3.2.0(@sveltejs/kit@2.5.7) @@ -243,8 +243,8 @@ importers: version: 0.3.18(react-dom@18.3.0-canary-d6dcad6a8-20230914)(react@18.3.0-canary-d7a98a5e9-20230517) devDependencies: '@playwright/test': - specifier: 1.30.0 - version: 1.30.0 + specifier: 1.44.0 + version: 1.44.0 '@types/react': specifier: ^18.0.27 version: 18.0.37 @@ -291,8 +291,8 @@ importers: specifier: ^0.8.2 version: 0.8.2 '@playwright/test': - specifier: 1.30.0 - version: 1.30.0 + specifier: 1.44.0 + version: 1.44.0 '@sveltejs/vite-plugin-svelte': specifier: ^2.0.2 version: 2.0.2(svelte@3.57.0)(vite@4.1.1) @@ -2986,12 +2986,12 @@ packages: playwright-core: 1.30.0 dev: true - /@playwright/test@1.42.1: - resolution: {integrity: sha512-Gq9rmS54mjBL/7/MvBaNOBwbfnh7beHvS6oS4srqXFcQHpQCV1+c8JXWE8VLPyRDhgS3H8x8A7hztqI9VnwrAQ==} + /@playwright/test@1.44.0: + resolution: {integrity: sha512-rNX5lbNidamSUorBhB4XZ9SQTjAqfe5M+p37Z8ic0jPFBMo5iCtQz1kRWkEMg+rYOKSlVycpQmpqjSFq7LXOfg==} engines: {node: '>=16'} hasBin: true dependencies: - playwright: 1.42.1 + playwright: 1.44.0 dev: true /@polka/url@1.0.0-next.21: @@ -9938,18 +9938,18 @@ packages: hasBin: true dev: true - /playwright-core@1.42.1: - resolution: {integrity: sha512-mxz6zclokgrke9p1vtdy/COWBH+eOZgYUVVU34C73M+4j4HLlQJHtfcqiqqxpP0o8HhMkflvfbquLX5dg6wlfA==} + /playwright-core@1.44.0: + resolution: {integrity: sha512-ZTbkNpFfYcGWohvTTl+xewITm7EOuqIqex0c7dNZ+aXsbrLj0qI8XlGKfPpipjm0Wny/4Lt4CJsWJk1stVS5qQ==} engines: {node: '>=16'} hasBin: true dev: true - /playwright@1.42.1: - resolution: {integrity: sha512-PgwB03s2DZBcNRoW+1w9E+VkLBxweib6KTXM0M3tkiT4jVxKSi6PmVJ591J+0u10LUrgxB7dLRbiJqO5s2QPMg==} + /playwright@1.44.0: + resolution: {integrity: sha512-F9b3GUCLQ3Nffrfb6dunPOkE5Mh68tR7zN32L4jCk4FjQamgesGay7/dAAe1WaMEGV04DkdJfcJzjoCKygUaRQ==} engines: {node: '>=16'} hasBin: true dependencies: - playwright-core: 1.42.1 + playwright-core: 1.44.0 optionalDependencies: fsevents: 2.3.2 dev: true @@ -10256,7 +10256,7 @@ packages: /puppeteer@1.20.0: resolution: {integrity: sha512-bt48RDBy2eIwZPrkgbcwHtb51mj2nKvHOPMaSH2IsWiv7lOG9k9zhaRzpDZafrk05ajMc3cu+lSQYYOfH2DkVQ==} engines: {node: '>=6.4.0'} - deprecated: < 21.9.0 is no longer supported + deprecated: < 22.5.0 is no longer supported requiresBuild: true dependencies: debug: 4.3.4(supports-color@9.3.1)