Skip to content

[PUI] Add startpage to admin #14308

[PUI] Add startpage to admin

[PUI] Add startpage to admin #14308

Triggered via pull request August 26, 2024 21:23
Status Failure
Total duration 19m 59s
Artifacts 2

qc_checks.yaml

on: pull_request
Build - UI Platform
1m 53s
Build - UI Platform
Style [pre-commit]
36s
Style [pre-commit]
Tests - API Schema Documentation
0s
Tests - API Schema Documentation
Style [Documentation]
28s
Style [Documentation]
Tests - Migrations [PostgreSQL]
0s
Tests - Migrations [PostgreSQL]
Tests - Full Migration [SQLite]
0s
Tests - Full Migration [SQLite]
Tests - inventree-python
0s
Tests - inventree-python
Tests - DB [PostgreSQL]
0s
Tests - DB [PostgreSQL]
Tests - DB [MySQL]
0s
Tests - DB [MySQL]
Tests - Platform UI
18m 55s
Tests - Platform UI
Matrix: coverage
Style - Classic UI [JS]
1m 28s
Style - Classic UI [JS]
Push new schema
0s
Push new schema
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 8 warnings, and 1 notice
[firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters: src/frontend/tests/baseFixtures.ts#L82
1) [firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters ────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 272 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@cb9850a9f471f001a20db005cd561052", + "_type": "JSHandle", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + ], + "location": Object { + "columnNumber": 19, + "lineNumber": 2228, + "url": "http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a", + }, + "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@7eaf30d1da8b2b4c8380f084690f43b5", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "The above error occurred in one of your React components: + + Lazy + Suspense + LoadingItem@http://localhost:5173/src/functions/loading.tsx:994:28 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:3448:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:14814:25 + Resizable2@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:2527:39 + DraggableCore@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:1481:9 + GridItem@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:3059:9 + div + ReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:3591:9 + ResponsiveReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:4320:9 + WidthProvider@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:5074:11 + div + WidgetLayout@http://localhost:5173/src/components/widgets/WidgetLayout.tsx:2166:29 + Home@http://localhost:5173/src/pages/Index/Home.tsx:1114:49 + Suspense + RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=5b552605:4031:7 + Outlet@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=5b552605:4403:20 + _ErrorBoundary@http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=80b402aa:22593:5 + Boundary@http://localhost:5173/src/components/Boundary.tsx:999:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:3448:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:14814:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:3448:3 + Flex<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:9350:25 + ProtectedRoute@http://localhost:
[firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters: src/frontend/tests/pui_tables.spec.ts#L1
1) [firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters ────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 90000ms exceeded.
[firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters: src/frontend/tests/baseFixtures.ts#L82
1) [firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters ────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 56 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@bbe0372f129fe4fed8b1fa874e3e57f9", + "_type": "JSHandle", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + ], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:5173/platform/purchasing/index/purchaseorders/", + }, + "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@fe36260fa9e8c3bc20ac64907486d5ce", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "[JavaScript Error: \"Loading module from “http://localhost:5173/src/locales/en/messages.ts” was blocked because of a disallowed MIME type (“”).\" {file: \"http://localhost:5173/platform/purchasing/index/purchaseorders/\" line: 0}]", + "type": "error", + }, + "_page": Object { + "_guid": "page@fe36260fa9e8c3bc20ac64907486d5ce", + "_type": "Page", + }, + }, + ] at baseFixtures.ts:82 80 | }); 81 | await use(page); > 82 | expect(messages).toEqual([]); | ^ 83 | } 84 | }); 85 | at Object.page (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/baseFixtures.ts:82:22)
[firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters: src/frontend/tests/pui_tables.spec.ts#L7
1) [firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters ────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByLabel('table-select-filters') 5 | // Helper function to set the value of a specific table filter 6 | const setFilter = async (page, name: string, value: string) => { > 7 | await page.getByLabel('table-select-filters').click(); | ^ 8 | await page.getByRole('button', { name: 'Add Filter' }).click(); 9 | await page.getByPlaceholder('Select filter').click(); 10 | await page.getByRole('option', { name: name, exact: true }).click(); at setFilter (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_tables.spec.ts:7:49) at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_tables.spec.ts:45:9
[chromium] › pages/pui_scan.spec.ts:90:1 › PUI - Pages - Index - Scan (General): src/frontend/tests/baseFixtures.ts#L82
2) [chromium] › pages/pui_scan.spec.ts:90:1 › PUI - Pages - Index - Scan (General) ─────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 162 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/settings/global/", + }, + "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@dd7bc2b4560457dbc9324e76b152b247", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "Failed to load resource: the server responded with a status of 401 (Unauthorized)", + "type": "error", + }, + "_page": Object { + "_guid": "page@dd7bc2b4560457dbc9324e76b152b247", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/user/roles/", + }, + "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@dd7bc2b4560457dbc9324e76b152b247", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "Failed to load resource: the server responded with a status of 401 (Unauthorized)", + "type": "error", + }, + "_page": Object { + "_guid": "page@dd7bc2b4560457dbc9324e76b152b247", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/settings/user/", + }, + "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], + "l
[chromium] › pui_general.spec.ts:71:1 › PUI - Sales: src/frontend/tests/pui_general.spec.ts#L1
3) [chromium] › pui_general.spec.ts:71:1 › PUI - Sales ─────────────────────────────────────────── Test timeout of 90000ms exceeded.
[chromium] › pui_general.spec.ts:71:1 › PUI - Sales: src/frontend/tests/pui_general.spec.ts#L77
3) [chromium] › pui_general.spec.ts:71:1 › PUI - Sales ─────────────────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByRole('tab', { name: 'Sales Orders' }) 75 | await page.waitForURL('**/platform/sales/**'); 76 | > 77 | await page.getByRole('tab', { name: 'Sales Orders' }).click(); | ^ 78 | await page.waitForURL('**/platform/sales/index/salesorders'); 79 | await page.getByRole('tab', { name: 'Return Orders' }).click(); 80 | at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_general.spec.ts:77:57
[firefox] › pages/pui_part.spec.ts:270:1 › PUI - Pages - Part - 404: src/frontend/tests/baseFixtures.ts#L82
4) [firefox] › pages/pui_part.spec.ts:270:1 › PUI - Pages - Part - 404 ─────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 272 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@5044b3e5e7bfdb40b15bea491a68f813", + "_type": "JSHandle", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + ], + "location": Object { + "columnNumber": 19, + "lineNumber": 2228, + "url": "http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a", + }, + "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@70616c2a936a768a59e554676cbf8e39", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "The above error occurred in one of your React components: + + Lazy + Suspense + LoadingItem@http://localhost:5173/src/functions/loading.tsx:994:28 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:3448:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:14814:25 + Resizable2@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:2527:39 + DraggableCore@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:1481:9 + GridItem@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:3059:9 + div + ReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:3591:9 + ResponsiveReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:4320:9 + WidthProvider@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=9eb76d7e:5074:11 + div + WidgetLayout@http://localhost:5173/src/components/widgets/WidgetLayout.tsx:2166:29 + Home@http://localhost:5173/src/pages/Index/Home.tsx:1114:49 + Suspense + RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=5b552605:4031:7 + Outlet@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=5b552605:4403:20 + _ErrorBoundary@http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=80b402aa:22593:5 + Boundary@http://localhost:5173/src/components/Boundary.tsx:999:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:3448:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:14814:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:3448:3 + Flex<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=50b9168a:9350:25 + ProtectedRoute@http://localhost:
[firefox] › pui_command.spec.ts:34:1 › PUI - Quick Command - No Keys: src/frontend/tests/pui_command.spec.ts#L1
5) [firefox] › pui_command.spec.ts:34:1 › PUI - Quick Command - No Keys ────────────────────────── Test timeout of 90000ms exceeded.
[firefox] › pui_command.spec.ts:34:1 › PUI - Quick Command - No Keys: src/frontend/tests/baseFixtures.ts#L82
5) [firefox] › pui_command.spec.ts:34:1 › PUI - Quick Command - No Keys ────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 56 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@ab121ec9292a2c5ecd76ebfb77835254", + "_type": "JSHandle", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + ], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:5173/platform/playground", + }, + "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@812bc435ec61db40c6eb0926808dfb8d", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "[JavaScript Error: \"Loading module from “http://localhost:5173/src/locales/en/messages.ts” was blocked because of a disallowed MIME type (“”).\" {file: \"http://localhost:5173/platform/playground\" line: 0}]", + "type": "error", + }, + "_page": Object { + "_guid": "page@812bc435ec61db40c6eb0926808dfb8d", + "_type": "Page", + }, + }, + ] at baseFixtures.ts:82 80 | }); 81 | await use(page); > 82 | expect(messages).toEqual([]); | ^ 83 | } 84 | }); 85 | at Object.page (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/baseFixtures.ts:82:22)
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 - 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] › pui_general.spec.ts#L1
src/frontend/[firefox] › pui_general.spec.ts took 1.3m
Slow Test: src/frontend/[firefox] › pui_printing.spec.ts#L1
src/frontend/[firefox] › pui_printing.spec.ts took 30.2s
Slow Test: src/frontend/[chromium] › pui_stock.spec.ts#L1
src/frontend/[chromium] › pui_stock.spec.ts took 27.0s
Slow Test: src/frontend/[chromium] › pages/pui_build.spec.ts#L1
src/frontend/[chromium] › pages/pui_build.spec.ts took 26.0s
Slow Test: src/frontend/[firefox] › pages/pui_build.spec.ts#L1
src/frontend/[firefox] › pages/pui_build.spec.ts took 22.9s
🎭 Playwright Run Summary
1 failed [firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters ─────────────────────────────────── 4 flaky [chromium] › pages/pui_scan.spec.ts:90:1 › PUI - Pages - Index - Scan (General) ──────────────── [chromium] › pui_general.spec.ts:71:1 › PUI - Sales ──────────────────────────────────────────── [firefox] › pages/pui_part.spec.ts:270:1 › PUI - Pages - Part - 404 ──────────────────────────── [firefox] › pui_command.spec.ts:34:1 › PUI - Quick Command - No Keys ─────────────────────────── 91 passed (13.1m)

Artifacts

Produced during runtime
Name Size
frontend-build Expired
2.08 MB
playwright-report Expired
27.8 MB