Skip to content

Commit

Permalink
temporarily restore page instances in e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 14, 2024
1 parent 5a98dba commit e465081
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions e2e/tests/auth/auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit e465081

Please sign in to comment.