mirror of
https://github.com/inventree/InvenTree.git
synced 2026-04-15 07:48:51 +00:00
Build line fix (#11566)
* Fix for RenderBuildLine * Simple playwright test
This commit is contained in:
@@ -4,6 +4,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,
|
||||
|
||||
Reference in New Issue
Block a user