-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temporarily restore page instances in e2e
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,18 +26,20 @@ test.describe("Auth", () => { | |
await testManager.close(); | ||
}); | ||
|
||
test("an user signs in successfully", async () => { | ||
test("an user signs in successfully", async ({ page }) => { | ||
const user: Pick<User, "email" | "password" | "partnerName"> = { | ||
email: "[email protected]", | ||
password: "12345678", | ||
partnerName: "admin", | ||
}; | ||
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<User, "email" | "password" | "isActive"> = { | ||
email: "[email protected]", | ||
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( | ||
|