mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
[PUI] Notes Editor UX (#8265)
* Rearrange icons * Remove isDirty flag - Mucks around with editor focus - Need to revisit this * Fix playwright test * Fix playwright test
This commit is contained in:
@ -13,7 +13,8 @@ test('Pages - Index - Playground', async ({ page }) => {
|
||||
|
||||
// New Part
|
||||
await page.getByRole('button', { name: 'Create New Part' }).click();
|
||||
await page.locator('#react-select-3-input').fill('category 0');
|
||||
await page.getByLabel('related-field-category').fill('category 0');
|
||||
|
||||
await page
|
||||
.getByRole('option', { name: 'Category 0' })
|
||||
.locator('div')
|
||||
@ -22,7 +23,7 @@ test('Pages - Index - Playground', async ({ page }) => {
|
||||
|
||||
// Set the "name"
|
||||
await page.getByLabel('text-field-name').fill(newPartName);
|
||||
await page.getByLabel('number-field-initial_stock.').fill('1');
|
||||
await page.getByLabel('number-field-initial_stock').fill('1');
|
||||
|
||||
await page
|
||||
.getByLabel('Create Part')
|
||||
|
@ -237,8 +237,9 @@ test('Pages - Part - Notes', async ({ page }) => {
|
||||
|
||||
// Enable notes editing
|
||||
await page.getByLabel('Enable Editing').click();
|
||||
await page.getByLabel('Disable Editing').waitFor();
|
||||
|
||||
await page.getByLabel('Save Notes').waitFor();
|
||||
await page.getByLabel('Close Editor').waitFor();
|
||||
});
|
||||
|
||||
test('Pages - Part - 404', async ({ page }) => {
|
||||
|
Reference in New Issue
Block a user