Skip to content
Snippets Groups Projects
Commit 63e1678f authored by Jens Grochtdreis's avatar Jens Grochtdreis
Browse files

visual tests ergänzt

parent c91b7c7a
No related branches found
No related tags found
No related merge requests found
...@@ -3,4 +3,10 @@ const { test, expect } = require('@playwright/test'); ...@@ -3,4 +3,10 @@ const { test, expect } = require('@playwright/test');
test('startseite', async ({ page }) => { test('startseite', async ({ page }) => {
await page.goto('https://www.swr.de/index.html'); await page.goto('https://www.swr.de/index.html');
expect(await page.screenshot('body')).toMatchSnapshot('swr.png'); expect(await page.screenshot('body')).toMatchSnapshot('swr.png');
}); });
\ No newline at end of file
test.only("Pagination", async({ page }) => {
await page.goto("http://localhost:3020/components/preview/pagination--default");
expect(await page.screenshot('.pagination')).toMatchSnapshot('pagination-comp.png');
})
\ No newline at end of file
tests/visual.spec.js-snapshots/swr-chromium-win32.png

688 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment