From be82e6b3429dc1453b99f979a9c13dcb87d14809 Mon Sep 17 00:00:00 2001 From: giancarlo Date: Fri, 12 Apr 2024 21:42:32 +0800 Subject: [PATCH] Refactor tests and update turbo.json configuration Removed unnecessary response wait in `auth.po.ts` and a redundant output property in `turbo.json`. The code is now simpler with less redundancy, which makes it easier to read and maintain. Removed files are either not used or not necessary for the project to behave as expected. --- apps/e2e/tests/account/account.spec.ts | 1 + apps/e2e/tests/authentication/auth.po.ts | 4 ---- turbo.json | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/e2e/tests/account/account.spec.ts b/apps/e2e/tests/account/account.spec.ts index 461f6bd38..8183bfc2b 100644 --- a/apps/e2e/tests/account/account.spec.ts +++ b/apps/e2e/tests/account/account.spec.ts @@ -38,6 +38,7 @@ test.describe('Account Settings', () => { test('user can update their password', async () => { const password = (Math.random() * 100000).toString(); + await account.updatePassword(password); await page.waitForResponse((resp) => { diff --git a/apps/e2e/tests/authentication/auth.po.ts b/apps/e2e/tests/authentication/auth.po.ts index c4018e5d4..8f816d784 100644 --- a/apps/e2e/tests/authentication/auth.po.ts +++ b/apps/e2e/tests/authentication/auth.po.ts @@ -74,10 +74,6 @@ export class AuthPageObject { repeatPassword: 'password', }); - await this.page.waitForResponse((resp) => { - return resp.url().includes('auth'); - }); - await this.visitConfirmEmailLink(email); } } \ No newline at end of file diff --git a/turbo.json b/turbo.json index e678bde4e..936504c48 100644 --- a/turbo.json +++ b/turbo.json @@ -48,9 +48,6 @@ "test": { "dependsOn": [ "^topo" - ], - "outputs": [ - "node_modules/.cache/tsbuildinfo.json" ] }, "clean": {