2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-27 09:10:51 +00:00

[UI] Part pricing breaks (#8975)

* Un-hide pricing panels

* Change positioning

* Enhanced playwrigh testing
This commit is contained in:
Oliver
2025-01-29 15:52:25 +11:00
committed by GitHub
parent c67e80b50e
commit 01b74da255
5 changed files with 37 additions and 26 deletions

View File

@ -1,6 +1,6 @@
import { test } from '../baseFixtures';
import { baseUrl } from '../defaults';
import { getRowFromCell } from '../helpers';
import { clearTableFilters, getRowFromCell } from '../helpers';
import { doQuickLogin } from '../login';
/**
@ -9,12 +9,17 @@ import { doQuickLogin } from '../login';
test('Parts - Tabs', async ({ page }) => {
await doQuickLogin(page);
await page.goto(`${baseUrl}/home`);
await page.getByRole('tab', { name: 'Parts' }).click();
await page
.getByLabel('panel-tabs-partcategory')
.getByRole('tab', { name: 'Parts' })
.click();
await page.waitForURL('**/platform/part/category/index/details');
await page.goto(`${baseUrl}/part/category/index/parts`);
// Select a particular part from the table
await clearTableFilters(page);
await page.getByPlaceholder('Search').fill('1551');
await page.getByText('1551ABK').click();
await page.getByRole('tab', { name: 'Allocations' }).click();
await page.getByRole('tab', { name: 'Used In' }).click();
await page.getByRole('tab', { name: 'Pricing' }).click();
@ -30,11 +35,12 @@ test('Parts - Tabs', async ({ page }) => {
await page.getByText('1551ACLR').click();
await page.getByRole('tab', { name: 'Part Details' }).click();
await page.getByRole('tab', { name: 'Parameters' }).click();
await page
.getByRole('tab', { name: 'Part Details' })
.locator('xpath=..')
.getByLabel('panel-tabs-part')
.getByRole('tab', { name: 'Stock', exact: true })
.click();
await page.getByRole('tab', { name: 'Allocations' }).click();
await page.getByRole('tab', { name: 'Used In' }).click();
await page.getByRole('tab', { name: 'Pricing' }).click();