mirror of
https://github.com/inventree/InvenTree.git
synced 2026-02-14 02:07:13 +00:00
Char fix (#10827)
* 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:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user