From e465081532309e4a497a7fc1379d85eb754cb94a Mon Sep 17 00:00:00 2001 From: alexeh Date: Mon, 14 Oct 2024 11:30:39 +0200 Subject: [PATCH] temporarily restore page instances in e2e --- e2e/tests/auth/auth.spec.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/e2e/tests/auth/auth.spec.ts b/e2e/tests/auth/auth.spec.ts index 708f819f..ade52fa9 100644 --- a/e2e/tests/auth/auth.spec.ts +++ b/e2e/tests/auth/auth.spec.ts @@ -26,7 +26,7 @@ test.describe("Auth", () => { await testManager.close(); }); - test("an user signs in successfully", async () => { + test("an user signs in successfully", async ({ page }) => { const user: Pick = { email: "jhondoe@test.com", password: "12345678", @@ -34,10 +34,12 @@ test.describe("Auth", () => { }; await testManager.mocks().createUser(user); await testManager.login(user as User); - await expect(page.getByText(`Email: ${user.email}`)).toBeVisible(); + await expect( + testManager.page.getByText(`Email: ${user.email}`), + ).toBeVisible(); }); - test("an user signs up successfully", async () => { + test("an user signs up successfully", async ({ page }) => { const user: Pick = { email: "johndoe@test.com", password: "passwordpassword", @@ -73,7 +75,7 @@ test.describe("Auth", () => { ).toBeVisible(); }); - test("an user signs up with an invalid token", async () => { + test("an user signs up with an invalid token", async ({ page }) => { await page.goto("/auth/signup/12345678"); await expect(