test hover state and bom pricing details

This commit is contained in:
Matthias Mair 2024-04-17 22:07:31 +02:00
parent 3f38cd30bf
commit d79d062a66
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -41,5 +41,14 @@ test('PUI - Pages - Part - Pricing', async ({ page }) => {
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();
await page.getByText('min_value : $43').waitFor();
// BOM Pricing
await page.getByLabel('Pricing Overview').locator('a').click();
await page.getByRole('button', { name: 'BOM Pricing' }).isEnabled();
await page.getByText('Bar Chart').click();
await page.getByText('total_price_min').waitFor();
await page.getByText('Pie Chart').click();
await page.getByRole('button', { name: 'Quantity Not sorted' }).waitFor();
await page.getByRole('button', { name: 'Unit Price Not sorted' }).waitFor();
});