2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-28 13:54:25 +00:00

[UI] More sub-forms (#11785)

* Fix ApiFormFIeldType docstring

* Case fix

* Add sub-forms for company creation

* Tweak component def

* Add new company for manufacturer-part and supplier-part

* Create new parameter template directly from parameter view

* Add tooltip

* Add playwright tests

* Consolidate translation

* Revert to left side

* Fix title case

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
Oliver
2026-04-23 12:54:44 +10:00
committed by GitHub
parent b686cc1327
commit 757597c55d
8 changed files with 118 additions and 39 deletions
@@ -1,6 +1,6 @@
import { expect } from '@playwright/test';
import { test } from '../baseFixtures.ts';
import { readeruser } from '../defaults.ts';
import { readeruser, stevenuser } from '../defaults.ts';
import {
activateCalendarView,
activateTableView,
@@ -84,11 +84,11 @@ test('Purchasing - Index', async ({ browser }) => {
test('Purchasing - Parameters', async ({ browser }) => {
const page = await doCachedLogin(browser, {
url: 'purchasing/purchase-order/11/parameters'
url: 'purchasing/purchase-order/11/parameters',
user: stevenuser
});
// Create a new parameter against this purchase order
// We will use a "SelectionList" to choose the value here
await page
.getByRole('button', { name: 'action-menu-add-parameters' })
.click();
@@ -98,6 +98,25 @@ test('Purchasing - Parameters', async ({ browser }) => {
})
.click();
// Check for button to add a new template
await page
.getByRole('button', {
name: 'action-button-create-new-parameter-template'
})
.click();
await page
.getByText('Create New Parameter Template', { exact: true })
.first()
.waitFor();
await page.getByRole('textbox', { name: 'text-field-description' }).waitFor();
await page.getByRole('textbox', { name: 'text-field-choices' }).waitFor();
await page
.getByLabel('Create New Parameter Template')
.getByRole('button', { name: 'Cancel' })
.click();
// We will use a "SelectionList" to choose the value here
// Select the template
await page
.getByRole('combobox', { name: 'related-field-template' })