2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-07-05 06:32:55 +00:00

Mysql filter fix (#12185)

* Improve "available" filter for BuildLine API endpoint

* Fix typo

* Additional unit tests

* Additional playwright tests
This commit is contained in:
Oliver
2026-06-17 14:50:17 +10:00
committed by GitHub
parent a670eabd10
commit 38008d8204
4 changed files with 204 additions and 7 deletions
@@ -903,4 +903,16 @@ test('Build Order - BOM Quantity', async ({ browser }) => {
.locator('div');
const row2 = await getRowFromCell(line);
await row2.getByText('1,175').first().waitFor();
// Test table filtering against the "Required Parts" table
await clearTableFilters(page);
await page.getByText('1 - 7 / 7').waitFor();
// Filter by "available" stock
await setTableChoiceFilter(page, 'Available', 'Yes');
await page.getByText('1 - 3 / 3').waitFor();
await clearTableFilters(page);
await setTableChoiceFilter(page, 'Available', 'No');
await page.getByText('1 - 4 / 4').waitFor();
});