diff --git a/src/frontend/src/components/nav/PageDetail.tsx b/src/frontend/src/components/nav/PageDetail.tsx index 9e7f5def337..d61f4c65868 100644 --- a/src/frontend/src/components/nav/PageDetail.tsx +++ b/src/frontend/src/components/nav/PageDetail.tsx @@ -73,7 +73,7 @@ export function PageDetail({ {subtitle && ( {icon} - + {subtitle} diff --git a/src/frontend/tests/pages/pui_part.spec.ts b/src/frontend/tests/pages/pui_part.spec.ts index 21affbababf..7769e0f25b8 100644 --- a/src/frontend/tests/pages/pui_part.spec.ts +++ b/src/frontend/tests/pages/pui_part.spec.ts @@ -172,7 +172,8 @@ test('Parts - Pricing (Nothing, BOM)', async ({ page }) => { // Part with no history await page.goto(`${baseUrl}/part/82/pricing`); - await page.getByText('1551ABK').waitFor(); + + await page.getByText('Small plastic enclosure, black').waitFor(); await page.getByRole('tab', { name: 'Part Pricing' }).click(); await page.getByLabel('Part Pricing').getByText('Part Pricing').waitFor(); await page.getByRole('button', { name: 'Pricing Overview' }).waitFor(); @@ -183,7 +184,7 @@ test('Parts - Pricing (Nothing, BOM)', async ({ page }) => { // Part with history await page.goto(`${baseUrl}/part/108/pricing`); - await page.getByText('Part: Blue Chair').waitFor(); + await page.getByText('A chair - with blue paint').waitFor(); await page.getByRole('tab', { name: 'Part Pricing' }).click(); await page.getByLabel('Part Pricing').getByText('Part Pricing').waitFor(); await page.getByRole('button', { name: 'Pricing Overview' }).waitFor(); @@ -221,7 +222,7 @@ test('Parts - Pricing (Supplier)', async ({ page }) => { // Part await page.goto(`${baseUrl}/part/55/pricing`); - await page.getByText('Part: C_100nF_0603').waitFor(); + await page.getByText('Ceramic capacitor, 100nF in').waitFor(); await page.getByRole('tab', { name: 'Part Pricing' }).click(); await page.getByLabel('Part Pricing').getByText('Part Pricing').waitFor(); await page.getByRole('button', { name: 'Pricing Overview' }).waitFor(); @@ -247,7 +248,7 @@ test('Parts - Pricing (Variant)', async ({ page }) => { // Part await page.goto(`${baseUrl}/part/106/pricing`); - await page.getByText('Part: Chair').waitFor(); + await page.getByText('A chair - available in multiple colors').waitFor(); await page.getByRole('tab', { name: 'Part Pricing' }).click(); await page.getByLabel('Part Pricing').getByText('Part Pricing').waitFor(); await page.getByRole('button', { name: 'Pricing Overview' }).waitFor(); @@ -273,7 +274,7 @@ test('Parts - Pricing (Internal)', async ({ page }) => { // Part await page.goto(`${baseUrl}/part/65/pricing`); - await page.getByText('Part: M2x4 SHCS').waitFor(); + await page.getByText('Socket head cap screw, M2').waitFor(); await page.getByRole('tab', { name: 'Part Pricing' }).click(); await page.getByLabel('Part Pricing').getByText('Part Pricing').waitFor(); await page.getByRole('button', { name: 'Pricing Overview' }).waitFor(); @@ -298,7 +299,7 @@ test('Parts - Pricing (Purchase)', async ({ page }) => { // Part await page.goto(`${baseUrl}/part/69/pricing`); - await page.getByText('Part: 530470210').waitFor(); + await page.getByText('1.25mm Pitch, PicoBlade PCB').waitFor(); await page.getByRole('tab', { name: 'Part Pricing' }).click(); await page.getByLabel('Part Pricing').getByText('Part Pricing').waitFor(); await page.getByRole('button', { name: 'Pricing Overview' }).waitFor(); diff --git a/src/frontend/tests/pages/pui_sales_order.spec.ts b/src/frontend/tests/pages/pui_sales_order.spec.ts index 7a26bab19a4..dbe71e10905 100644 --- a/src/frontend/tests/pages/pui_sales_order.spec.ts +++ b/src/frontend/tests/pages/pui_sales_order.spec.ts @@ -18,7 +18,7 @@ test('Sales Orders', async ({ page }) => { await page.getByRole('cell', { name: 'SO0003' }).click(); // Order is "on hold". We will "issue" it and then place on hold again - await page.getByText('Sales Order: SO0003').waitFor(); + await page.getByText('Selling stuff').first().waitFor(); await page.getByText('On Hold').first().waitFor(); await page.getByRole('button', { name: 'Issue Order' }).click(); await page.getByRole('button', { name: 'Submit' }).click(); diff --git a/src/frontend/tests/pui_basic.spec.ts b/src/frontend/tests/pui_basic.spec.ts index e28e76bb183..c1639caa36b 100644 --- a/src/frontend/tests/pui_basic.spec.ts +++ b/src/frontend/tests/pui_basic.spec.ts @@ -14,7 +14,7 @@ test('Basic Login Test', async ({ page }) => { await page.goto(baseUrl); await page.waitForURL('**/platform'); - await page.getByText('InvenTree Demo Server').waitFor(); + await page.getByText('InvenTree Demo Server -').waitFor(); // Check that the username is provided await page.getByText(user.username); @@ -45,7 +45,7 @@ test('Quick Login Test', async ({ page }) => { await page.goto(baseUrl); await page.waitForURL('**/platform'); - await page.getByText('InvenTree Demo Server').waitFor(); + await page.getByText('InvenTree Demo Server - ').waitFor(); // Logout (via URL) await page.goto(`${baseUrl}/logout/`); diff --git a/src/frontend/tests/pui_command.spec.ts b/src/frontend/tests/pui_command.spec.ts index 3b53c7bffa1..8e2e2f7a980 100644 --- a/src/frontend/tests/pui_command.spec.ts +++ b/src/frontend/tests/pui_command.spec.ts @@ -22,7 +22,7 @@ test('Quick Command - No Keys', async ({ page }) => { .getByRole('button', { name: 'Dashboard Go to the InvenTree' }) .click(); - await page.getByText('InvenTree Demo Server').waitFor(); + await page.getByText('InvenTree Demo Server - ').waitFor(); await page.waitForURL('**/platform/home'); // Use navigation menu diff --git a/src/frontend/tests/pui_forms.spec.ts b/src/frontend/tests/pui_forms.spec.ts index 222b19ef4d4..68d29df3efd 100644 --- a/src/frontend/tests/pui_forms.spec.ts +++ b/src/frontend/tests/pui_forms.spec.ts @@ -107,7 +107,7 @@ test('Forms - Supplier Validation', async ({ page, request }) => { await page.getByLabel('text-field-name').fill(supplierName); await page.getByRole('button', { name: 'Submit' }).click(); - await page.getByText(supplierName).waitFor(); + await page.getByText('A description').first().waitFor(); await page .getByRole('link', { name: 'https://www.test-website.co.uk' }) .waitFor();