mirror of
https://github.com/inventree/InvenTree.git
synced 2025-09-14 06:31:27 +00:00
Batch code fix (#9123)
* Fix batch code assignment when receiving items * Add playwright tests * Harden playwright tests * Refactoring
This commit is contained in:
@@ -65,6 +65,12 @@ export const getRowFromCell = async (cell) => {
|
||||
return cell.locator('xpath=ancestor::tr').first();
|
||||
};
|
||||
|
||||
export const clickOnRowMenu = async (cell) => {
|
||||
const row = await getRowFromCell(cell);
|
||||
|
||||
await row.getByLabel(/row-action-menu-/i).click();
|
||||
};
|
||||
|
||||
/**
|
||||
* Navigate to the provided page, and wait for loading to complete
|
||||
* @param page
|
||||
@@ -80,6 +86,7 @@ export const navigate = async (page, url: string) => {
|
||||
}
|
||||
|
||||
await page.goto(url, { waitUntil: 'domcontentloaded' });
|
||||
await page.waitForLoadState('networkidle');
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user