pre-Prod Alpha #18
|
|
@ -43,10 +43,12 @@ test('2. Dashboard lädt ohne Fehler', async ({ page }) => {
|
||||||
// Warte bis Spinner verschwunden
|
// Warte bis Spinner verschwunden
|
||||||
await expect(page.locator('.spinner')).toHaveCount(0, { timeout: 10000 });
|
await expect(page.locator('.spinner')).toHaveCount(0, { timeout: 10000 });
|
||||||
|
|
||||||
// Zwei verschiedene "Willkommen"-Texte im Dashboard → kein ambiguity locator('text=Willkommen')
|
// Dashboard: h1 „Dashboard“ + Begrüßungstext (nicht mehr „Willkommen bei Shinkan“ als Überschrift)
|
||||||
await expect(
|
const main = page.locator('.app-main');
|
||||||
page.getByRole('heading', { name: /Willkommen bei Shinkan/i }),
|
await expect(main.getByRole('heading', { level: 1, name: 'Dashboard' })).toBeVisible({
|
||||||
).toBeVisible({ timeout: 5000 });
|
timeout: 5000,
|
||||||
|
});
|
||||||
|
await expect(main.getByText(/Shinkan unterstützt dich/i)).toBeVisible({ timeout: 5000 });
|
||||||
|
|
||||||
await page.screenshot({ path: 'screenshots/02-dashboard.png' });
|
await page.screenshot({ path: 'screenshots/02-dashboard.png' });
|
||||||
console.log('✓ Dashboard OK');
|
console.log('✓ Dashboard OK');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user