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

This commit is contained in:
2025-10-23 18:04:05 -06:00
parent 37cff0083f
commit e6cc058935

View File

@@ -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