2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-12 07:54:14 +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

@ -8,7 +8,7 @@ import { setPluginState } from './settings.js';
* Select a number of stock items from the table,
* and print labels against them
*/
test('PUI - Label Printing', async ({ page }) => {
test('Label Printing', async ({ page }) => {
await doQuickLogin(page);
await page.goto(`${baseUrl}/stock/location/index/`);
@ -52,7 +52,7 @@ test('PUI - Label Printing', async ({ page }) => {
* Navigate to a PurchaseOrder detail page,
* and print a report against it.
*/
test('PUI - Report Printing', async ({ page }) => {
test('Report Printing', async ({ page }) => {
await doQuickLogin(page);
await page.goto(`${baseUrl}/stock/location/index/`);
@ -82,7 +82,7 @@ test('PUI - Report Printing', async ({ page }) => {
await page.context().close();
});
test('PUI - Report Editing', async ({ page, request }) => {
test('Report Editing', async ({ page, request }) => {
const [username, password] = ['admin', 'inventree'];
await doQuickLogin(page, username, password);