Skip to content

[PUI] Updates for AdminButton #15496

[PUI] Updates for AdminButton

[PUI] Updates for AdminButton #15496

Triggered via pull request November 5, 2024 21:13
Status Failure
Total duration 23m 50s
Artifacts 3

qc_checks.yaml

on: pull_request
Build - UI Platform
1m 55s
Build - UI Platform
Style [pre-commit]
46s
Style [pre-commit]
Tests - API Schema Documentation
4m 20s
Tests - API Schema Documentation
Style [Documentation]
33s
Style [Documentation]
Tests - Migrations [PostgreSQL]
0s
Tests - Migrations [PostgreSQL]
Tests - Full Migration [SQLite]
0s
Tests - Full Migration [SQLite]
Tests - inventree-python
5m 6s
Tests - inventree-python
Tests - DB [PostgreSQL]
12m 14s
Tests - DB [PostgreSQL]
Tests - DB [MySQL]
12m 59s
Tests - DB [MySQL]
Tests - Platform UI
22m 32s
Tests - Platform UI
Matrix: coverage
Style - Classic UI [JS]
1m 26s
Style - Classic UI [JS]
Push new schema
0s
Push new schema
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 9 warnings, and 1 notice
Tests - API Schema Documentation
Process completed with exit code 1.
[firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder): src/frontend/tests/pages/pui_scan.spec.ts#L1
1) [firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder) ─────────────────── Test timeout of 90000ms exceeded.
[firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder): src/frontend/tests/baseFixtures.ts#L85
1) [firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder) ─────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 60 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@790e7dbc6a4ce55463bd91af4c296c00", + "_type": "JSHandle", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + ], + "location": Object { + "columnNumber": 1, + "lineNumber": 0, + "url": "http://localhost:5173/platform/scan", + }, + "page": EventEmitter { + "_events": Object { + "bindingCall": [Function anonymous], + "close": [Function anonymous], + "crash": [Function anonymous], + "download": [Function anonymous], + "fileChooser": [Function anonymous], + "frameAttached": [Function anonymous], + "frameDetached": [Function anonymous], + "locatorHandlerTriggered": [Function anonymous], + "route": [Function anonymous], + "video": [Function anonymous], + "webSocket": [Function anonymous], + "worker": [Function anonymous], + }, + "_eventsCount": 12, + "_maxListeners": undefined, + "_object": Object { + "_guid": "page@02cbe1fd551612941d8bd2d5c54b8c6c", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "[JavaScript Error: \"Loading module from “http://localhost:5173/src/defaults/backendMappings.tsx” was blocked because of a disallowed MIME type (“”).\" {file: \"http://localhost:5173/platform/scan\" line: 0}]", + "type": "error", + }, + "_page": Object { + "_guid": "page@02cbe1fd551612941d8bd2d5c54b8c6c", + "_type": "Page", + }, + }, + ] at baseFixtures.ts:85 83 | }); 84 | await use(page); > 85 | expect(messages).toEqual([]); | ^ 86 | } 87 | }); 88 | at Object.page (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/baseFixtures.ts:85:22)
[firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder): src/frontend/tests/pages/pui_scan.spec.ts#L9
1) [firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder) ─────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByPlaceholder('Select input method') 7 | 8 | await page.goto(`${baseUrl}/scan`); > 9 | await page.getByPlaceholder('Select input method').click(); | ^ 10 | await page.getByRole('option', { name: 'Manual input' }).click(); 11 | await page.getByPlaceholder('Enter item serial or data').click(); 12 | at defaultScanTest (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_scan.spec.ts:9:54) at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_scan.spec.ts:73:3
[firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder): src/frontend/tests/pages/pui_scan.spec.ts#L1
1) [firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder) ─────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 90000ms exceeded.
[firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder): src/frontend/tests/pages/pui_scan.spec.ts#L76
1) [firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder) ─────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText('SO0006') to be visible 74 | 75 | // salesorder: 6 > 76 | await page.getByText('SO0006').waitFor(); | ^ 77 | await page.getByText('Selling more stuff to this').waitFor(); 78 | await page.getByRole('cell', { name: 'salesorder' }).waitFor(); 79 | }); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_scan.spec.ts:76:34
[chromium] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General: src/frontend/tests/pages/pui_purchase_order.spec.ts#L1
2) [chromium] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General ───────────────── Test timeout of 90000ms exceeded.
[chromium] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General: src/frontend/tests/login.ts#L37
2) [chromium] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General ───────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText(/InvenTree Demo Server/) to be visible at login.ts:37 35 | await page.waitForURL('**/platform/home'); 36 | > 37 | await page.getByText(/InvenTree Demo Server/).waitFor(); | ^ 38 | }; 39 | 40 | export const doLogout = async (page) => { at doQuickLogin (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/login.ts:37:49) at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_purchase_order.spec.ts:5:3
[firefox] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General: src/frontend/tests/pages/pui_purchase_order.spec.ts#L1
3) [firefox] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General ────────────────── Test timeout of 90000ms exceeded.
[firefox] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General: src/frontend/tests/login.ts#L37
3) [firefox] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General ────────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText(/InvenTree Demo Server/) to be visible at login.ts:37 35 | await page.waitForURL('**/platform/home'); 36 | > 37 | await page.getByText(/InvenTree Demo Server/).waitFor(); | ^ 38 | }; 39 | 40 | export const doLogout = async (page) => { at doQuickLogin (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/login.ts:37:49) at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_purchase_order.spec.ts:5:3
[firefox] › pui_basic.spec.ts:5:1 › Basic Login Test: src/frontend/tests/baseFixtures.ts#L85
4) [firefox] › pui_basic.spec.ts:5:1 › Basic Login Test ────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 256 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@468c23ac7c8ac9fc0ee1ebefa0f1c66d", + "_type": "JSHandle", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + ], + "location": Object { + "columnNumber": 19, + "lineNumber": 2599, + "url": "http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=fde38827", + }, + "page": EventEmitter { + "_events": Object { + "bindingCall": [Function anonymous], + "close": [Function anonymous], + "crash": [Function anonymous], + "download": [Function anonymous], + "fileChooser": [Function anonymous], + "frameAttached": [Function anonymous], + "frameDetached": [Function anonymous], + "locatorHandlerTriggered": [Function anonymous], + "route": [Function anonymous], + "video": [Function anonymous], + "webSocket": [Function anonymous], + "worker": [Function anonymous], + }, + "_eventsCount": 12, + "_maxListeners": undefined, + "_object": Object { + "_guid": "page@9efe7f76a845959d9aa69ffd29af1a16", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "The above error occurred in one of your React components: + + Lazy + Suspense + RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=2abd3211:4095:7 + Outlet@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=2abd3211:4467:20 + _ErrorBoundary@http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=f7ca35e2:22660:5 + Boundary@http://localhost:5173/src/components/Boundary.tsx:999:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=fde38827:3819:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=fde38827:15473:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=fde38827:3819:3 + Flex<@http://localhost:5173/node_modules/.vite/deps/chunk-56VRJ6UA.js?v=fde38827:10002:25 + ProtectedRoute@http://localhost:5173/src/components/nav/Layout.tsx:1341:31 + LayoutComponent@http://localhost:5173/src/components/nav/Layout.tsx:1386:47 + Suspense + RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=2abd3211:4095:7 + Routes@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=2abd3211:4533:7 + Router@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=2abd3211:4481:7 + BrowserRouter@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=2abd3211:5223:7 + QueryClientProvider@http://localhost:5173/node_modules/.vite/deps/@tanstack_react-query.js?v=2043e6b9:2725:27 + ModalsProvider@http://localhost:5173/node_modules/.vite/deps/@mantine_modals.js?v=fb0386e4:184:24 + I18nProvider@http://localhost:5173/node_modules/.vite/deps/@lingui_react.js?v=68f3310d:159:20 + LanguageContext@http://localhos
Build - UI Platform
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Style - Classic UI [JS]
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests - inventree-python
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests - Platform UI
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Slow Test: src/frontend/[firefox] › pages/pui_stock.spec.ts#L1
src/frontend/[firefox] › pages/pui_stock.spec.ts took 44.2s
Slow Test: src/frontend/[chromium] › pages/pui_stock.spec.ts#L1
src/frontend/[chromium] › pages/pui_stock.spec.ts took 42.7s
Slow Test: src/frontend/[firefox] › pui_general.spec.ts#L1
src/frontend/[firefox] › pui_general.spec.ts took 37.1s
Slow Test: src/frontend/[firefox] › pages/pui_sales_order.spec.ts#L1
src/frontend/[firefox] › pages/pui_sales_order.spec.ts took 35.9s
Slow Test: src/frontend/[chromium] › pages/pui_scan.spec.ts#L1
src/frontend/[chromium] › pages/pui_scan.spec.ts took 33.0s
🎭 Playwright Run Summary
1 failed [firefox] › pages/pui_scan.spec.ts:72:1 › Pages - Index - Scan (SalesOrder) ──────────────────── 5 flaky [chromium] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General ────────────────── [firefox] › pages/pui_purchase_order.spec.ts:4:1 › Purchase Orders - General ─────────────────── [firefox] › pui_basic.spec.ts:5:1 › Basic Login Test ─────────────────────────────────────────── [firefox] › pui_printing.spec.ts:11:1 › Label Printing ───────────────────────────────────────── [firefox] › pui_printing.spec.ts:55:1 › Report Printing ──────────────────────────────────────── 116 passed (16.3m)

Artifacts

Produced during runtime
Name Size
frontend-build
2.16 MB
playwright-report
26.2 MB
schema.yml
62.6 KB