diff --git a/src/frontend/playwright.config.ts b/src/frontend/playwright.config.ts index d40ec5cf42..5cdc624d5d 100644 --- a/src/frontend/playwright.config.ts +++ b/src/frontend/playwright.config.ts @@ -3,6 +3,7 @@ import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ testDir: './tests', fullyParallel: true, + timeout: 60000, forbidOnly: !!process.env.CI, retries: process.env.CI ? 1 : 0, workers: process.env.CI ? 2 : undefined, diff --git a/src/frontend/tests/pages/pui_index.spec.ts b/src/frontend/tests/pages/pui_index.spec.ts index 41481d75f1..a7080c173a 100644 --- a/src/frontend/tests/pages/pui_index.spec.ts +++ b/src/frontend/tests/pages/pui_index.spec.ts @@ -1,5 +1,5 @@ -import { expect, test } from '../baseFixtures.js'; -import { baseUrl, user } from '../defaults.js'; +import { test } from '../baseFixtures.js'; +import { baseUrl } from '../defaults.js'; import { doQuickLogin } from '../login.js'; const newPartName = 'UITESTIN123'; diff --git a/src/frontend/tests/pages/pui_part.spec.ts b/src/frontend/tests/pages/pui_part.spec.ts index 09650cca08..14a3f631fa 100644 --- a/src/frontend/tests/pages/pui_part.spec.ts +++ b/src/frontend/tests/pages/pui_part.spec.ts @@ -1,6 +1,6 @@ -import { expect, test } from '@playwright/test'; +import { test } from '@playwright/test'; -import { baseUrl, user } from '../defaults'; +import { baseUrl } from '../defaults'; import { doQuickLogin } from '../login'; test('PUI - Pages - Part - Pricing', async ({ page }) => { @@ -32,15 +32,12 @@ test('PUI - Pages - Part - Pricing', async ({ page }) => { await page.getByRole('button', { name: 'BOM Pricing' }).isEnabled(); // Overview Graph - //await page.getByText('BOM PricingOverall Pricing').waitFor(); let graph = page.locator('#pricing-overview-chart'); await graph.waitFor(); - //await graph.screenshot({ path: 'pui_part_pricing_overview.png' }); await graph.getByText('$45').waitFor(); await graph.getByText('BOM Pricing').waitFor(); await graph.getByText('Overall Pricing').waitFor(); await graph.locator('path').nth(1).hover(); - //await graph.screenshot({ path: 'pui_part_pricing_overview_hover.png' }); await page.getByText('min_value : $43').waitFor(); // BOM Pricing