2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-14 06:31:27 +00:00

[CI] Playwright testing improvements (#8985)

* Run playwright tests in headless mode

* Add navigation helper

* Validate files

* test fix

* Remove 'headless'

* Fixes

* Fix for 'navigate' helper

* Further updates
This commit is contained in:
Oliver
2025-02-01 16:29:13 +11:00
committed by GitHub
parent 66496fb669
commit 821b311d73
16 changed files with 116 additions and 87 deletions

View File

@@ -1,5 +1,5 @@
import { test } from '../baseFixtures';
import { baseUrl } from '../defaults';
import { navigate } from '../helpers';
import { doQuickLogin } from '../login';
test('PUI - Admin - Parameter', async ({ page }) => {
@@ -75,7 +75,7 @@ test('PUI - Admin - Parameter', async ({ page }) => {
await page.getByRole('cell', { name: 'my custom parameter' }).click();
// Fill parameter
await page.goto(`${baseUrl}/part/104/parameters/`);
await navigate(page, 'part/104/parameters/');
await page.getByLabel('Parameters').getByText('Parameters').waitFor();
await page.waitForLoadState('networkidle');
await page.getByLabel('action-button-add-parameter').waitFor();