From ac59de1f9ed786e476a77071165c84be536cc896 Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Mon, 1 Jun 2026 10:18:07 +0200 Subject: [PATCH] chore: e2e tests reliability (#46496) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES/NO ## What kind of change does this PR introduce? Bug fix, feature, docs update, ... ## What is the current behavior? Please link any relevant issues here. ## What is the new behavior? Feel free to include screenshots if it includes visual changes. ## Additional context Add any other context or screenshots. ## Summary by CodeRabbit * **Accessibility** * Improved screen-reader label for table row action menus so table controls are clearer for assistive‑technology users. * **Tests** * Enhanced end-to-end test reliability: tightened selectors, added dialog/toast visibility and API-wait synchronization, scoped lookup fixes, removed redundant cleanup helper, and updated test setup to mark a terms-of-service dismissal to reduce flakiness. --- .../interfaces/Database/Tables/TableList.tsx | 7 ++- e2e/studio/features/cron-jobs.spec.ts | 12 +++-- e2e/studio/features/database.spec.ts | 50 +++++++++++++++---- .../features/realtime-inspector.spec.ts | 1 + e2e/studio/features/rls-policies.spec.ts | 35 +------------ e2e/studio/utils/test.ts | 1 + 6 files changed, 56 insertions(+), 50 deletions(-) diff --git a/apps/studio/components/interfaces/Database/Tables/TableList.tsx b/apps/studio/components/interfaces/Database/Tables/TableList.tsx index 360fd1676bb..45b38e49c10 100644 --- a/apps/studio/components/interfaces/Database/Tables/TableList.tsx +++ b/apps/studio/components/interfaces/Database/Tables/TableList.tsx @@ -493,7 +493,12 @@ export const TableList = ({ {!isSchemaLocked && ( -