Skip to content

Commit

Permalink
Test creating unknown sig
Browse files Browse the repository at this point in the history
  • Loading branch information
joonashak committed Dec 24, 2024
1 parent 02da43c commit 51036d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testing/e2e/tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,15 @@ test("Create map", async ({ map }) => {
test("test if map fixture breaks", async ({ map }) => {
map.asd();
});

test("Create unknown signature", async ({ page }) => {
await page.goto("/system/J100001");
await page.getByRole("button", { name: "Add Signature" }).click();
await page.getByLabel("ID").fill("ASD-123");
await page.getByRole("button", { name: "Save Signature" }).click();

await expect(page.getByRole("alert")).toContainText("Signature added");
await expect(
page.getByRole("cell", { name: "ASD-123", exact: true }),
).toBeVisible();
});

0 comments on commit 51036d1

Please sign in to comment.