Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-murakami committed Jan 22, 2024
1 parent 51e4f09 commit cc363a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions e2e/visitor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ test.describe('visitor basic', () => {
await expect(page).toHaveURL('http://localhost:3000/')
await expect(page.getByRole('heading')).toHaveText('ReadList')
})

test('show latest article in list', async ({ page }) => {
await page.goto('http://localhost:3000/')
await expect(page.getByRole('main')).toHaveText(/close your eyes/)
})
})

test.afterAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</script>
</head>

<body class="bg-primary h-full" data-cy="body">
<body class="bg-primary h-full" data-testid="body">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down

0 comments on commit cc363a9

Please sign in to comment.