2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-18 18:56:31 +00:00

cleanup tests

This commit is contained in:
Matthias Mair
2024-04-17 22:23:39 +02:00
parent 0d22a8a559
commit 3f6f3b3aad
3 changed files with 5 additions and 7 deletions

View File

@@ -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