2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 05:00:58 +00:00

[PUI] Form error fix (#8204)

* Handle simple string error message

* Add playwright test for form validation

* Render stock unit price / total value

* Fix for TextField:

- Prevent unnecessary value change
- This was removing the field error

* Add playwright test for supplier form validation
This commit is contained in:
Oliver
2024-09-28 13:33:31 +10:00
committed by GitHub
parent e6470ffdea
commit 390fec3ab1
18 changed files with 214 additions and 52 deletions

View File

@ -3,7 +3,7 @@ import { apiUrl, baseUrl } from './defaults.js';
import { doQuickLogin } from './login.js';
import { setSettingState } from './settings.js';
test('PUI - Admin', async ({ page }) => {
test('Admin', async ({ page }) => {
// Note here we login with admin access
await doQuickLogin(page, 'admin', 'inventree');
@ -86,7 +86,7 @@ test('PUI - Admin', async ({ page }) => {
await page.getByRole('button', { name: 'Submit' }).click();
});
test('PUI - Admin - Barcode History', async ({ page, request }) => {
test('Admin - Barcode History', async ({ page, request }) => {
// Login with admin credentials
await doQuickLogin(page, 'admin', 'inventree');
@ -123,7 +123,7 @@ test('PUI - Admin - Barcode History', async ({ page, request }) => {
});
});
test('PUI - Admin - Unauthorized', async ({ page }) => {
test('Admin - Unauthorized', async ({ page }) => {
// Try to access "admin" page with a non-staff user
await doQuickLogin(page, 'allaccess', 'nolimits');