Skip to content

Fix image upload for company page #14612

Fix image upload for company page

Fix image upload for company page #14612

Triggered via pull request September 12, 2024 22:48
Status Success
Total duration 18m 52s
Artifacts 1

qc_checks.yaml

on: pull_request
Build - UI Platform
1m 49s
Build - UI Platform
Style [pre-commit]
39s
Style [pre-commit]
Tests - API Schema Documentation
0s
Tests - API Schema Documentation
Style [Documentation]
38s
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
17m 47s
Tests - Platform UI
Matrix: coverage
Style - Classic UI [JS]
1m 19s
Style - Classic UI [JS]
Push new schema
0s
Push new schema
Fit to window
Zoom out
Zoom in

Annotations

8 errors, 8 warnings, and 1 notice
[chromium] › pui_general.spec.ts:71:1 › PUI - Sales: src/frontend/tests/pui_general.spec.ts#L1
1) [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/baseFixtures.ts#L83
1) [chromium] › pui_general.spec.ts:71:1 › PUI - Sales ─────────────────────────────────────────── 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/order/ro/1/?customer_detail=true", + }, + "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@08eb17753c1df3db33606df06a0a4261", + "_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@08eb17753c1df3db33606df06a0a4261", + "_type": "Page", + }, + }, + ] at baseFixtures.ts:83 81 | }); 82 | await use(page); > 83 | expect(messages).toEqual([]); | ^ 84 | } 85 | }); 86 | at Object.page (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/baseFixtures.ts:83:22)
[chromium] › pui_general.spec.ts:71:1 › PUI - Sales: src/frontend/tests/pui_general.spec.ts#L116
1) [chromium] › pui_general.spec.ts:71:1 › PUI - Sales ─────────────────────────────────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByText('RMA-0001', { exact: true }) to be visible 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(); 119 | await page.getByRole('tab', { name: 'Notes' }).click(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_general.spec.ts:116:53
[firefox] › pui_general.spec.ts:71:1 › PUI - Sales: src/frontend/tests/pui_general.spec.ts#L1
2) [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#L102
2) [firefox] › pui_general.spec.ts:71:1 › PUI - Sales ──────────────────────────────────────────── Error: locator.waitFor: Test timeout of 90000ms exceeded. Call log: - waiting for getByLabel('Order Details').getByText('Selling some stuff') to be visible 100 | .getByLabel('Order Details') 101 | .getByText('Selling some stuff') > 102 | .waitFor(); | ^ 103 | await page.getByRole('tab', { name: 'Line Items' }).click(); 104 | await page.getByRole('tab', { name: 'Shipments' }).click(); 105 | await page.getByRole('tab', { name: 'Build Orders' }).click(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_general.spec.ts:102:6
[firefox] › pui_tables.spec.ts:53:1 › PUI - Tables - Columns: src/frontend/tests/pui_tables.spec.ts#L1
3) [firefox] › pui_tables.spec.ts:53:1 › PUI - Tables - Columns ────────────────────────────────── Test timeout of 90000ms exceeded.
[firefox] › pui_tables.spec.ts:53:1 › PUI - Tables - Columns: src/frontend/tests/baseFixtures.ts#L83
3) [firefox] › pui_tables.spec.ts:53:1 › PUI - Tables - Columns ────────────────────────────────── 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@65257d0878b352f415da973cda3704e5", + "_type": "JSHandle", + }, + "_pendingHandlers": Map {}, + "_rejectionHandler": undefined, + "off": [Function removeListener], + "on": [Function addListener], + }, + ], + "location": Object { + "columnNumber": 1, + "lineNumber": 0, + "url": "http://localhost:5173/platform/stock/location/index/stock-items", + }, + "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@cd1d88377d9ff72fafe9032824b52c13", + "_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/stock/location/index/stock-items\" line: 0}]", + "type": "error", + }, + "_page": Object { + "_guid": "page@cd1d88377d9ff72fafe9032824b52c13", + "_type": "Page", + }, + }, + ] at baseFixtures.ts:83 81 | }); 82 | await use(page); > 83 | expect(messages).toEqual([]); | ^ 84 | } 85 | }); 86 | at Object.page (/home/runner/work/InvenTree/InvenTree/src/frontend/tests/baseFixtures.ts:83:22)
[firefox] › pui_tables.spec.ts:53:1 › PUI - Tables - Columns: src/frontend/tests/pui_tables.spec.ts#L60
3) [firefox] › pui_tables.spec.ts:53:1 › PUI - Tables - Columns ────────────────────────────────── Error: locator.click: Test timeout of 90000ms exceeded. Call log: - waiting for getByLabel('table-select-columns') 58 | 59 | // Open column selector > 60 | await page.getByLabel('table-select-columns').click(); | ^ 61 | 62 | // De-select some items 63 | await page.getByRole('menuitem', { name: 'Description' }).click(); at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_tables.spec.ts:60:49
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_stock.spec.ts#L1
src/frontend/[firefox] › pui_stock.spec.ts took 42.2s
Slow Test: src/frontend/[chromium] › pui_stock.spec.ts#L1
src/frontend/[chromium] › pui_stock.spec.ts took 25.5s
Slow Test: src/frontend/[chromium] › pages/pui_build.spec.ts#L1
src/frontend/[chromium] › pages/pui_build.spec.ts took 25.3s
Slow Test: src/frontend/[firefox] › pui_settings.spec.ts#L1
src/frontend/[firefox] › pui_settings.spec.ts took 23.8s
Slow Test: src/frontend/[firefox] › pages/pui_build.spec.ts#L1
src/frontend/[firefox] › pages/pui_build.spec.ts took 21.6s
🎭 Playwright Run Summary
3 flaky [chromium] › pui_general.spec.ts:71:1 › PUI - Sales ──────────────────────────────────────────── [firefox] › pui_general.spec.ts:71:1 › PUI - Sales ───────────────────────────────────────────── [firefox] › pui_tables.spec.ts:53:1 › PUI - Tables - Columns ─────────────────────────────────── 93 passed (12.1m)

Artifacts

Produced during runtime
Name Size
frontend-build
2 MB