Skip to content

[PUI] Show warning for insufficient stock #14104

[PUI] Show warning for insufficient stock

[PUI] Show warning for insufficient stock #14104

Triggered via pull request August 19, 2024 04:43
Status Success
Total duration 20m 4s
Artifacts 1

qc_checks.yaml

on: pull_request
Build - UI Platform
1m 47s
Build - UI Platform
Style [pre-commit]
42s
Style [pre-commit]
Tests - API Schema Documentation
0s
Tests - API Schema Documentation
Style [Documentation]
35s
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 54s
Tests - Platform UI
Matrix: coverage
Style - Classic UI [JS]
1m 21s
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
[chromium] › pages/pui_scan.spec.ts:90:1 › PUI - Pages - Index - Scan (General): src/frontend/tests/baseFixtures.ts#L82
1) [chromium] › pages/pui_scan.spec.ts:90:1 › PUI - Pages - Index - Scan (General) ─────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 122 - Array [] + Array [ + 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], + "locatorHandlerTriggered": [Function anonymous], + "route": [Function anonymous], + "video": [Function anonymous], + "webSocket": [Function anonymous], + "worker": [Function anonymous], + }, + "_eventsCount": 12, + "_maxListeners": undefined, + "_object": Object { + "_guid": "page@3b216facee0f7f13b4cbaf69ea2bf7f6", + "_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@3b216facee0f7f13b4cbaf69ea2bf7f6", + "_type": "Page", + }, + }, + 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@3b216facee0f7f13b4cbaf69ea2bf7f6", + "_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@3b216facee0f7f13b4cbaf69ea2bf7f6", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/generic/status/", + }, + "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], +
[chromium] › pui_general.spec.ts:71:1 › PUI - Sales: src/frontend/tests/pui_general.spec.ts#L1
2) [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
2) [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_index.spec.ts:6:1 › PUI - Pages - Index - Playground: src/frontend/tests/baseFixtures.ts#L82
3) [firefox] › pages/pui_index.spec.ts:6:1 › PUI - Pages - Index - Playground ──────────────────── 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@c0156cd1aa90265e609e8ae5876afd46", + "_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=7a08f486", + }, + "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@abada9f3f252a469a232218d69609dfb", + "_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=7a08f486:3448:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:14814:25 + Resizable2@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:2527:39 + DraggableCore@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:1481:9 + GridItem@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:3059:9 + div + ReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:3591:9 + ResponsiveReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:4320:9 + WidthProvider@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08: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=980fae0e:4037:7 + Outlet@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=980fae0e:4409:20 + _ErrorBoundary@http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=0a45fcd3:22481:5 + Boundary@http://localhost:5173/src/components/Boundary.tsx:999:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:3448:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:14814:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:3448:3 + Flex<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:9350:25 + ProtectedRoute@http://localhost:
[firefox] › pages/pui_scan.spec.ts:27:1 › PUI - Pages - Index - Scan (Part): src/frontend/tests/pages/pui_scan.spec.ts#L1
4) [firefox] › pages/pui_scan.spec.ts:27:1 › PUI - Pages - Index - Scan (Part) ─────────────────── Test timeout of 90000ms exceeded.
[firefox] › pages/pui_scan.spec.ts:27:1 › PUI - Pages - Index - Scan (Part): src/frontend/tests/baseFixtures.ts#L82
4) [firefox] › pages/pui_scan.spec.ts:27:1 › PUI - Pages - Index - Scan (Part) ─────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 117 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@864a242c42100454d0e016465e0142c9", + "_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=7a08f486", + }, + "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@ad5a0328e8e34588d44f149a7a6afefb", + "_type": "Page", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + "text": "The above error occurred in one of your React components: + + Lazy + Suspense + MainView@http://localhost:5173/src/views/MainView.tsx:1472:51 + + Consider adding an error boundary to your tree to customize error handling behavior. + Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.", + "type": "error", + }, + "_page": Object { + "_guid": "page@ad5a0328e8e34588d44f149a7a6afefb", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@aa077abf02740c94d95c88c22a887ccb", + "_type": "JSHandle", + }, + Symbol(shapeMode): false, + Symbol(kCapture): false, + }, + ], + "location": Object { + "columnNumber": 0, + "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], + }, + "_eventsC
[firefox] › pages/pui_scan.spec.ts:27:1 › PUI - Pages - Index - Scan (Part): src/frontend/tests/pages/pui_scan.spec.ts#L9
4) [firefox] › pages/pui_scan.spec.ts:27:1 › PUI - Pages - Index - Scan (Part) ─────────────────── 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:28:3
[firefox] › pui_general.spec.ts:71:1 › PUI - Sales: src/frontend/tests/pui_general.spec.ts#L1
5) [firefox] › pui_general.spec.ts:71:1 › PUI - Sales ──────────────────────────────────────────── Test timeout of 90000ms exceeded.
[firefox] › pui_general.spec.ts:71:1 › PUI - Sales: src/frontend/tests/pui_general.spec.ts#L115
5) [firefox] › pui_general.spec.ts:71:1 › PUI - Sales ──────────────────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByRole('cell', { name: 'RMA-' }) 113 | await page.getByRole('link', { name: 'Customer A' }).click(); 114 | await page.getByRole('tab', { name: 'Return Orders' }).click(); > 115 | await page.getByRole('cell', { name: 'RMA-' }).click(); | ^ 116 | await page.getByText('RMA-0001', { exact: true }).waitFor(); 117 | await page.getByRole('tab', { name: 'Line Items' }).click(); 118 | await page.getByRole('tab', { name: 'Attachments' }).click(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_general.spec.ts:115:50
[firefox] › pui_stock.spec.ts:85:1 › PUI - Stock Location Tree: src/frontend/tests/baseFixtures.ts#L82
6) [firefox] › pui_stock.spec.ts:85:1 › PUI - Stock Location Tree ──────────────────────────────── 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@a924e923a4fa830579dce2e8c5cb134b", + "_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=7a08f486", + }, + "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@ab2d4a11768592eb333557f65a44da1c", + "_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=7a08f486:3448:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:14814:25 + Resizable2@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:2527:39 + DraggableCore@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:1481:9 + GridItem@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:3059:9 + div + ReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:3591:9 + ResponsiveReactGridLayout@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08:4320:9 + WidthProvider@http://localhost:5173/node_modules/.vite/deps/react-grid-layout.js?v=41a06f08: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=980fae0e:4037:7 + Outlet@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=980fae0e:4409:20 + _ErrorBoundary@http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=0a45fcd3:22481:5 + Boundary@http://localhost:5173/src/components/Boundary.tsx:999:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:3448:3 + Container<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:14814:25 + div + _Box<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:3448:3 + Flex<@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=7a08f486:9350:25 + ProtectedRoute@http://localhost:
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/[chromium] › pages/pui_build.spec.ts#L1
src/frontend/[chromium] › pages/pui_build.spec.ts took 26.2s
Slow Test: src/frontend/[chromium] › pui_stock.spec.ts#L1
src/frontend/[chromium] › pui_stock.spec.ts took 25.7s
Slow Test: src/frontend/[firefox] › pui_settings.spec.ts#L1
src/frontend/[firefox] › pui_settings.spec.ts took 24.1s
Slow Test: src/frontend/[firefox] › pages/pui_build.spec.ts#L1
src/frontend/[firefox] › pages/pui_build.spec.ts took 23.5s
Slow Test: src/frontend/[firefox] › pui_printing.spec.ts#L1
src/frontend/[firefox] › pui_printing.spec.ts took 23.2s
🎭 Playwright Run Summary
7 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_index.spec.ts:6:1 › PUI - Pages - Index - Playground ───────────────────── [firefox] › pages/pui_scan.spec.ts:27:1 › PUI - Pages - Index - Scan (Part) ──────────────────── [firefox] › pui_general.spec.ts:71:1 › PUI - Sales ───────────────────────────────────────────── [firefox] › pui_stock.spec.ts:85:1 › PUI - Stock Location Tree ───────────────────────────────── [firefox] › pui_tables.spec.ts:23:1 › PUI - Tables - Filters ─────────────────────────────────── 87 passed (13.3m)

Artifacts

Produced during runtime
Name Size
frontend-build
2.06 MB