"Have both bdcs-api-rs and welder-web running on localhost" → I believe I do have that. http://localhost:4000/api/v0/test works, it comes from the running API container:
4d6d4a958763 welder/bdcs-api-rs:latest "/usr/local/bin/en..." 2 weeks ago Up 43 minutes 0.0.0.0:4000->4000/tcp api
❱❱❱ npm run test
> [email protected] test /home/martin/upstream/welder-web/test/end-to-end
> jest --runInBand --forceExit
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: .wait() timed out after 30000msec
(node:810) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 8): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 9): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 10): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 11): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 12): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 13): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14): Error: .wait() timed out after 30000msec
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 15): Error: .wait() timed out after 30000msec
FAIL test/test_editRecipe.js (256.794s)
● Edit Recipe Page › Single Word Recipe Name Scenario › Menu Nav Bar Check #acceptance › should show a recipe name with a correct link address @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Title Bar Check #acceptance › should show a recipe name title @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Title Bar Check #acceptance › should have Create Composition button @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For ostree #acceptance › should pop up Create Composition window by clicking Create Compostion button @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For ostree #acceptance › should have toast notification pop up when new composition added @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For iso #acceptance › should pop up Create Composition window by clicking Create Compostion button @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For iso #acceptance › should have toast notification pop up when new composition added @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For ami #acceptance › should pop up Create Composition window by clicking Create Compostion button @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For ami #acceptance › should have toast notification pop up when new composition added @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For qcow2 #acceptance › should pop up Create Composition window by clicking Create Compostion button @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For qcow2 #acceptance › should have toast notification pop up when new composition added @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For vhdx #acceptance › should pop up Create Composition window by clicking Create Compostion button @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Create Composition Test For vhdx #acceptance › should have toast notification pop up when new composition added @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Export Recipe To Manifest Test #acceptance › should pop up dropdown-menu by clicking ":" button
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Export Recipe To Manifest Test #acceptance › should pop up Export Recipe window by clicking "Export"
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Export Recipe To Manifest Test #acceptance › should copy and paste correct components
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Edit Recipe Page › Single Word Recipe Name Scenario › Save Recipe Test #acceptance › should have toast notification pop up when Save button clicked @edit-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 16): Error: expect(received).toBe(expected)
Expected value to be (using ===):
""
Received:
"https://github.com/weldr/welder-web/blob/master/test/end-to-end/README.md"
FAIL test/test_recipes.js (63.392s)
● Recipes Page › Recipe List › Single Word Recipe Name Scenario › Export Recipe To Manifest Test #acceptance › should copy and paste correct components
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
(node:810) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 17): Error: expect(received).toBe(expected)
Expected value to be (using ===):
""
Received:
"http://localhost:4000/api/v0/test"
FAIL test/test_viewRecipe.js (60.7s)
● View Recipe Page › Single Word Recipe Name Scenario › Recipe page - Export Recipe To Manifest Test #acceptance › should copy and paste correct components
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
FAIL test/test_createRecipe.js (31.703s)
● Create Recipe Page › Input Data Validation Test › Required Field Missing #acceptance › should show alert message by clicking Save button when create recipe without name @create-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Create Recipe Page › Input Data Validation Test › Required Field Missing #acceptance › should show alert message by clicking Enter key when create recipe without name @create-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Create Recipe Page › Input Data Validation Test › Required Field Missing #acceptance › should show alert message by changing focus to description input @create-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Create Recipe Page › Input Data Validation Test › Simple Valid Input Test #acceptance › should switch to Edit Recipe page - recipe creation success @create-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Create Recipe Page › Input Data Validation Test › Simple Valid Input Test #acceptance › should switch to Edit Recipe page - recipe creation success @create-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
● Create Recipe Page › Input Data Validation Test › Simple Valid Input Test #acceptance › should switch to Edit Recipe page - recipe creation success @create-recipe-page
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at pTimeout (node_modules/jest-jasmine2/build/queueRunner.js:53:21)
at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:523:19)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
FAIL test/test_importSanity.js
● Imported Content Sanity Testing › displayed count should match distinct count from DB
TypeError: Cannot read property 'each' of undefined
at Object.<anonymous> (test/test_importSanity.js:52:8)
at new Promise (<anonymous>)
at Promise.resolve.then.el (node_modules/p-map/index.js:46:16)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Test Suites: 5 failed, 5 total
Tests: 24 failed, 35 passed, 59 total
Snapshots: 0 total
Time: 415.246s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: `jest --runInBand --forceExit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/martin/.npm/_logs/2017-10-24T06_53_15_909Z-debug.log