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 71a3f2a commit 53460cd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions e2e/visitor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ test.describe('visitor basic', () => {
await page.getByTestId('single-post-page-link-1').click()
await expect(page.getByRole('main')).toHaveText(/CSS Weekly #464/)
})

test('never shown every admin page link button without login', async ({
page,
}) => {
await page.goto('http://localhost:3000/')
await expect(page.getByTestId('dashboard-page-link')).not.toBeVisible()
await page.getByTestId('single-post-page-link-2').click()

await expect(page.getByTestId('edit-btn')).not.toBeVisible()
})

test('show post that contains syntax hilight Markdown', async ({ page }) => {
await page.goto('http://localhost:3000/')
await page.getByTestId('next-page-btn').click()
await page.getByTestId('single-post-page-link-2').click()

await expect(page.getByRole('main')).toHaveText(/using __proto__/)
})
})

test.afterAll(async () => {
Expand Down

0 comments on commit 53460cd

Please sign in to comment.