mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
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.