1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 01:46:51 +01:00
This commit is contained in:
Matthias Kretschmann 2023-12-12 20:19:43 +00:00
parent b5e9e8eaf3
commit 22a67f6956
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -11,7 +11,7 @@ test('matches screenshot', async ({ page }) => {
test('all menu buttons are present', async ({ page }) => { test('all menu buttons are present', async ({ page }) => {
const theme = page.getByTitle('Toggle Theme') const theme = page.getByTitle('Toggle Theme')
const search = page.getByRole('button', { name: 'Search' }) const search = page.getByRole('button', { name: 'Search' })
const menu = page.getByRole('button', { name: 'Menu' }) const menu = page.getByTitle('Menu')
await expect(theme).toBeVisible() await expect(theme).toBeVisible()
await expect(search).toBeVisible() await expect(search).toBeVisible()
@ -19,7 +19,7 @@ test('all menu buttons are present', async ({ page }) => {
}) })
test('page menu is working', async ({ page }) => { test('page menu is working', async ({ page }) => {
const menuButton = page.getByRole('button', { name: 'Menu' }) const menuButton = page.getByTitle('Menu')
const menu = page.locator('nav[aria-label="Pages"]') const menu = page.locator('nav[aria-label="Pages"]')
const body = page.locator('body') const body = page.locator('body')