mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-23 02:06:42 +00:00
Part copy test (#9764)
* Add functionality to copy part test templates when duplicating a part instance * Bug fixes * Tweak part duplication fields * Add simple playwright test * Updated unit test for part duplication * Bump API version
This commit is contained in:
1 parent
c81d0eb628
commit
e30c4e7cdd
7 files changed
+129
-36
No files matched your search
@@ -507,3 +507,19 @@ test('Parts - Bulk Edit', async ({ browser }) => {
|
||||
await page.getByRole('button', { name: 'Update' }).click();
|
||||
await page.getByText('Items Updated').waitFor();
|
||||
});
|
||||
|
||||
test('Parts - Duplicate', async ({ browser }) => {
|
||||
const page = await doCachedLogin(browser, {
|
||||
url: 'part/74/details'
|
||||
});
|
||||
|
||||
// Open "duplicate part" dialog
|
||||
await page.getByLabel('action-menu-part-actions').click();
|
||||
await page.getByLabel('action-menu-part-actions-duplicate').click();
|
||||
|
||||
// Check for expected fields
|
||||
await page.getByText('Copy Image', { exact: true }).waitFor();
|
||||
await page.getByText('Copy Notes', { exact: true }).waitFor();
|
||||
await page.getByText('Copy Parameters', { exact: true }).waitFor();
|
||||
await page.getByText('Copy Tests', { exact: true }).waitFor();
|
||||
});
|
||||
Reference in new issue
Block a user