Skip to content

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

fix e2e test: switch schema (#40122)

Jordi Enrica9482faed07c
diff --git a/e2e/studio/features/table-editor.spec.ts b/e2e/studio/features/table-editor.spec.ts
index 106a928f067..35781606356 100644
--- a/e2e/studio/features/table-editor.spec.ts
+++ b/e2e/studio/features/table-editor.spec.ts
@@ -205,23 +205,11 @@ test.describe.serial('table editor', () => {
await expect(page.getByLabel(`View ${authTableSso}`)).toBeVisible()
await expect(page.getByLabel(`View ${authTableMfa}`)).toBeVisible()
- // filter by querying
+ // can find auth tables
await page.getByRole('textbox', { name: 'Search tables...' }).fill('mfa')
await waitForTableToLoad(page, ref, 'auth') // load tables
await expect(page.getByLabel(`View ${authTableSso}`)).not.toBeVisible()
await expect(page.getByLabel(`View ${authTableMfa}`)).toBeVisible()
-
- // navigate to policies page when view policies action is clicked
- await page.getByRole('button', { name: `View ${authTableMfa}` }).click()
- await page.waitForURL(/\/editor\/\d+\?schema=auth$/)
- await page
- .getByRole('button', { name: `View ${authTableMfa}` })
- .getByRole('button')
- .nth(1)
- .click()
- await page.getByRole('menuitem', { name: 'View policies' }).click()
- await page.waitForURL(/.*\/policies\?schema=auth/)
- expect(page.url()).toContain('auth/policies?schema=auth')
})
test('should show rls accordingly', async ({ ref }) => {