From d7ed114e2cc50379b7dcd7fd15dc7da4976c6d23 Mon Sep 17 00:00:00 2001 From: Oliver <oliver.henry.walters@gmail.com> Date: Fri, 7 Feb 2025 12:49:00 +1100 Subject: [PATCH] Adjust playwright testing (#9043) * Adjust playwright testing - Backporting critical playwright changes * Fix for test * Remove problematic test --- .../tests/pages/pui_sales_order.spec.ts | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/src/frontend/tests/pages/pui_sales_order.spec.ts b/src/frontend/tests/pages/pui_sales_order.spec.ts index b161607d25..fb1ebe2355 100644 --- a/src/frontend/tests/pages/pui_sales_order.spec.ts +++ b/src/frontend/tests/pages/pui_sales_order.spec.ts @@ -149,35 +149,3 @@ test('Purchase Orders', async ({ page }) => { await page.getByRole('button', { name: 'Issue Order' }).waitFor(); }); - -test('Purchase Orders - Barcodes', async ({ page }) => { - await doQuickLogin(page); - - await page.goto(`${baseUrl}/purchasing/purchase-order/13/detail`); - await page.getByRole('button', { name: 'Issue Order' }).waitFor(); - - // Display QR code - await page.getByLabel('action-menu-barcode-actions').click(); - await page.getByLabel('action-menu-barcode-actions-view').click(); - await page.getByRole('img', { name: 'QR Code' }).waitFor(); - await page.getByRole('banner').getByRole('button').click(); - - // Link to barcode - await page.getByLabel('action-menu-barcode-actions').click(); - await page.getByLabel('action-menu-barcode-actions-link-barcode').click(); - await page.getByRole('heading', { name: 'Link Barcode' }).waitFor(); - await page - .getByPlaceholder('Scan barcode data here using') - .fill('1234567890'); - await page.getByRole('button', { name: 'Link' }).click(); - await page.getByRole('button', { name: 'Issue Order' }).waitFor(); - - // Unlink barcode - await page.getByLabel('action-menu-barcode-actions').click(); - await page.getByLabel('action-menu-barcode-actions-unlink-barcode').click(); - await page.getByRole('heading', { name: 'Unlink Barcode' }).waitFor(); - await page.getByText('This will remove the link to').waitFor(); - await page.getByRole('button', { name: 'Unlink Barcode' }).click(); - await page.waitForTimeout(500); - await page.getByRole('button', { name: 'Issue Order' }).waitFor(); -});