Skip to content

Commit

Permalink
revert type change
Browse files Browse the repository at this point in the history
  • Loading branch information
rakazirut committed Aug 11, 2024
1 parent 8f85e0f commit b289b33
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions playwright/tests/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,25 @@ test.describe("Hivemind: Login Page Tests", { tag: ["@login"] }, () => {
{ tag: ["@smoke", "@regression"] },
async ({ loginPage, account, page }) => {
await test.step("Login with valid credentials", async () => {
const options = {
email: process.env.PLAYWRIGHT_USER as string,
password: process.env.PLAYWRIGHT_PASS as string,
};
await loginPage.login(options);
await loginPage.login(account);
// await expect(page.getByTestId("contentItem").first()).toBeVisible();
});
}
},
);

test(
"Verify unsuccessful login with invalid email and password",
{ tag: ["@smoke", "@regression"] },
async ({ loginPage, page }) => {
const options = {
const options: LoginFormOptions = {
email: "[email protected]",
password: "BadPassword1234!@",
};
await test.step("Attempt to login with invalid credentials", async () => {
await loginPage.login(options);
await expect(loginPage.btnLogin).toHaveText("Login Failed");
await expect(page.getByText("Login Failed")).toBeVisible();
});
}
},
);

test(
Expand All @@ -42,6 +39,6 @@ test.describe("Hivemind: Login Page Tests", { tag: ["@login"] }, () => {
await loginPage.clickCreateAccountButton();
expect(page.url()).toContain("/createAccount");
});
}
},
);
});

0 comments on commit b289b33

Please sign in to comment.