2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-10-22 00:47:38 +00:00

Generator updates (#10605)

* Form Field updates:

- Allow spec of leftSection prop
- Allow spec of rightSection prop

* Add ability to auto-fill text input with placeholder value

* Simplify stock form

* Better serial number placeholders

* Update other generator fields

* Add default placeholder to DateInput

* Enhance TextField

* Remove serial_numbers field for non-creation forms

* Update playwright tests

* Adjust playwright tests

* Further playwright adjustments

* Fix project code field for build serializer
This commit is contained in:
Oliver
2025-10-18 17:18:04 +11:00
committed by GitHub
parent a7c4f2adba
commit 72d127219f
16 changed files with 219 additions and 114 deletions

View File

@@ -50,25 +50,25 @@ test('Tables - Pagination', async ({ browser }) => {
// Expected pagination size is 25
// Note: Due to other tests, there may be more than 25 items in the list
await page.getByText(/1 - 25 \/ 2[2|8]/).waitFor();
await page.getByText(/1 - 25 \/ \d+/).waitFor();
await page.getByRole('button', { name: 'Next page' }).click();
await page.getByText(/26 - 2[7|8] \/ 2[7|8]/).waitFor();
await page.getByText(/26 - \d+ \/ \d+/).waitFor();
// Set page size to 10
await page.getByRole('button', { name: '25' }).click();
await page.getByRole('menuitem', { name: '10', exact: true }).click();
await page.getByText(/1 - 10 \/ 2[7|8]/).waitFor();
await page.getByText(/1 - 10 \/ \d+/).waitFor();
await page.getByRole('button', { name: '3' }).click();
await page.getByText(/21 - 2[7|8] \/ 2[7|8]/).waitFor();
await page.getByText(/21 - \d+ \/ \d+/).waitFor();
await page.getByRole('button', { name: 'Previous page' }).click();
await page.getByText(/11 - 20 \/ 2[7|8]/).waitFor();
await page.getByText(/11 - 20 \/ \d+/).waitFor();
// Set page size back to 25
await page.getByRole('button', { name: '10' }).click();
await page.getByRole('menuitem', { name: '25', exact: true }).click();
await page.getByText(/1 - 25 \/ 2[7|8]/).waitFor();
await page.getByText(/1 - 25 \/ \d+/).waitFor();
});
test('Tables - Columns', async ({ browser }) => {