2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-02-05 21:05:51 +00:00

[UI] Fix SupplierPartTable (#11253)

* [UI] Fix SupplierPartTable

- Ensure manufacturer_part_detail is fetched too

* Updated playwright tests
This commit is contained in:
Oliver
2026-02-04 17:18:24 +11:00
committed by GitHub
parent 6a5f01ae57
commit 8f27063e40
2 changed files with 27 additions and 1 deletions

View File

@@ -314,7 +314,8 @@ export function SupplierPartTable({
part: partId,
part_detail: true,
supplier_detail: true,
manufacturer_detail: true
manufacturer_detail: true,
manufacturer_part_detail: true
},
rowActions: rowActions,
enableDownload: true,

View File

@@ -39,6 +39,10 @@ test('Purchasing - Index', async ({ browser }) => {
.getByRole('button', { name: 'segmented-icon-control-table' })
.click();
// Check for expected values
await clearTableFilters(page);
await page.getByRole('cell', { name: 'DigiKey DigiKey' }).first().waitFor();
// Supplier parts tab
await loadTab(page, 'Supplier Parts');
await page
@@ -48,6 +52,12 @@ test('Purchasing - Index', async ({ browser }) => {
.getByRole('button', { name: 'segmented-icon-control-table' })
.click();
// Check for expected values
await clearTableFilters(page);
await page.getByText('R_100K_0402_1%').first().waitFor();
await page.getByRole('cell', { name: 'RR05P100KDTR-ND' }).first().waitFor();
await page.getByRole('cell', { name: 'RT0402BRD07100KL' }).first().waitFor();
// Manufacturers tab
await loadTab(page, 'Manufacturers');
await page
@@ -57,6 +67,13 @@ test('Purchasing - Index', async ({ browser }) => {
.getByRole('button', { name: 'segmented-icon-control-table' })
.click();
// Check for expected values
await clearTableFilters(page);
await page
.getByRole('cell', { name: 'Hammond Manufacturing Hammond' })
.first()
.waitFor();
// Manufacturer parts tab
await loadTab(page, 'Manufacturer Parts');
await page
@@ -65,6 +82,14 @@ test('Purchasing - Index', async ({ browser }) => {
await page
.getByRole('button', { name: 'segmented-icon-control-table' })
.click();
// Check for expected values
await clearTableFilters(page);
await page.getByRole('cell', { name: 'ERA-2AEB104X' }).first().waitFor();
await page
.getByRole('cell', { name: 'Bourns Inc. Bourns Inc.' })
.first()
.waitFor();
});
test('Purchase Orders - General', async ({ browser }) => {