mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-02 07:58:57 +02:00
Update next i18next (#472)
This commit is contained in:
parent
4edaa3a700
commit
6ac64bbc42
7 changed files with 38 additions and 38 deletions
|
@ -1,4 +1,4 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
import { expect, Page, test } from "@playwright/test";
|
||||
import { load } from "cheerio";
|
||||
import smtpTester from "smtp-tester";
|
||||
|
||||
|
@ -92,7 +92,7 @@ test.describe.serial(() => {
|
|||
).toBeVisible();
|
||||
});
|
||||
|
||||
test("user login", async ({ page }) => {
|
||||
const login = async (page: Page) => {
|
||||
await page.goto("/login");
|
||||
|
||||
await page.getByPlaceholder("jessie.smith@email.com").type(testUserEmail);
|
||||
|
@ -104,7 +104,15 @@ test.describe.serial(() => {
|
|||
await page.getByPlaceholder("Enter your 6-digit code").type(code);
|
||||
|
||||
await page.getByText("Continue").click();
|
||||
};
|
||||
|
||||
test("user login", async ({ page }) => {
|
||||
await login(page);
|
||||
await expect(page.getByText("Your details")).toBeVisible();
|
||||
});
|
||||
|
||||
test("logged in user can't access login page", async ({ page }) => {
|
||||
await login(page);
|
||||
await expect(page).toHaveURL("/profile");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue