mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
## Problem The Studio unit test added in #51112 failed on master because the `/after` element returned by `findByText` was detached by a rerender before `toBeInTheDocument` ran. The failure repeated across all three test attempts in [this job](https://github.com/supabase/supabase/actions/runs/37480673016/job/112327649118). ## Fix Retry the DOM lookup and assertion together with `waitFor`, so each attempt checks the current element synchronously. Keep the existing timeout and assertions covering pathname refresh before the URL updates. ## How to test - Run `pnpm --filter studio exec vitest run components/interfaces/UnifiedLogs/UnifiedLogs.test.tsx`. - Expected result: pathname options refresh after selecting POST and the test passes. - Prettier and `git diff --check` pass. Local Vitest was blocked before assertions by the available dependency tree using React 18 instead of React 19; ESLint was blocked by a missing `@eslint/compat` dependency. CI validation is pending.