From e899c85c13d6594a8e42fe5cecd5fc66074c3d9d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 10 Aug 2024 17:09:57 +1000 Subject: [PATCH] Fix playwright tests --- src/frontend/tests/pages/pui_index.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/tests/pages/pui_index.spec.ts b/src/frontend/tests/pages/pui_index.spec.ts index 8da06cdf7a88..9767e9899136 100644 --- a/src/frontend/tests/pages/pui_index.spec.ts +++ b/src/frontend/tests/pages/pui_index.spec.ts @@ -49,7 +49,7 @@ test('PUI - Pages - Index - Playground', async ({ page }) => { // EditCategory await page.getByRole('button', { name: 'Edit Category' }).click(); - await page.locator('.css-fehojk-Input2').first().click(); + await page.getByLabel('related-field-parent').click(); await page.getByText('Category 0').click(); await page .getByLabel('Edit Category') @@ -58,7 +58,7 @@ test('PUI - Pages - Index - Playground', async ({ page }) => { // Create Part new Modal await page.getByRole('button', { name: 'Create Part new Modal' }).click(); - await page.locator('.css-fehojk-Input2').first().click(); + await page.getByLabel('related-field-category').click(); await page.getByText('Category 0').click(); await page .getByLabel('Create part')