Skip to content

Commit

Permalink
add snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
spanishpear committed Sep 10, 2023
1 parent 719dee4 commit 56e00cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e_tests/home.spec.ts
Original file line number Diff line number Diff line change
@@ -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 }) => {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 56e00cf

Please sign in to comment.