mirror of
https://github.com/inventree/InvenTree.git
synced 2025-09-14 22:51:30 +00:00
[CI] Playwright improvements (#9395)
* Allow port 4173 (vite preview) * Change 'base' attr based on vite command * Allow api_host to be specified separately * Harden API host functionality * Adjust server selections * Cleanup vite.config.ts * Adjust playwright configuration - Allow to run in "production" mode - Builds the code first - Runs only the backend web server - Not suitable for coverage * Tweak github actions * Tweak QC file * Reduce number of steps * Tweak CI file * Fix typo * Ensure translation before build * Fix hard-coded test * Test tweaks * uncomment * Revert some changes * Run with gunicorn, single worker * Reduce log output in DEBUG mode * Update deps * Add global-setup func * Fix for .gitignore file * Cached auth state * Tweak login func * Updated tests * Enable parallel workers again * Simplify config * Try with a single worker again * Single retry mode * Run auth setup first - Prevent issues with parallel test doing login * Improve test setup process * Tweaks * Bump to 3 workers * Tweak playwright settings * Revert change * Revert change
This commit is contained in:
@@ -4,13 +4,11 @@ import {
|
||||
navigate,
|
||||
setTableChoiceFilter
|
||||
} from './helpers.js';
|
||||
import { doQuickLogin } from './login.js';
|
||||
|
||||
test('Tables - Filters', async ({ page }) => {
|
||||
await doQuickLogin(page);
|
||||
import { doCachedLogin } from './login.js';
|
||||
|
||||
test('Tables - Filters', async ({ browser }) => {
|
||||
// Head to the "build order list" page
|
||||
await navigate(page, 'manufacturing/index/');
|
||||
const page = await doCachedLogin(browser, { url: 'manufacturing/index/' });
|
||||
|
||||
await clearTableFilters(page);
|
||||
|
||||
@@ -41,11 +39,11 @@ test('Tables - Filters', async ({ page }) => {
|
||||
await clearTableFilters(page);
|
||||
});
|
||||
|
||||
test('Tables - Columns', async ({ page }) => {
|
||||
await doQuickLogin(page);
|
||||
|
||||
test('Tables - Columns', async ({ browser }) => {
|
||||
// Go to the "stock list" page
|
||||
await navigate(page, 'stock/location/index/stock-items');
|
||||
const page = await doCachedLogin(browser, {
|
||||
url: 'stock/location/index/stock-items'
|
||||
});
|
||||
|
||||
// Open column selector
|
||||
await page.getByLabel('table-select-columns').click();
|
||||
@@ -64,6 +62,4 @@ test('Tables - Columns', async ({ page }) => {
|
||||
await page.getByRole('menuitem', { name: 'Target Date' }).click();
|
||||
await page.getByRole('menuitem', { name: 'Reference', exact: true }).click();
|
||||
await page.getByRole('menuitem', { name: 'Project Code' }).click();
|
||||
|
||||
await page.waitForTimeout(1000);
|
||||
});
|
||||
|
Reference in New Issue
Block a user