question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress tests don't work with @quasar/app 1.0.6

See original GitHub issue

Software version

OS: Ubuntu bionic (amd64 flavour) Node: v12.9.1 NPM: 6.10.2 Any other software related to your bug: yarn 1.17.3

What did you get as the error?

I get no error message, but the “npx quasar test --e2e cypress” command will wait forever after building the app and before running my test suite.

Here is the console output :

$ npx quasar test --e2e cypress app:extension Running “@quasar/testing” Quasar App Extension… +0ms app:test Running “@quasar/testing” > “test” command +3ms

Dev mode… spa Pkg quasar… v1.1.0 Pkg @quasar/app… v1.0.6 Debugging… enabled

app:extension Running “@quasar/icon-genie” Quasar App Extension… +0ms app:extension Running “@quasar/testing” Quasar App Extension… +7ms app:extension Running “@quasar/testing-e2e-cypress” Quasar App Extension… +1ms app:quasar-conf Reading quasar.conf.js +4ms app:dev Checking listening address availability (0.0.0.0:8080)… +2ms app:webpack Extending SPA Webpack config +316ms app:dev Extension(@quasar/icon-genie): Running beforeDev hook… +2ms app:extension-manager Updating /quasar.extensions.json for “@quasar/icon-genie” extension … +10s app:generator Generating Webpack entry point +15ms app:dev-server Booting up… +2ms

app:progress Compiling SPA… +214ms app:progress Compiled SPA in ~17s +17s DONE Compiled successfully in 16755ms15:50:41

N App dir… /path/to/my/project App URL… http://localhost:8080 Dev mode… spa Pkg quasar… v1.1.0 Pkg @quasar/app… v1.0.6

After that, all I get is a blinking cursor and no CPU activity.

What were you expecting?

I’m expecting the test suite to run.

What steps did you take, to get the error?

  • put “1.0.6” in package.json
  • run “npx quasar test -e2e cypress”

Important remarks

  1. If I downgrade the @quasar/app package at version 1.0.5 (by putting “1.0.5” without leading ‘^’) and run “yarn install” again, then the test suite works fine.
  2. I’ve tried to create a new dummy app (“npx quasar init foo”) + add the testing extension (“npx quasar ext add @quasar/testing”) with Cypress support enabled + add the cypress extension (“npx quasar ext add @quasar/testing-e2e-cypress”). It leads to the same result : the command for running the tests suite “sleeps” forever. So here you have a simple way to reproduce that bug.
  3. I don’t know if the issue is linked to this repo, or with the ‘quasar’ repo. It seems to be some incompatibility between @quasar/app 1.0.6 and the current packages from this repo.

P.S. : big thanks for making Quasar. It’s just awesome.

Best regards, Olivier Ricordeau Co-author of https://acompas.org (quasar-based !)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amfine-soft-draultcommented, Aug 14, 2020

Hi again guys i’ve been thinking about and looking into this issue and i think i’ve found the cause : https://github.com/quasarframework/quasar-testing/blob/dev/packages/testing/src/index.js#L121 this is the regex used to detect if the dev server is up & running const doneRegex = /App URL\.{11} (https?:\/\/localhost:\d{4}\/)/ but looking at my quasar dev output it does NOT match the regex due to the expected trailing / !! i tried removing it from the regex and tests are now executed when server is running const doneRegex = /App URL\.{11} (https?:\/\/localhost:\d{4})/

comments/further analysis would be appreciated : @rstoenescu may be ? of course, i can provide a pull request if needed (though i can’t say i’m familiar with any of the code from quasar-testing…)

best regards

1reaction
sgalinanescommented, Apr 20, 2020

Is there any fix for this issue planned?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cypress - quasar-testing
This App Extension (AE) manages Quasar and Cypress integration for you, both for JavaScript and TypeScript. ... You must have a running dev...
Read more >
@quasar/quasar-app-extension-testing-unit-ava NPM | npm.io
You can install multiple pre-rigged testing harnesses (test runners) to your existent 1.0+ Quasar application by running a simple command. This command will ......
Read more >
@quasar/quasar-app-extension-testing-e2e-cypress - npm
0-beta.7 , this AE supports Cypress Component Testing and scaffolds by default the code to run both e2e and unit tests with Cypress....
Read more >
quasar/testing appears to be broken
Whilst running Jest unit tests on a fresh install of Quasar and @quasar/testing, the following error is being logged to the console:
Read more >
Quasar 2 Vue 3 Cypress component test fails to locate existing ...
The following error originated from your test code, not from Cypress. > Cannot find module 'src/css/app.scss' When Cypress detects uncaught ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found