Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: balance e2e shards load (#45661)

Gildas Garcia1e59ef9a06a7
diff --git a/.github/workflows/studio-e2e-test.yml b/.github/workflows/studio-e2e-test.yml
index 35cd8e5aa54..be170f07d38 100644
--- a/.github/workflows/studio-e2e-test.yml
+++ b/.github/workflows/studio-e2e-test.yml
@@ -103,10 +103,10 @@ jobs:
if: steps.filter.outputs.studio == 'true'
run: SKIP_ASSET_UPLOAD=1 NODE_ENV=test NODE_OPTIONS="--max-old-space-size=4096" pnpm run build:studio
- - name: πŸš€ Run Playwright tests against Vercel Preview
+ - name: πŸš€ Run Playwright tests against local studio build
if: steps.filter.outputs.studio == 'true'
id: playwright
- run: pnpm e2e --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
+ run: PWTEST_SHARD_WEIGHTS=62:38 pnpm e2e --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: Upload blob report to GitHub Actions Artifacts
if: always() && steps.filter.outputs.studio == 'true'
diff --git a/e2e/studio/features/realtime-inspector.spec.ts b/e2e/studio/features/realtime-inspector.spec.ts
index e4f4a5d177a..32a9a535aa8 100644
--- a/e2e/studio/features/realtime-inspector.spec.ts
+++ b/e2e/studio/features/realtime-inspector.spec.ts
@@ -118,9 +118,7 @@ test.describe('Realtime Inspector', () => {
await openBroadcastModal(page)
- const codeEditor = page.getByRole('textbox', { name: /Editor content/i })
- await expect(codeEditor).toBeInViewport({ timeout: 5000 })
- await codeEditor.click({ force: true })
+ await page.getByRole('textbox', { name: /Editor content/i }).focus()
await page.keyboard.press('ControlOrMeta+KeyA')
await page.keyboard.type('{ invalid json }')
diff --git a/e2e/studio/features/rls-policies.spec.ts b/e2e/studio/features/rls-policies.spec.ts
index b6a3cabd178..34b1b2a2026 100644
--- a/e2e/studio/features/rls-policies.spec.ts
+++ b/e2e/studio/features/rls-policies.spec.ts
@@ -232,7 +232,7 @@ test.describe('RLS Policies', () => {
await expect(page.getByRole('radio', { name: 'SELECT' })).toBeChecked()
// Fill in USING clause - allow all access
- await page.locator('.view-lines').click()
+ await page.getByRole('textbox', { name: /Editor content/i }).focus()
await page.keyboard.type('true')
// Save policy
@@ -290,7 +290,7 @@ test.describe('RLS Policies', () => {
await page.keyboard.press('Escape')
// Fill in WITH CHECK clause - allow all inserts
- await page.locator('.view-lines').click()
+ await page.getByRole('textbox', { name: /Editor content/i }).focus()
await page.keyboard.type('true')
// Save policy
@@ -342,8 +342,16 @@ test.describe('RLS Policies', () => {
await page.getByRole('option', { name: 'authenticated' }).click()
await page.keyboard.press('Escape')
+ await page
+ .getByRole('textbox', { name: /Editor content/i })
+ .nth(0)
+ .focus()
+ await page.keyboard.type('true')
// Fill in USING clause (UPDATE has both USING and WITH CHECK editors, so use first)
- await page.locator('.view-lines').first().click()
+ await page
+ .getByRole('textbox', { name: /Editor content/i })
+ .nth(1)
+ .focus()
await page.keyboard.type('true')
// Save policy
@@ -395,7 +403,7 @@ test.describe('RLS Policies', () => {
await page.keyboard.press('Escape')
// Fill in USING clause
- await page.locator('.view-lines').click()
+ await page.getByRole('textbox', { name: /Editor content/i }).focus()
await page.keyboard.type('true')
// Save policy
diff --git a/e2e/studio/package.json b/e2e/studio/package.json
index c27e59eaea6..c07e220013b 100644
--- a/e2e/studio/package.json
+++ b/e2e/studio/package.json
@@ -12,7 +12,7 @@
"license": "ISC",
"description": "",
"dependencies": {
- "@playwright/test": "^1.52.0",
+ "@playwright/test": "^1.59.1",
"@supabase/supabase-js": "catalog:",
"cross-fetch": "^4.1.0",
"dotenv": "^16.5.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1ff714cd68c..2a19ed61498 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -201,10 +201,10 @@ importers:
version: 1.2.0
next:
specifier: 'catalog:'
next-contentlayer2:
specifier: 0.4.6
next-themes:
specifier: 'catalog:'
@@ -352,7 +352,7 @@ importers:
version: 8.1.0(@octokit/[email protected])
'@sentry/nextjs':
specifier: 'catalog:'
'@supabase/supabase-js':
specifier: 'catalog:'
version: 2.105.3
@@ -460,7 +460,7 @@ importers:
version: 1.0.1
next:
specifier: ^15.5.15
next-mdx-remote-client:
specifier: ^1.1.7
@@ -472,7 +472,7 @@ importers:
nuqs:
specifier: ^1.19.1
openai:
specifier: ^4.75.1
@@ -716,10 +716,10 @@ importers:
version: 0.511.0([email protected])
next:
specifier: 'catalog:'
next-contentlayer2:
specifier: 0.4.6
next-themes:
specifier: 'catalog:'
@@ -919,7 +919,7 @@ importers:
'@sentry/nextjs':
specifier: 'catalog:'
'@std/path':
specifier: npm:@jsr/std__path@^1.0.8
version: '@jsr/[email protected]'
@@ -1069,13 +1069,13 @@ importers:
version: 0.52.2
next:
specifier: 'catalog:'
next-themes:
specifier: 'catalog:'
nuqs:
specifier: 2.7.1
openai:
specifier: ^4.104.0
@@ -1325,7 +1325,7 @@ importers:
version: 2.11.3(@types/[email protected])([email protected])
next-router-mock:
specifier: ^0.9.13
node-mocks-http:
specifier: ^1.17.2
version: 1.17.2(@types/[email protected])
@@ -1427,10 +1427,10 @@ importers:
version: 0.55.1
next:
specifier: 'catalog:'
next-contentlayer2:
specifier: 0.4.6
next-themes:
specifier: 'catalog:'
@@ -1629,7 +1629,7 @@ importers:
version: 21.1.1
'@sentry/nextjs':
specifier: 'catalog:'
'@supabase/ssr':
specifier: 'catalog:'
version: 0.10.2(@supabase/[email protected])
@@ -1722,19 +1722,19 @@ importers:
version: 1.0.1
next:
specifier: ^15.5.15
next-mdx-remote-client:
specifier: ^1.1.7
next-seo:
specifier: ^6.5.0
next-themes:
specifier: 'catalog:'
nuqs:
specifier: ^2.8.1
openai:
specifier: ^4.75.1
@@ -1800,7 +1800,7 @@ importers:
version: link:../../packages/ui-patterns
unicornstudio-react:
specifier: 2.0.1-1
use-debounce:
specifier: ^7.0.1
version: 7.0.1([email protected])
@@ -1933,8 +1933,8 @@ importers:
e2e/studio:
dependencies:
'@playwright/test':
- specifier: ^1.52.0
- version: 1.56.1
+ specifier: ^1.59.1
+ version: 1.59.1
'@supabase/supabase-js':
specifier: 'catalog:'
version: 2.105.3
@@ -2080,13 +2080,13 @@ importers:
version: 0.7.9
flags:
specifier: ^4.0.0
lodash:
specifier: ^4.18.1
version: 4.18.1
next:
specifier: 'catalog:'
next-themes:
specifier: 'catalog:'
@@ -2181,7 +2181,7 @@ importers:
version: 0.511.0([email protected])
next:
specifier: 'catalog:'
react:
specifier: 'catalog:'
version: 18.3.1
@@ -2212,7 +2212,7 @@ importers:
version: link:../config
next-router-mock:
specifier: ^0.9.13
tailwindcss:
specifier: 'catalog:'
version: 4.2.4
@@ -2567,7 +2567,7 @@ importers:
version: 0.52.2
next:
specifier: 'catalog:'
next-themes:
specifier: 'catalog:'
@@ -2694,7 +2694,7 @@ importers:
version: link:../config
next-router-mock:
specifier: ^0.9.13
tailwindcss:
specifier: ^4.2.4
version: 4.2.4
@@ -5952,8 +5952,8 @@ packages:
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
- '@playwright/[email protected]':
- resolution: {integrity: sha512-vSMYtL/zOcFpvJCW71Q/OEGQb7KYBPAdKh35WNSkaZA75JlAO8ED8UN6GUNTm3drWomcbcqRPFqQbLae8yBTdg==}
+ '@playwright/[email protected]':
+ resolution: {integrity: sha512-PG6q63nQg5c9rIi4/Z5lR5IVF7yU5MqmKaPOe0HSc0O2cX1fPi96sUQu5j7eo4gKCkB2AnNGoWt7y4/Xx3Kcqg==}
engines: {node: '>=18'}
hasBin: true
@@ -14629,13 +14629,13 @@ packages:
resolution: {integrity: sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==}
- resolution: {integrity: sha512-hutraynyn31F+Bifme+Ps9Vq59hKuUCz7H1kDOcBs+2oGguKkWTU50bBWrtz34OUWmIwpBTWDxaRPXrIXkgvmQ==}
+ resolution: {integrity: sha512-HBV/RJg81z5BiiZ9yPzIiClYV/QMsDCKUyogwH9p3MCP6IYjUFu/MActgYAvK0oWyV9NlwM3GLBjADyWgydVyg==}
engines: {node: '>=18'}
hasBin: true
- resolution: {integrity: sha512-aFi5B0WovBHTEvpM3DzXTUaeN6eN0qWnTkKx4NQaH4Wvcmc153PdaY2UBdSYKaGYw+UyWXSVyxDUg5DoPEttjw==}
+ resolution: {integrity: sha512-C8oWjPR3F81yljW9o5OxcWzfh6avkVwDD2VYdwIGqTkl+OGFISgypqzfu7dOe4QNLL2aqcWBmI3PMtLIK233lw==}
engines: {node: '>=18'}
hasBin: true
@@ -21873,9 +21873,9 @@ snapshots:
optional: true
- '@playwright/[email protected]':
+ '@playwright/[email protected]':
dependencies:
- playwright: 1.56.1
+ playwright: 1.59.1
'@polka/[email protected]': {}
@@ -23319,7 +23319,7 @@ snapshots:
'@sentry/[email protected]': {}
dependencies:
'@opentelemetry/api': 1.9.0
'@opentelemetry/semantic-conventions': 1.38.0
@@ -23332,7 +23332,7 @@ snapshots:
'@sentry/react': 10.27.0([email protected])
'@sentry/vercel-edge': 10.27.0
resolve: 1.22.8
rollup: 4.59.0
stacktrace-parser: 0.1.10
@@ -23345,7 +23345,7 @@ snapshots:
- supports-color
- webpack
dependencies:
'@opentelemetry/api': 1.9.0
'@opentelemetry/semantic-conventions': 1.38.0
@@ -23358,7 +23358,7 @@ snapshots:
'@sentry/react': 10.27.0([email protected])
'@sentry/vercel-edge': 10.27.0
resolve: 1.22.8
rollup: 4.59.0
stacktrace-parser: 0.1.10
@@ -28177,13 +28177,13 @@ snapshots:
locate-path: 6.0.0
path-exists: 4.0.0
dependencies:
'@edge-runtime/cookies': 5.0.2
jose: 5.9.6
optionalDependencies:
'@opentelemetry/api': 1.9.0
react: 18.3.1
react-dom: 18.3.1([email protected])
@@ -31337,12 +31337,12 @@ snapshots:
dependencies:
'@contentlayer2/utils': 0.4.3
react: 18.3.1
react-dom: 18.3.1([email protected])
transitivePeerDependencies:
@@ -31371,14 +31371,14 @@ snapshots:
dependencies:
js-yaml-loader: 1.2.2
dependencies:
react: 18.3.1
dependencies:
react: 18.3.1
react-dom: 18.3.1([email protected])
@@ -31389,7 +31389,7 @@ snapshots:
dependencies:
'@next/env': 15.5.15
'@swc/helpers': 0.5.15
@@ -31408,14 +31408,14 @@ snapshots:
'@next/swc-win32-arm64-msvc': 15.5.15
'@next/swc-win32-x64-msvc': 15.5.15
'@opentelemetry/api': 1.9.0
- '@playwright/test': 1.56.1
+ '@playwright/test': 1.59.1
sass: 1.77.4
sharp: 0.34.5
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
dependencies:
'@next/env': 16.2.3
'@swc/helpers': 0.5.15
@@ -31435,7 +31435,7 @@ snapshots:
'@next/swc-win32-arm64-msvc': 16.2.3
'@next/swc-win32-x64-msvc': 16.2.3
'@opentelemetry/api': 1.9.0
- '@playwright/test': 1.56.1
+ '@playwright/test': 1.59.1
sass: 1.77.4
sharp: 0.34.5
transitivePeerDependencies:
@@ -31701,27 +31701,27 @@ snapshots:
dependencies:
mitt: 3.0.1
dependencies:
'@standard-schema/spec': 1.0.0
react: 18.3.1
optionalDependencies:
'@tanstack/react-router': 1.168.18([email protected]([email protected]))([email protected])
dependencies:
'@standard-schema/spec': 1.0.0
react: 18.3.1
optionalDependencies:
'@tanstack/react-router': 1.168.18([email protected]([email protected]))([email protected])
@@ -32484,11 +32484,11 @@ snapshots:
exsolve: 1.0.8
pathe: 2.0.3
dependencies:
- playwright-core: 1.56.1
+ playwright-core: 1.59.1
optionalDependencies:
fsevents: 2.3.2
@@ -35114,12 +35114,12 @@ snapshots:
dependencies:
react: 18.3.1
react-dom: 18.3.1([email protected])
optionalDependencies:
dependencies: