add test for Dashboard

This commit is contained in:
Matthias Mair 2024-04-18 00:29:00 +02:00
parent cfbf6badbf
commit f08e0898e3
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -74,3 +74,15 @@ test('PUI - Pages - Index - Playground', async ({ page }) => {
await page.getByRole('textbox').fill('50');
await page.getByText('Attention needed').waitFor();
});
test('PUI - Pages - Index - Dashboard', async ({ page }) => {
await doQuickLogin(page);
await page.goto(`${baseUrl}/`);
// Dashboard auto update
await page.getByRole('tab', { name: 'Dashboard' }).click();
await page.getByText('Autoupdate').click();
await page.waitForTimeout(500);
await page.getByText('Autoupdate').click();
await page.getByText('This page is a replacement').waitFor();
});