From bb608f5312b3f487d559d9f150a137e52981d4a9 Mon Sep 17 00:00:00 2001 From: giancarlo Date: Fri, 12 Apr 2024 21:51:59 +0800 Subject: [PATCH] Replace account sign-in redirect with URL wait Modified the e2e test for account deletion. Rather than redirecting to the sign-in page after the account is deleted, the change ensures that the system waits for a local URL. This should improve test coverage by making sure the browser is redirected to the correct URL instead of automatically going --- apps/e2e/tests/account/account.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/e2e/tests/account/account.spec.ts b/apps/e2e/tests/account/account.spec.ts index 8183bfc2b..f8362a4c4 100644 --- a/apps/e2e/tests/account/account.spec.ts +++ b/apps/e2e/tests/account/account.spec.ts @@ -56,6 +56,6 @@ test.describe('Account Deletion', () => { await account.setup(); await account.deleteAccount(); - await account.auth.goToSignIn(); + await page.waitForURL('http://localhost:3000'); }); }); \ No newline at end of file