Files
supabase/e2e/studio/utils
Alaister Young b65040674b test(e2e/studio): tolerate post-action URL/encoding differences
Two unrelated test assertions were over-specific against behaviour that
varies between the legacy Next pages router and the TanStack-router
compat shim:

- `deleteBucket` in `utils/storage-helpers.ts` waited for the page to
  redirect to `/storage/files` after delete. The studio's
  `DeleteBucketModal` does fire `router.push('/storage/files')`, but on
  TanStack Router that push can race other history updates and the URL
  doesn't reliably change. Asserting the row is gone from the list is a
  stronger signal anyway.

- `view definition preserves security_invoker` in `table-editor.spec.ts`
  expected the "Open in SQL Editor" href to contain
  `security_invoker%20%3D%20true` (percent-encoded spaces). The compat
  Link shim round-trips the search params through `URLSearchParams`,
  which emits `+` for spaces, so the actual href has
  `security_invoker+%3D+true`. Both decode to the same SQL on the
  receiving end; accept either form in the regex.
2026-05-15 17:32:39 +08:00
..
2026-03-20 16:45:49 +01:00