Skip to content

Commit 44c200d

Browse files
Nina Beniteninariccimarie
authored andcommitted
add test Link monochrome with external link
1 parent 848009c commit 44c200d

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

test/e2e/link/link.spec.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('Link - default', async ({ page }) => {
1313
await expect(linkPage.container).toHaveScreenshot('link-default-pressed.png');
1414
});
1515

16-
test('Link - with extenal link', async ({ page }) => {
16+
test('Link - with external link', async ({ page }) => {
1717
const linkPage = new LinkPage(page);
1818
await linkPage.goto('args=external:true');
1919
await expect(linkPage.container).toHaveScreenshot('link-external.png');
@@ -40,3 +40,21 @@ test('Link - monochrome', async ({ page }) => {
4040
'link-monochrome-pressed.png'
4141
);
4242
});
43+
44+
test('Link - monochrome with external link', async ({ page }) => {
45+
const linkPage = new LinkPage(page);
46+
await linkPage.goto('args=external:true;monochrome:true');
47+
await expect(linkPage.container).toHaveScreenshot(
48+
'link-monochrome-with-external.png'
49+
);
50+
51+
await linkPage.link.hover();
52+
await expect(linkPage.container).toHaveScreenshot(
53+
'link-monochrome-with-external-hover.png'
54+
);
55+
56+
await linkPage.page.mouse.down();
57+
await expect(linkPage.container).toHaveScreenshot(
58+
'link-monochrome-with-external-pressed.png'
59+
);
60+
});
2.43 KB
Loading
2.4 KB
Loading
2.4 KB
Loading

0 commit comments

Comments
 (0)