2023-08-15 13:22:13 +00:00
|
|
|
import { test, expect } from "@playwright/test";
|
2023-06-20 12:49:48 +00:00
|
|
|
|
|
|
|
test.describe("Personal info page", () => {
|
2023-07-07 14:34:54 +00:00
|
|
|
test("sets basic information", async ({ page }) => {
|
2023-08-14 14:41:58 +00:00
|
|
|
await page.goto("./");
|
2023-08-15 13:22:13 +00:00
|
|
|
await page.getByTestId("email").fill("edewit@somewhere.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();
|
|
|
|
|
2023-08-15 13:22:13 +00:00
|
|
|
const alerts = page.getByTestId("alerts");
|
|
|
|
await expect(alerts).toHaveText("Your account has been updated.");
|
2023-06-20 12:49:48 +00:00
|
|
|
});
|
|
|
|
});
|