Skip to content

Commit

Permalink
Add screenshot test for home page
Browse files Browse the repository at this point in the history
  • Loading branch information
k-taro56 committed May 9, 2024
1 parent 721186c commit 0db818c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ test.describe('Form submission', () => {
await expect(page.getByText('名前')).toBeVisible();
await expect(page.getByText('送信')).toBeVisible();
});

test('should match screenshot', async ({ page }) => {
// テスト対象のページにアクセス
await page.goto('/');

// スクリーンショットを取得
await expect(page).toHaveScreenshot();
});
});

0 comments on commit 0db818c

Please sign in to comment.