fix(e2e): correct auth path + strict selector for Namenseinblender

This commit is contained in:
Thorsten Bus 2026-05-31 05:01:38 +02:00
parent 078811e959
commit 4606bb26d6

View file

@ -1,12 +1,12 @@
import { test, expect } from '@playwright/test' import { test, expect } from '@playwright/test'
test.use({ storageState: '.auth/user.json' }) test.use({ storageState: 'tests/e2e/.auth/user.json' })
test.describe('Keyvisual & Background Panels', () => { test.describe('Keyvisual & Background Panels', () => {
test('Settings page has Namenseinblender submenu and field', async ({ page }) => { test('Settings page has Namenseinblender submenu and field', async ({ page }) => {
await page.goto('/settings') await page.goto('/settings')
await expect(page.getByText('Namenseinblender')).toBeVisible() await expect(page.getByTestId('settings-submenu-namenseinblender').first()).toBeVisible()
await page.getByText('Namenseinblender').click() await page.getByTestId('settings-submenu-namenseinblender').first().click()
await expect(page.getByTestId('namenseinblender-macro')).toBeVisible() await expect(page.getByTestId('namenseinblender-macro')).toBeVisible()
}) })