2023-06-20 12:49:48 +00:00
|
|
|
import { test, expect } from "@playwright/test";
|
|
|
|
|
|
|
|
test.describe("Personal info page", () => {
|
2023-07-07 14:34:54 +00:00
|
|
|
test("sets basic information", async ({ page }) => {
|
2023-06-20 12:49:48 +00:00
|
|
|
await page.goto("/");
|
2023-07-07 14:34:54 +00:00
|
|
|
await page.getByTestId("email").fill("edewit@example.com");
|
2023-06-20 12:49:48 +00:00
|
|
|
await page.getByTestId("firstName").fill("Erik");
|
|
|
|
await page.getByTestId("lastName").fill("de Wit");
|
|
|
|
await page.getByTestId("save").click();
|
|
|
|
|
|
|
|
const alerts = page.getByTestId("alerts");
|
|
|
|
await expect(alerts).toHaveText("Your account has been updated.");
|
|
|
|
});
|
|
|
|
});
|