Browse Source

test: remove a raw 3-second wait from test utils

Trent Larson 2 days ago
parent
commit
e6cc058935
  1. 7
      test-playwright/testUtils.ts

7
test-playwright/testUtils.ts

@ -368,12 +368,9 @@ export async function waitForRegistrationStatusToSettle(page: Page): Promise<voi
page.locator("#sectionUsageLimits").getByText("Checking")
).toBeHidden({ timeout: 15000 });
// Additional wait to ensure the async registration check has time to complete
// and update the database with the correct registration status
await page.waitForTimeout(3000);
// Instead of navigating to invite-one, we'll trigger a registration check
// Before navigating back to the page, we'll trigger a registration check
// by navigating to home and waiting for the registration process to complete
const currentUrl = page.url();
// Navigate to home to trigger the registration check

Loading…
Cancel
Save