Skip to content

Better handling for undefined values in SettingsList #15827

Better handling for undefined values in SettingsList

Better handling for undefined values in SettingsList #15827

Triggered via pull request November 20, 2024 08:54
Status Success
Total duration 22m 47s
Artifacts 1

qc_checks.yaml

on: pull_request
Build - UI Platform
1m 52s
Build - UI Platform
Style [pre-commit]
35s
Style [pre-commit]
Tests - API Schema Documentation
0s
Tests - API Schema Documentation
Style [Documentation]
41s
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
21m 43s
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

9 errors, 8 warnings, and 1 notice
[chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs: src/frontend/tests/pages/pui_build.spec.ts#L1
1) [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ─────────────── Test timeout of 90000ms exceeded.
[chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs: src/frontend/tests/pages/pui_build.spec.ts#L94
1) [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ─────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText('On Hold').first() to be visible 92 | 93 | // We have now loaded the "Build Order" table. Check for some expected texts > 94 | await page.getByText('On Hold').first().waitFor(); | ^ 95 | await page.getByText('Pending').first().waitFor(); 96 | 97 | await page.getByRole('cell', { name: 'BO0011' }).click(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_build.spec.ts:94:43
[chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin: src/frontend/tests/pui_plugins.spec.ts#L1
2) [chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin ──────────────────────────────── Test timeout of 90000ms exceeded.
[chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin: src/frontend/tests/pui_plugins.spec.ts#L87
2) [chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin ──────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Plugin Configuration' }) 85 | .getByRole('button', { name: 'Plugin Settings' }) 86 | .click(); > 87 | await page.getByRole('button', { name: 'Plugin Configuration' }).click(); | ^ 88 | 89 | // Check for expected custom elements 90 | await page at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_plugins.spec.ts:87:68
[firefox] › pages/pui_sales_order.spec.ts:148:1 › Purchase Orders - Barcodes: src/frontend/tests/pages/pui_sales_order.spec.ts#L1
3) [firefox] › pages/pui_sales_order.spec.ts:148:1 › Purchase Orders - Barcodes ────────────────── Test timeout of 90000ms exceeded.
[firefox] › pages/pui_sales_order.spec.ts:148:1 › Purchase Orders - Barcodes: src/frontend/tests/baseFixtures.ts#L85
3) [firefox] › pages/pui_sales_order.spec.ts:148:1 › Purchase Orders - Barcodes ────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 318 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@30dfa57e99a8a2c29bfde9c4bb8b9870", + "_type": "JSHandle", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + ], + "location": Object { + "columnNumber": 1, + "lineNumber": 0, + "url": "http://localhost:5173/platform/purchasing/purchase-order/13/detail", + }, + "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@a463b4d5fca783435a04038675048b69", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "[JavaScript Error: \"Loading module from “http://localhost:5173/src/components/plugins/RemoteComponent.tsx” was blocked because of a disallowed MIME type (“”).\" {file: \"http://localhost:5173/platform/purchasing/purchase-order/13/detail\" line: 0}]", + "type": "error", + }, + "_page": Object { + "_guid": "page@a463b4d5fca783435a04038675048b69", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [ + EventEmitter { + "_events": Object { + "previewUpdated": [Function anonymous], + }, + "_eventsCount": 1, + "_maxListeners": undefined, + "_object": Object { + "_guid": "handle@edb75cadf9a93b3be561c8de3d7cec6a", + "_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=64da19fc", + }, + "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
[firefox] › pages/pui_sales_order.spec.ts:148:1 › Purchase Orders - Barcodes: src/frontend/tests/pages/pui_sales_order.spec.ts#L177
3) [firefox] › pages/pui_sales_order.spec.ts:148:1 › Purchase Orders - Barcodes ────────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Issue Order' }) to be visible 175 | await page.getByRole('button', { name: 'Unlink Barcode' }).click(); 176 | await page.waitForTimeout(500); > 177 | await page.getByRole('button', { name: 'Issue Order' }).waitFor(); | ^ 178 | }); 179 | at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_sales_order.spec.ts:177:59
[firefox] › pui_general.spec.ts:96:1 › Admin Button: src/frontend/tests/pui_general.spec.ts#L1
4) [firefox] › pui_general.spec.ts:96:1 › Admin Button ─────────────────────────────────────────── Test timeout of 90000ms exceeded.
[firefox] › pui_general.spec.ts:96:1 › Admin Button: src/frontend/tests/pui_general.spec.ts#L101
4) [firefox] › pui_general.spec.ts:96:1 › Admin Button ─────────────────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByLabel(/action-button-open-in-admin/) 99 | 100 | // Click on the admin button > 101 | await page.getByLabel(/action-button-open-in-admin/).click(); | ^ 102 | 103 | await page.waitForURL('**/test-admin/company/company/1/change/**'); 104 | await page.getByRole('heading', { name: 'Change Company' }).waitFor(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_general.spec.ts:101:56
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] › pages/pui_stock.spec.ts#L1
src/frontend/[firefox] › pages/pui_stock.spec.ts took 54.0s
Slow Test: src/frontend/[firefox] › pages/pui_scan.spec.ts#L1
src/frontend/[firefox] › pages/pui_scan.spec.ts took 48.6s
Slow Test: src/frontend/[firefox] › pui_settings.spec.ts#L1
src/frontend/[firefox] › pui_settings.spec.ts took 32.3s
Slow Test: src/frontend/[firefox] › pui_plugins.spec.ts#L1
src/frontend/[firefox] › pui_plugins.spec.ts took 29.6s
Slow Test: src/frontend/[chromium] › pui_tables.spec.ts#L1
src/frontend/[chromium] › pui_tables.spec.ts took 26.2s
🎭 Playwright Run Summary
4 flaky [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ──────────────── [chromium] › pui_plugins.spec.ts:67:1 › Plugins - Custom Admin ───────────────────────────────── [firefox] › pages/pui_sales_order.spec.ts:148:1 › Purchase Orders - Barcodes ─────────────────── [firefox] › pui_general.spec.ts:96:1 › Admin Button ──────────────────────────────────────────── 122 passed (14.9m)

Artifacts

Produced during runtime
Name Size
frontend-build
2.21 MB