From 69120095e4036db9b5d6c4ba44a44ec8f5960425 Mon Sep 17 00:00:00 2001 From: Shivam Kalra Date: Mon, 25 Sep 2023 19:05:02 +0530 Subject: [PATCH] fix: username change test (#11511) --- apps/web/playwright/change-username.e2e.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/web/playwright/change-username.e2e.ts b/apps/web/playwright/change-username.e2e.ts index 1655a5559a..b2f611714f 100644 --- a/apps/web/playwright/change-username.e2e.ts +++ b/apps/web/playwright/change-username.e2e.ts @@ -22,8 +22,7 @@ test.describe("Change username on settings", () => { await users.deleteAll(); }); - /** TODO: Find out why it's timing out */ - test.fixme("User can change username", async ({ page, users, prisma }) => { + test("User can change username", async ({ page, users, prisma }) => { const user = await users.create(); await user.apiLogin(); @@ -36,7 +35,7 @@ test.describe("Change username on settings", () => { await page.click("[data-testid=update-username-btn]"); await Promise.all([ page.click("[data-testid=save-username]"), - page.waitForResponse("**/viewer.updateProfile*"), + page.getByTestId("toast-success").waitFor(), ]); const newUpdatedUser = await prisma.user.findUniqueOrThrow({