Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Raise Mailpit email capture timeout to fix flaky CI tests (#2718)
Luke Vella3f8bb87d9a32
diff --git a/apps/web/tests/vote-and-comment.spec.ts b/apps/web/tests/vote-and-comment.spec.tsindex c6173ba7e..3dc231567 100644--- a/apps/web/tests/vote-and-comment.spec.ts+++ b/apps/web/tests/vote-and-comment.spec.ts@@ -44,9 +44,7 @@ test.describe(() => {await invitePage.addParticipant("Anne", "[email protected]");- const { email } = await captureOne("[email protected]", {- wait: 5000,- });+ const { email } = await captureOne("[email protected]");await expect(page.locator("text='Anne'")).toBeVisible();diff --git a/packages/test-helpers/src/mailpit.ts b/packages/test-helpers/src/mailpit.tsindex 93bb63aeb..6979da87c 100644--- a/packages/test-helpers/src/mailpit.ts+++ b/packages/test-helpers/src/mailpit.ts@@ -84,7 +84,7 @@ export async function captureOne(to: string,options: { wait?: number } = {},): Promise<{ email: MailpitMessage }> {- const timeout = options.wait ?? 5000;+ const timeout = options.wait ?? 30_000;const deadline = Date.now() + timeout;while (Date.now() < deadline) {