import { test } from '../baseFixtures.ts'; import { baseUrl } from '../defaults.ts'; import { doQuickLogin } from '../login.ts'; test('PUI - Pages - Build Order', async ({ page }) => { await doQuickLogin(page); await page.goto(`${baseUrl}/part/`); // Navigate to the correct build order await page.getByRole('tab', { name: 'Build', exact: true }).click(); await page.getByRole('cell', { name: 'BO0011' }).click(); // Click on some tabs await page.getByRole('tab', { name: 'Attachments' }).click(); await page.getByRole('tab', { name: 'Notes' }).click(); await page.getByRole('tab', { name: 'Incomplete Outputs' }).click(); await page.getByRole('tab', { name: 'Line Items' }).click(); await page.getByRole('tab', { name: 'Allocated Stock' }).click(); // Check for expected text in the table await page.getByText('R_10R_0402_1%').waitFor(); await page .getByRole('cell', { name: 'R38, R39, R40, R41, R42, R43' }) .waitFor(); // Check "test results" await page.getByRole('tab', { name: 'Test Results' }).click(); await page.getByText('Quantity: 25').waitFor(); await page.getByText('Continuity Checks').waitFor(); await page .getByRole('row', { name: 'Quantity: 16 No location set' }) .getByRole('button') .hover(); await page.getByText('Add Test Result').waitFor(); // Click through to the "parent" build await page.getByRole('tab', { name: 'Build Details' }).click(); await page.getByRole('link', { name: 'BO0010' }).click(); await page .getByLabel('Build Details') .getByText('Making a high level assembly') .waitFor(); });