Skip to content

[PUI] Add "View Part" action in BuildLineTable #15225

[PUI] Add "View Part" action in BuildLineTable

[PUI] Add "View Part" action in BuildLineTable #15225

Triggered via pull request October 22, 2024 12:55
Status Success
Total duration 23m 22s
Artifacts 1

qc_checks.yaml

on: pull_request
Build - UI Platform
2m 3s
Build - UI Platform
Style [pre-commit]
36s
Style [pre-commit]
Tests - API Schema Documentation
0s
Tests - API Schema Documentation
Style [Documentation]
39s
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
22m 18s
Tests - Platform UI
Matrix: coverage
Style - Classic UI [JS]
1m 37s
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_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/baseFixtures.ts#L85
1) [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ─────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 44 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/build/11/complete/", + }, + "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@97b4abb9add52fe590751fd110a95930", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "Failed to load resource: the server responded with a status of 500 (Internal Server Error)", + "type": "error", + }, + "_page": Object { + "_guid": "page@97b4abb9add52fe590751fd110a95930", + "_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)
[chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs: src/frontend/tests/pages/pui_build.spec.ts#L158
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('Build outputs have been completed') to be visible 156 | await page.waitForTimeout(250); 157 | await page.getByRole('button', { name: 'Submit' }).click(); > 158 | await page.getByText('Build outputs have been completed').waitFor(); | ^ 159 | }); 160 | at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_build.spec.ts:158:61
[chromium] › pages/pui_stock.spec.ts:52:1 › Stock - Serial Numbers: src/frontend/tests/pages/pui_stock.spec.ts#L1
2) [chromium] › pages/pui_stock.spec.ts:52:1 › Stock - Serial Numbers ──────────────────────────── Test timeout of 90000ms exceeded.
[chromium] › pages/pui_stock.spec.ts:52:1 › Stock - Serial Numbers: src/frontend/tests/baseFixtures.ts#L85
2) [chromium] › pages/pui_stock.spec.ts:52:1 › Stock - Serial Numbers ──────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 86 - Array [] + Array [ + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/generate/batch-code/", + }, + "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@6cd9b90a17f3c2b646a422f7b141cae2", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "Failed to load resource: the server responded with a status of 401 (Unauthorized)", + "type": "error", + }, + "_page": Object { + "_guid": "page@6cd9b90a17f3c2b646a422f7b141cae2", + "_type": "Page", + }, + }, + ConsoleMessage { + "_event": Object { + "args": Array [], + "location": Object { + "columnNumber": 0, + "lineNumber": 0, + "url": "http://localhost:8000/api/stock/", + }, + "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@6cd9b90a17f3c2b646a422f7b141cae2", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "text": "Failed to load resource: the server responded with a status of 401 (Unauthorized)", + "type": "error", + }, + "_page": Object { + "_guid": "page@6cd9b90a17f3c2b646a422f7b141cae2", + "_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)
[chromium] › pages/pui_stock.spec.ts:52:1 › Stock - Serial Numbers: src/frontend/tests/pages/pui_stock.spec.ts#L100
2) [chromium] › pages/pui_stock.spec.ts:52:1 › Stock - Serial Numbers ──────────────────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText(/The following serial numbers already exist or are invalid : 200,201,202,203,204/).first() to be visible 98 | ) 99 | .first() > 100 | .waitFor(); | ^ 101 | 102 | // Expected error messages 103 | await page.getByText('Errors exist for one or more form fields').waitFor(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_stock.spec.ts:100:6
[chromium] › pui_plugins.spec.ts:59:1 › Plugins - Custom Admin: src/frontend/tests/pui_plugins.spec.ts#L1
3) [chromium] › pui_plugins.spec.ts:59:1 › Plugins - Custom Admin ──────────────────────────────── Test timeout of 90000ms exceeded.
[chromium] › pui_plugins.spec.ts:59:1 › Plugins - Custom Admin: src/frontend/tests/pui_plugins.spec.ts#L74
3) [chromium] › pui_plugins.spec.ts:59:1 › Plugins - Custom Admin ──────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Plugin Information' }) 72 | // Open the plugin drawer, and ensure that the custom admin elements are visible 73 | await page.getByText('SampleUI').click(); > 74 | await page.getByRole('button', { name: 'Plugin Information' }).click(); | ^ 75 | await page 76 | .getByLabel('Plugin Detail') 77 | .getByRole('button', { name: 'Plugin Settings' }) at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_plugins.spec.ts:74:66
[firefox] › pages/pui_part.spec.ts:5:1 › Pages - Part - Locking: src/frontend/tests/pages/pui_part.spec.ts#L1
4) [firefox] › pages/pui_part.spec.ts:5:1 › Pages - Part - Locking ─────────────────────────────── Test timeout of 90000ms exceeded.
[firefox] › pages/pui_part.spec.ts:5:1 › Pages - Part - Locking: src/frontend/tests/baseFixtures.ts#L85
4) [firefox] › pages/pui_part.spec.ts:5:1 › Pages - Part - Locking ─────────────────────────────── 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@c52736468ee1b568218a93849f81fa63", + "_type": "JSHandle", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + ], + "location": Object { + "columnNumber": 1, + "lineNumber": 0, + "url": "http://localhost:5173/platform/part/100/bom", + }, + "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@08c84b1554a8ccaf50e5a7612bd1f42b", + "_type": "Page", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + "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/part/100/bom\" line: 0}]", + "type": "error", + }, + "_page": Object { + "_guid": "page@08c84b1554a8ccaf50e5a7612bd1f42b", + "_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)
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] › pui_general.spec.ts#L1
src/frontend/[chromium] › pui_general.spec.ts took 1.1m
Slow Test: src/frontend/[chromium] › pages/pui_orders.spec.ts#L1
src/frontend/[chromium] › pages/pui_orders.spec.ts took 42.9s
Slow Test: src/frontend/[firefox] › pui_tables.spec.ts#L1
src/frontend/[firefox] › pui_tables.spec.ts took 39.3s
Slow Test: src/frontend/[firefox] › pui_settings.spec.ts#L1
src/frontend/[firefox] › pui_settings.spec.ts took 30.6s
Slow Test: src/frontend/[firefox] › pui_plugins.spec.ts#L1
src/frontend/[firefox] › pui_plugins.spec.ts took 27.4s
🎭 Playwright Run Summary
6 flaky [chromium] › pages/pui_build.spec.ts:85:1 › Pages - Build Order - Build Outputs ──────────────── [chromium] › pages/pui_stock.spec.ts:52:1 › Stock - Serial Numbers ───────────────────────────── [chromium] › pui_plugins.spec.ts:59:1 › Plugins - Custom Admin ───────────────────────────────── [firefox] › pages/pui_part.spec.ts:5:1 › Pages - Part - Locking ──────────────────────────────── [firefox] › pages/pui_stock.spec.ts:52:1 › Stock - Serial Numbers ────────────────────────────── [firefox] › pui_printing.spec.ts:11:1 › Label Printing ───────────────────────────────────────── 104 passed (14.7m)

Artifacts

Produced during runtime
Name Size
frontend-build
2.1 MB