2
0
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:
Oliver
2025-02-22 08:34:45 +11:00
committed by GitHub
parent 2521862b1a
commit 1f84f24514
4 changed files with 129 additions and 63 deletions

View File

@@ -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');
};
/**