forked from jsnbuchanan/crowd-funder-for-time-pwa
test: remove a raw 3-second wait from test utils
This commit is contained in:
@@ -368,12 +368,9 @@ export async function waitForRegistrationStatusToSettle(page: Page): Promise<voi
|
|||||||
page.locator("#sectionUsageLimits").getByText("Checking")
|
page.locator("#sectionUsageLimits").getByText("Checking")
|
||||||
).toBeHidden({ timeout: 15000 });
|
).toBeHidden({ timeout: 15000 });
|
||||||
|
|
||||||
// Additional wait to ensure the async registration check has time to complete
|
// Before navigating back to the page, we'll trigger a registration check
|
||||||
// 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
|
|
||||||
// by navigating to home and waiting for the registration process to complete
|
// by navigating to home and waiting for the registration process to complete
|
||||||
|
|
||||||
const currentUrl = page.url();
|
const currentUrl = page.url();
|
||||||
|
|
||||||
// Navigate to home to trigger the registration check
|
// Navigate to home to trigger the registration check
|
||||||
|
|||||||
Reference in New Issue
Block a user