mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-05 03:21:35 +00:00
Add divider to dashboard (#9884)
* Add divider to dashboard * Tweak unit test
This commit is contained in:
@@ -126,13 +126,15 @@ test('Part - Editing', async ({ browser }) => {
|
||||
.fill(keywords ? '' : 'table furniture');
|
||||
|
||||
// Test URL validation
|
||||
await page.getByLabel('text-field-link').fill('htxp-??QQQ++');
|
||||
await page
|
||||
.getByRole('textbox', { name: 'text-field-link' })
|
||||
.fill('htxp-??QQQ++');
|
||||
await page.waitForTimeout(200);
|
||||
await page.getByRole('button', { name: 'Submit' }).click();
|
||||
await page.getByText('Enter a valid URL.').waitFor();
|
||||
|
||||
// Fill with an empty URL
|
||||
await page.getByLabel('text-field-link').fill('');
|
||||
await page.getByRole('textbox', { name: 'text-field-link' }).fill('');
|
||||
await page.waitForTimeout(200);
|
||||
await page.getByRole('button', { name: 'Submit' }).click();
|
||||
await page.getByText('Item Updated').waitFor();
|
||||
|
Reference in New Issue
Block a user