From 85e7682b909dc58713a7c5fad55f1784184f0c90 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 2 Jan 2026 10:02:34 -0700 Subject: [PATCH] fix UI test --- test-playwright/60-new-activity.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-playwright/60-new-activity.spec.ts b/test-playwright/60-new-activity.spec.ts index ed03c07b..69302686 100644 --- a/test-playwright/60-new-activity.spec.ts +++ b/test-playwright/60-new-activity.spec.ts @@ -44,12 +44,12 @@ test('New offers for another user', async ({ page }) => { // Wait for export data prompt alert to be ready before clicking await page.waitForFunction(() => { const buttons = document.querySelectorAll('div[role="alert"] button'); - return Array.from(buttons).some(button => button.textContent?.includes('No, Not Now')); + return Array.from(buttons).some(button => button.textContent?.includes('No, Not Yet')); }, { timeout: 5000 }); // Use a more robust approach to click the button await page.waitForFunction(() => { const buttons = document.querySelectorAll('div[role="alert"] button'); - const noButton = Array.from(buttons).find(button => button.textContent?.includes('No, Not Now')); + const noButton = Array.from(buttons).find(button => button.textContent?.includes('No, Not Yet')); if (noButton) { (noButton as HTMLElement).click(); return true;