[WIP] Testable parts #14048
Annotations
10 errors, 6 warnings, and 1 notice
Run Playwright tests:
src/frontend/tests/pui_general.spec.ts#L1
1) [chromium] › pui_general.spec.ts:71:1 › PUI - Sales ───────────────────────────────────────────
Test timeout of 90000ms exceeded.
|
Run Playwright tests:
src/frontend/tests/baseFixtures.ts#L82
1) [chromium] › pui_general.spec.ts:71:1 › PUI - Sales ───────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 282
- Array []
+ Array [
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [],
+ "location": Object {
+ "columnNumber": 0,
+ "lineNumber": 0,
+ "url": "http://localhost:8000/api/company/30/",
+ },
+ "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@d8472bb658f167b8b2a61ab2613c577f",
+ "_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@d8472bb658f167b8b2a61ab2613c577f",
+ "_type": "Page",
+ },
+ },
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [],
+ "location": Object {
+ "columnNumber": 0,
+ "lineNumber": 0,
+ "url": "http://localhost:8000/api/attachment/?model_type=salesorder&model_id=1&limit=25&offset=0",
+ },
+ "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@d8472bb658f167b8b2a61ab2613c577f",
+ "_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@d8472bb658f167b8b2a61ab2613c577f",
+ "_type": "Page",
+ },
+ },
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [],
+ "location": Object {
+ "columnNumber": 0,
+ "lineNumber": 0,
+ "url": "http://localhost:8000/api/attachment/?model_type=salesorder&model_id=1",
+ },
+ "page": EventEmitter {
+ "_events": Object {
+ "bindingCall": [Function anonymous],
+ "close": [Function anonymous],
+ "crash": [Function anonymous],
+ "download": [Function anonymous],
+ "fileChooser": [Function anonymous],
+ "frameAttached": [Function anonymous
|
Run Playwright tests:
src/frontend/tests/pui_general.spec.ts#L114
1) [chromium] › pui_general.spec.ts:71:1 › PUI - Sales ───────────────────────────────────────────
Error: locator.click: Test timeout of 90000ms exceeded.
Call log:
- waiting for getByRole('tab', { name: 'Return Orders' })
112 | // Return Order Details
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();
at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_general.spec.ts:114:58
|
Run Playwright tests:
src/frontend/tests/pages/pui_part.spec.ts#L1
2) [firefox] › pages/pui_part.spec.ts:5:1 › PUI - Pages - Part - Locking ─────────────────────────
Test timeout of 90000ms exceeded.
|
Run Playwright tests:
src/frontend/tests/baseFixtures.ts#L82
2) [firefox] › pages/pui_part.spec.ts:5:1 › PUI - Pages - Part - Locking ─────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 298
- Array []
+ Array [
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [
+ EventEmitter {
+ "_events": Object {
+ "previewUpdated": [Function anonymous],
+ },
+ "_eventsCount": 1,
+ "_maxListeners": undefined,
+ "_object": Object {
+ "_guid": "handle@67f79e1365afd8cf7f2b226bc4f7a7b6",
+ "_type": "JSHandle",
+ },
+ Symbol(shapeMode): false,
+ Symbol(kCapture): false,
+ },
+ ],
+ "location": Object {
+ "columnNumber": 0,
+ "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@2159ec4140c56aaee0f6f7f4cce6f61e",
+ "_type": "Page",
+ },
+ Symbol(shapeMode): false,
+ Symbol(kCapture): false,
+ },
+ "text": "[JavaScript Error: \"Loading module from “http://localhost:5173/src/hooks/UseGenerator.tsx” was blocked because of a disallowed MIME type (“”).\" {file: \"http://localhost:5173/platform/part/100/bom\" line: 0}]",
+ "type": "error",
+ },
+ "_page": Object {
+ "_guid": "page@2159ec4140c56aaee0f6f7f4cce6f61e",
+ "_type": "Page",
+ },
+ },
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [
+ EventEmitter {
+ "_events": Object {
+ "previewUpdated": [Function anonymous],
+ },
+ "_eventsCount": 1,
+ "_maxListeners": undefined,
+ "_object": Object {
+ "_guid": "handle@40128f2d065533d1a9c8e028fef26d5c",
+ "_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=efb12024",
+ },
+ "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@2159ec4140
|
Run Playwright tests:
src/frontend/tests/pages/pui_part.spec.ts#L17
2) [firefox] › pages/pui_part.spec.ts:5:1 › PUI - Pages - Part - Locking ─────────────────────────
Error: locator.click: Test timeout of 90000ms exceeded.
Call log:
- waiting for getByRole('tab', { name: 'Bill of Materials' })
15 | // Navigate to a known assembly which *is* locked
16 | await page.goto(`${baseUrl}/part/100/bom`);
> 17 | await page.getByRole('tab', { name: 'Bill of Materials' }).click();
| ^
18 | await page.getByText('Locked', { exact: true }).waitFor();
19 | await page.getByText('Part is Locked', { exact: true }).waitFor();
20 |
at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pages/pui_part.spec.ts:17:62
|
Run Playwright tests:
src/frontend/tests/baseFixtures.ts#L82
3) [firefox] › pui_basic.spec.ts:5:1 › PUI - Basic Login Test ────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 78
- Array []
+ Array [
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [
+ EventEmitter {
+ "_events": Object {
+ "previewUpdated": [Function anonymous],
+ },
+ "_eventsCount": 1,
+ "_maxListeners": undefined,
+ "_object": Object {
+ "_guid": "handle@e0d4033f5e914b686c9e5df1fb2be81e",
+ "_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=efb12024",
+ },
+ "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@18ae0aa70befb7ebe0eebd4f6e9637c3",
+ "_type": "Page",
+ },
+ Symbol(shapeMode): false,
+ Symbol(kCapture): false,
+ },
+ "text": "The above error occurred in one of your React components:
+
+ Lazy
+ Suspense
+ RenderedRoute@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=4a5d511f:4037:7
+ Routes@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=4a5d511f:4475:7
+ Router@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=4a5d511f:4423:7
+ BrowserRouter@http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=4a5d511f:5165:7
+ QueryClientProvider@http://localhost:5173/node_modules/.vite/deps/@tanstack_react-query.js?v=02a60f9c:2704:27
+ ModalsProvider@http://localhost:5173/node_modules/.vite/deps/@mantine_modals.js?v=603f7ee2:186:24
+ I18nProvider@http://localhost:5173/node_modules/.vite/deps/@lingui_react.js?v=199c9cee:159:20
+ LanguageContext@http://localhost:5173/src/contexts/LanguageContext.tsx:3399:32
+ MantineThemeProvider@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=efb12024:1813:30
+ MantineProvider@http://localhost:5173/node_modules/.vite/deps/chunk-HHRTPNE4.js?v=efb12024:2312:25
+ ThemeContext@http://localhost:5173/src/contexts/ThemeContext.tsx:919:29
+ QueryClientProvider@http://localhost:5173/node_modules/.vite/deps/@tanstack_react-query.js?v=02a60f9c:2704:27
+ BaseContext@http://localhost:5173/src/contexts/BaseContext.tsx:795:28
+ DesktopAppView@http://localhost:5173/src/views/DesktopAppView.tsx:1002:48
+ 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@18ae0aa70befb7ebe0eebd4f6e9637c3",
+ "_type": "Page",
+ },
+ },
+ ]
at baseFixtures.ts:82
80 | });
81 | await use(page);
>
|
Run Playwright tests:
src/frontend/tests/pui_command.spec.ts#L1
4) [firefox] › pui_command.spec.ts:34:1 › PUI - Quick Command - No Keys ──────────────────────────
Test timeout of 90000ms exceeded.
|
Run Playwright tests:
src/frontend/tests/baseFixtures.ts#L82
4) [firefox] › pui_command.spec.ts:34:1 › PUI - Quick Command - No Keys ──────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 132
- Array []
+ Array [
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [
+ EventEmitter {
+ "_events": Object {
+ "previewUpdated": [Function anonymous],
+ },
+ "_eventsCount": 1,
+ "_maxListeners": undefined,
+ "_object": Object {
+ "_guid": "handle@5ef8adb3823b57e30c7e7ee3c8af63ab",
+ "_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@883a623e0b4905cf002e91b1bdc6d198",
+ "_type": "Page",
+ },
+ Symbol(shapeMode): false,
+ Symbol(kCapture): false,
+ },
+ "text": "[JavaScript Error: \"Loading module from “http://localhost:5173/src/components/items/ApiIcon.css.ts” was blocked because of a disallowed MIME type (“”).\" {file: \"http://localhost:5173/platform/playground\" line: 0}]",
+ "type": "error",
+ },
+ "_page": Object {
+ "_guid": "page@883a623e0b4905cf002e91b1bdc6d198",
+ "_type": "Page",
+ },
+ },
+ ConsoleMessage {
+ "_event": Object {
+ "args": Array [
+ EventEmitter {
+ "_events": Object {
+ "previewUpdated": [Function anonymous],
+ },
+ "_eventsCount": 1,
+ "_maxListeners": undefined,
+ "_object": Object {
+ "_guid": "handle@1535d3a3f07694648f9eea31bc797702",
+ "_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=efb12024",
+ },
+ "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@883a6
|
Run Playwright tests:
src/frontend/tests/pui_command.spec.ts#L102
4) [firefox] › pui_command.spec.ts:34:1 › PUI - Quick Command - No Keys ──────────────────────────
Error: locator.waitFor: Test timeout of 90000ms exceeded.
Call log:
- waiting for locator('p').filter({ hasText: 'Playground' }) to be visible
100 | // Test addition of new actions
101 | await page.goto(`${baseUrl}/playground`);
> 102 | await page.locator('p').filter({ hasText: 'Playground' }).waitFor();
| ^
103 | await page.getByRole('button', { name: 'Spotlight actions' }).click();
104 | await page.getByRole('button', { name: 'Register extra actions' }).click();
105 | /*
at /home/runner/work/InvenTree/InvenTree/src/frontend/tests/pui_command.spec.ts:102:61
|
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/
|
Run Playwright tests:
src/frontend/[firefox] › pui_general.spec.ts#L1
src/frontend/[firefox] › pui_general.spec.ts took 1.3m
|
Run Playwright tests:
src/frontend/[firefox] › pui_printing.spec.ts#L1
src/frontend/[firefox] › pui_printing.spec.ts took 29.9s
|
Run Playwright tests:
src/frontend/[chromium] › pui_stock.spec.ts#L1
src/frontend/[chromium] › pui_stock.spec.ts took 27.0s
|
Run Playwright tests:
src/frontend/[chromium] › pages/pui_build.spec.ts#L1
src/frontend/[chromium] › pages/pui_build.spec.ts took 26.7s
|
Run Playwright tests:
src/frontend/[firefox] › pages/pui_build.spec.ts#L1
src/frontend/[firefox] › pages/pui_build.spec.ts took 22.4s
|
Run Playwright tests
4 flaky
[chromium] › pui_general.spec.ts:71:1 › PUI - Sales ────────────────────────────────────────────
[firefox] › pages/pui_part.spec.ts:5:1 › PUI - Pages - Part - Locking ──────────────────────────
[firefox] › pui_basic.spec.ts:5:1 › PUI - Basic Login Test ─────────────────────────────────────
[firefox] › pui_command.spec.ts:34:1 › PUI - Quick Command - No Keys ───────────────────────────
90 passed (11.4m)
|
Loading