mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
fix tests
This commit is contained in:
6
.github/workflows/qc_checks.yaml
vendored
6
.github/workflows/qc_checks.yaml
vendored
@ -532,13 +532,9 @@ jobs:
|
|||||||
run: invoke int.frontend-compile
|
run: invoke int.frontend-compile
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: cd src/frontend && npx playwright install --with-deps
|
run: cd src/frontend && npx playwright install --with-deps
|
||||||
- name: Setup tmate session
|
|
||||||
uses: mxschmitt/action-tmate@v3
|
|
||||||
with:
|
|
||||||
limit-access-to-actor: true
|
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
id: tests
|
id: tests
|
||||||
run: cd src/frontend && npx nyc playwright test -g "PUI - Report Editing"
|
run: cd src/frontend && npx nyc playwright test
|
||||||
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # pin@v4
|
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # pin@v4
|
||||||
if: ${{ !cancelled() && steps.tests.outcome == 'failure' }}
|
if: ${{ !cancelled() && steps.tests.outcome == 'failure' }}
|
||||||
with:
|
with:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { expect, test } from './baseFixtures.js';
|
import { expect, test } from './baseFixtures.js';
|
||||||
import { baseUrl } from './defaults.js';
|
import { baseUrl, classicUrl } from './defaults.js';
|
||||||
import { doQuickLogin } from './login.js';
|
import { doQuickLogin } from './login.js';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -84,6 +84,15 @@ test('PUI - Report Printing', async ({ page }) => {
|
|||||||
test('PUI - Report Editing', async ({ page }) => {
|
test('PUI - Report Editing', async ({ page }) => {
|
||||||
await doQuickLogin(page, 'admin', 'inventree');
|
await doQuickLogin(page, 'admin', 'inventree');
|
||||||
|
|
||||||
|
// activate the sample plugin for this test
|
||||||
|
await page.request.patch(`${classicUrl}/api/plugins/sampleui/activate/`, {
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
Authorization: `Basic YWRtaW46aW52ZW50cmVl`
|
||||||
|
},
|
||||||
|
data: { active: true }
|
||||||
|
});
|
||||||
|
|
||||||
// Navigate to the admin center
|
// Navigate to the admin center
|
||||||
await page.getByRole('button', { name: 'admin' }).click();
|
await page.getByRole('button', { name: 'admin' }).click();
|
||||||
await page.getByRole('menuitem', { name: 'Admin Center' }).click();
|
await page.getByRole('menuitem', { name: 'Admin Center' }).click();
|
||||||
|
Reference in New Issue
Block a user