fix: username change test (#11511)

pull/11517/head^2
Shivam Kalra 2023-09-25 19:05:02 +05:30 committed by GitHub
parent bfc137c349
commit 69120095e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

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