From 4a5a4a84ff21e8fd96c4f3a66e4bb4c1828deb88 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 3 Jul 2026 08:03:45 +0000 Subject: [PATCH] Add playwright test for "Report Assets" panel --- src/frontend/tests/pui_settings.spec.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/frontend/tests/pui_settings.spec.ts b/src/frontend/tests/pui_settings.spec.ts index b4947677ab..dbd478c60d 100644 --- a/src/frontend/tests/pui_settings.spec.ts +++ b/src/frontend/tests/pui_settings.spec.ts @@ -270,6 +270,21 @@ test('Settings - Admin', async ({ browser }) => { await page.getByLabel('text-field-description').waitFor(); await page.getByRole('button', { name: 'Cancel' }).click(); + // Check the "report assets" panel + await loadTab(page, 'Report Assets'); + await page + .getByText( + 'Assets are files (such as images) which can be used when rendering reports and labels.' + ) + .waitFor(); + + // Launch the dialog to upload a new asset + await page.getByLabel('action-button-add-asset').click(); + await page.getByText('Add Asset', { exact: true }).waitFor(); + await page.locator('input[type="file"]').waitFor({ state: 'attached' }); + await page.getByLabel('text-field-description').waitFor(); + await page.getByRole('button', { name: 'Cancel' }).click(); + await loadTab(page, 'Plugins'); // Adjust some "location type" items