mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
add pricing tests
This commit is contained in:
22
src/frontend/tests/test-1.spec.ts
Normal file
22
src/frontend/tests/test-1.spec.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { expect, test } from '@playwright/test';
|
||||||
|
|
||||||
|
import { user } from './defaults';
|
||||||
|
|
||||||
|
test('test', async ({ page }) => {
|
||||||
|
await page.goto('./platform/');
|
||||||
|
await expect(page).toHaveTitle('InvenTree');
|
||||||
|
await page.waitForURL('**/platform/');
|
||||||
|
await page.getByLabel('username').fill(user.username);
|
||||||
|
await page.getByLabel('password').fill(user.password);
|
||||||
|
await page.getByRole('button', { name: 'Log in' }).click();
|
||||||
|
await page.waitForURL('**/platform');
|
||||||
|
await page.goto('./platform/home');
|
||||||
|
|
||||||
|
await page.goto('./platform/part/82/pricing');
|
||||||
|
await page.locator('a').filter({ hasText: '1551ABKSmall plastic' }).click();
|
||||||
|
await page.getByRole('tab', { name: 'Part Pricing' }).click();
|
||||||
|
await page.getByLabel('Part Pricing').getByText('Part Pricing').waitFor();
|
||||||
|
await page.getByRole('button', { name: 'Pricing Overview' }).waitFor();
|
||||||
|
await page.getByRole('button', { name: 'Pricing Overview' }).waitFor();
|
||||||
|
await page.getByText('Last Updated').waitFor();
|
||||||
|
});
|
Reference in New Issue
Block a user