From f08e0898e3adf2901842d1866b36143d0ed52bc1 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 18 Apr 2024 00:29:00 +0200 Subject: [PATCH] add test for Dashboard --- src/frontend/tests/pages/pui_index.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/frontend/tests/pages/pui_index.spec.ts b/src/frontend/tests/pages/pui_index.spec.ts index c9abc1cd58..ed05185228 100644 --- a/src/frontend/tests/pages/pui_index.spec.ts +++ b/src/frontend/tests/pages/pui_index.spec.ts @@ -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(); +});