mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-22 15:56:14 +00:00
[UI] Table column filters (#12103)
* Expose properties for column based filtering * Adjust renderers * Hide filter if name does not match * Allow multiple filters on same column * Better formatting * Add filtering support for multiple tables * Revert yarn.lock changes * Fix date input props * Updated column * Add filter to PartTable * Add playwright tests for new column filters * Update CHANGELOG * Updated docs * Reduce padding * Update more table filters * More filter columns * Adjust playwright test * Simplify playwright test * Robustify playwright tests * Add some delay * Add some buffer time
This commit is contained in:
1 parent
a86e94c63d
commit
7f1f2dbad2
33 files changed
+407
-99
No files matched your search
@@ -210,3 +210,23 @@ export const expectTableColumnCount = async (page: Page, count: number) => {
|
||||
const columns = page.locator('table thead tr th');
|
||||
await expect(columns).toHaveCount(count);
|
||||
};
|
||||
|
||||
// Open an "action" associated with the detail view of a page
|
||||
export const openDetailAction = async (
|
||||
page: Page,
|
||||
menuName: string,
|
||||
actionName: string
|
||||
) => {
|
||||
// Ensure idle state first
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
// Click on the "actions" menu
|
||||
await page.getByRole('button', { name: `action-menu-${menuName}` }).click();
|
||||
|
||||
// Click on the specified action
|
||||
await page
|
||||
.getByRole('menuitem', {
|
||||
name: `action-menu-${menuName}-actions-${actionName}`
|
||||
})
|
||||
.click();
|
||||
};
|
||||
Reference in new issue
Block a user