quasarframework / quasar-testing

Testing Harness App Extensions for the Quasar Framework 2.0+
https://testing.quasar.dev
MIT License
180 stars 65 forks source link

Timeout running `npm run test:e2e:ci` #277

Closed khteh closed 2 years ago

khteh commented 2 years ago

What's the expected output from running this command? I see it only the following screen but where are the test reports and when will this running process end?

$ npm run test:e2e:ci

> khteh@1.0.0 test:e2e:ci
> cross-env NODE_ENV=test start-test "quasar dev" http-get://localhost:8080 "cypress run"

1: starting server using command "quasar dev"
and when url "[ 'http-get://localhost:8080' ]" is responding with HTTP status code 200
running tests using command "cypress run"

 .d88888b.
d88P" "Y88b
888     888
888     888 888  888  8888b.  .d8888b   8888b.  888d888
888     888 888  888     "88b 88K          "88b 888P"
888 Y8b 888 888  888 .d888888 "Y8888b. .d888888 888
Y88b.Y8b88P Y88b 888 888  888      X88 888  888 888
 "Y888888"   "Y88888 "Y888888  88888P' "Y888888 888
       Y8b

 Dev mode.................. spa
 Pkg quasar................ v2.7.5
 Pkg @quasar/app-webpack... v3.5.7
 Pkg webpack............... v5
 Debugging................. enabled

 Configured browser support (>= 88.57% of global marketshare):
 · Chrome for Android >= 103
 · Firefox for Android >= 101
 · Android >= 103
 · Chrome >= 94
 · Edge >= 100
 · Firefox >= 94
 · iOS >= 13.0-13.1
 · Opera >= 85
 · Safari >= 14.1

 App • Running "@quasar/dotenv" Quasar App Extension...
 App • Running "@quasar/testing" Quasar App Extension...
 App • Running "@quasar/testing-unit-jest" Quasar App Extension...
 App • Running "@quasar/testing-e2e-cypress" Quasar App Extension...

 App • ⚠️  ️️Setting port to closest one available: 8081

 App • Extension(@quasar/dotenv): Extending quasar.config.js...
 App • Extension(@quasar/testing-e2e-cypress): Extending quasar.config.js...
 App • Chaining "UI" Webpack config
(node:42524) [DEP_WEBPACK_DEV_SERVER_HTTP2] DeprecationWarning: 'http2' option is deprecated. Please use the 'server' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
 App •  WAIT  • Compiling of "UI" in progress...
 App •  DONE  • "UI" compiled with success • 6010ms

 App •  READY  • Compiled: "UI"

 » App dir................... /usr/src/khteh
 » App URL................... https://localhost:8081
                              https://192.168.1.77:8081
 » Dev mode.................. spa
 » Pkg quasar................ v2.7.5
 » Pkg @quasar/app-webpack... v3.5.7
 » Transpiled JS............. yes (Babel)
Error: Timed out waiting for: http-get://localhost:8080
    at /usr/src/khteh/node_modules/wait-on/lib/wait-on.js:132:31
    at doInnerSub (/usr/src/khteh/node_modules/wait-on/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:22:31)
    at outerNext (/usr/src/khteh/node_modules/wait-on/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:17:70)
    at OperatorSubscriber._this._next (/usr/src/khteh/node_modules/wait-on/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
    at Subscriber.next (/usr/src/khteh/node_modules/wait-on/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
    at AsyncAction.work (/usr/src/khteh/node_modules/wait-on/node_modules/rxjs/dist/cjs/internal/observable/timer.js:28:28)
    at AsyncAction._execute (/usr/src/khteh/node_modules/wait-on/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js:76:18)
    at AsyncAction.execute (/usr/src/khteh/node_modules/wait-on/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js:64:26)
    at AsyncScheduler.flush (/usr/src/khteh/node_modules/wait-on/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js:39:33)
    at listOnTimeout (node:internal/timers:564:17)
    at process.processTimers (node:internal/timers:507:7)

I have quasar dev running in another BASH shell.

Software version

OS: Ubuntu 22.04 Node: v18.4.0 NPM: 8.15.0 Any other software related to your bug:

What did you get as the error?

What were you expecting?

What steps did you take, to get the error?

IlCallo commented 2 years ago

Are you using Cypress 10? We're still working to support it, it currently won't work, check out https://github.com/quasarframework/quasar-testing/pull/259

khteh commented 2 years ago

"cypress": "^10.4.0"

IlCallo commented 2 years ago

Then follow #259 and don't use Cypress 10 until we officially support it