Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Fix local Playwright runs blocked by the dev tools indicator (#2894)
Luke Vella98a8ed201303
diff --git a/apps/web/.env.test b/apps/web/.env.testindex f104dd61d..b92753ba3 100644--- a/apps/web/.env.test+++ b/apps/web/.env.test@@ -1,5 +1,9 @@CRON_SECRET=1234567890abcdef1234567890abcdef1234DATABASE_URL=postgres://postgres:postgres@localhost:5450/rallly+# The dev tools indicator is pinned bottom-right (next.config.ts) where it+# covers controls like the comment sheet's submit button, so Playwright's+# actionability check refuses the click. CI is unaffected (next start).+HIDE_DEV_INDICATOR=trueNEXT_PUBLIC_BASE_URL=http://localhost:3002NODE_ENV=testdiff --git a/apps/web/tests/new-poll-page.ts b/apps/web/tests/new-poll-page.tsindex 33089a194..5a34e50ed 100644--- a/apps/web/tests/new-poll-page.ts+++ b/apps/web/tests/new-poll-page.ts@@ -1,4 +1,5 @@import type { Locator, Page } from "@playwright/test";+import { expect } from "@playwright/test";import { PollPage } from "./poll-page";export class CreatePollSuccessDialog {@@ -37,8 +38,15 @@ export class NewPollPage {// The description is a rich text editor revealed on demand, so open it, then// type into its contenteditable (fill() doesn't work on contenteditable).- await page.getByRole("button", { name: /add description/i }).click();+ // A click that lands before React hydrates focuses the button natively but+ // drops the onClick, so retry until the editor actually mounts.const description = page.locator('#description[contenteditable="true"]');+ await expect(async () => {+ await page+ .getByRole("button", { name: /add description/i })+ .click({ timeout: 2000 });+ await expect(description).toBeVisible({ timeout: 2000 });+ }).toPass();await description.click();await description.pressSequentially("Hey everyone, what time can you meet?",