mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
cleanup tests
This commit is contained in:
parent
0d22a8a559
commit
3f6f3b3aad
@ -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,
|
||||
|
@ -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';
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user