2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

PUI form framework: dependent field (#7584)

* PUI form framework: implement the dependent field

* fix: tests

* fix: hook

* fix: tests

* --no-verify

trigger: ci

* --noVerify

trigger: ci
This commit is contained in:
Lukas
2024-07-09 00:14:26 +02:00
committed by GitHub
parent 1017ff0605
commit 9a6cfb4309
7 changed files with 180 additions and 33 deletions

View File

@ -36,9 +36,9 @@ test('PUI - Label Printing', async ({ page }) => {
await page.waitForTimeout(100);
// Submit the form (second time should result in success)
await page.getByRole('button', { name: 'Submit' }).isEnabled();
await page.getByRole('button', { name: 'Submit' }).click();
// Submit the print form (second time should result in success)
await page.getByRole('button', { name: 'Print', exact: true }).isEnabled();
await page.getByRole('button', { name: 'Print', exact: true }).click();
await page.locator('#form-success').waitFor();
await page.getByText('Label printing completed').waitFor();
@ -71,9 +71,9 @@ test('PUI - Report Printing', async ({ page }) => {
await page.waitForTimeout(100);
// Submit the form (should result in success)
await page.getByRole('button', { name: 'Submit' }).isEnabled();
await page.getByRole('button', { name: 'Submit' }).click();
// Submit the print form (should result in success)
await page.getByRole('button', { name: 'Generate', exact: true }).isEnabled();
await page.getByRole('button', { name: 'Generate', exact: true }).click();
await page.locator('#form-success').waitFor();
await page.getByText('Report printing completed').waitFor();