Skip to content

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

test(studio): scope realtime broadcast helper (#50164)

Danny Whitee351e8a1a445
diff --git a/e2e/studio/utils/realtime-helpers.ts b/e2e/studio/utils/realtime-helpers.ts
index e1729f2c8f7..d58dba5397f 100644
--- a/e2e/studio/utils/realtime-helpers.ts
+++ b/e2e/studio/utils/realtime-helpers.ts
@@ -36,7 +36,9 @@ export async function stopListening(page: Page) {
}
export async function openBroadcastModal(page: Page) {
- const broadcastButton = page.getByRole('button', { name: 'Broadcast a message' })
+ const broadcastButton = page
+ .getByRole('status')
+ .getByRole('button', { name: 'Broadcast a message' })
await expect(broadcastButton).toBeVisible({ timeout: 5000 })
await broadcastButton.click()
await expect(page.getByText('Broadcast a message to all clients')).toBeVisible({ timeout: 5000 })