2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-02-14 02:07:13 +00:00
* Remove debouncing from text field

* Add debounce to data import field

* Only apply for strings values

* Fix unit test

* More unit test tweaks
This commit is contained in:
Oliver
2025-11-14 17:35:59 +11:00
committed by GitHub
parent 8cb808f613
commit ba9b5438b4
4 changed files with 43 additions and 25 deletions

View File

@@ -98,7 +98,7 @@ test('Forms - Supplier Validation', async ({ browser }) => {
// Check for validation errors
await page.getByText('Form Error').waitFor();
await page.getByText('Errors exist for one or more').waitFor();
await page.getByText('This field may not be blank.').waitFor();
await page.getByText('This field is required').waitFor();
await page.getByText('Enter a valid URL.').waitFor();
// Fill out another field, expect that the errors persist
@@ -106,7 +106,7 @@ test('Forms - Supplier Validation', async ({ browser }) => {
.getByLabel('text-field-description', { exact: true })
.fill('A description');
await page.waitForTimeout(250);
await page.getByText('This field may not be blank.').waitFor();
await page.getByText('This field is required').waitFor();
await page.getByText('Enter a valid URL.').waitFor();
// Generate a unique supplier name

View File

@@ -116,9 +116,15 @@ test('Importing - BOM', async ({ browser }) => {
// Delete selected rows
await page
.getByRole('dialog', { name: 'Importing Data Upload File 2' })
.getByRole('dialog', { name: 'Importing Data Upload File' })
.getByLabel('action-button-delete-selected')
.waitFor();
await page.waitForTimeout(200);
await page
.getByRole('dialog', { name: 'Importing Data Upload File' })
.getByLabel('action-button-delete-selected')
.click();
await page.getByRole('button', { name: 'Delete', exact: true }).click();
await page.getByText('Success', { exact: true }).waitFor();