2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-09 03:03:41 +00:00

Build line fix (#11566) (#11570)

* Fix for RenderBuildLine

* Simple playwright test

(cherry picked from commit 7f0610502d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot]
2026-03-20 09:00:21 +11:00
committed by GitHub
parent 17fd3174fc
commit 3e447066c6
2 changed files with 23 additions and 7 deletions
+20
View File
@@ -3,6 +3,26 @@ import { activateTableView, loadTab } from './helpers.js';
import { doCachedLogin } from './login.js';
import { setPluginState } from './settings.js';
// Test for the label editing interface
test('Printing - Label Editing', async ({ browser }) => {
const page = await doCachedLogin(browser, {
user: adminuser,
url: 'settings/admin/labels'
});
// Open a particular label template for editing
await page.getByRole('cell', { name: 'Sample build line label' }).click();
// Await expected entries
await page.getByRole('tab', { name: 'PDF Preview' }).waitFor();
await page.getByText('This is an example template').waitFor();
await page
.locator('div')
.filter({ hasText: /^BO\d+$/ })
.first()
.waitFor();
});
/*
* Test for label printing.
* Select a number of stock items from the table,