Skip to content

Commit af917e3

Browse files
committed
Added new test
1 parent 51f3098 commit af917e3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/fail.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,14 @@ test.describe("Failing test", () => {
2222

2323
expect((await logo.allInnerTexts()).join()).toBe("PYOD");
2424
});
25+
26+
test("Make screenshot fail", async () => {
27+
await page.goto(
28+
`https://www.eliostruyf.com?playwright=margin-left:10px;%20text-transform:%20lowercase;`
29+
);
30+
31+
await expect(page).toHaveScreenshot("layout-mask.png", {
32+
mask: [page.locator(`.sidebar__content`)],
33+
});
34+
});
2535
});
195 KB
Loading

0 commit comments

Comments
 (0)