diff --git a/e2e_tests/home.spec.ts b/e2e_tests/home.spec.ts index 436cd13..19c9a4b 100644 --- a/e2e_tests/home.spec.ts +++ b/e2e_tests/home.spec.ts @@ -1,10 +1,10 @@ import { test, expect } from '@playwright/test'; -test('has title', async ({ page }) => { - await page.goto('/'); +test('matches snapshot', async ({ page }) => { + await page.goto('http://localhost:8080/'); + + expect(await page.screenshot()).toMatchSnapshot('home.png'); - // Expect a title "to contain" a substring. - await expect(page).toHaveTitle(/mipsy/); }); test('get started link', async ({ page }) => { diff --git a/e2e_tests/home.spec.ts-snapshots/home-chromium-linux.png b/e2e_tests/home.spec.ts-snapshots/home-chromium-linux.png new file mode 100644 index 0000000..c19d772 Binary files /dev/null and b/e2e_tests/home.spec.ts-snapshots/home-chromium-linux.png differ diff --git a/e2e_tests/home.spec.ts-snapshots/home-firefox-linux.png b/e2e_tests/home.spec.ts-snapshots/home-firefox-linux.png new file mode 100644 index 0000000..0a58a26 Binary files /dev/null and b/e2e_tests/home.spec.ts-snapshots/home-firefox-linux.png differ