Closed jankaifer closed 8 months ago
Same here, both windows 10 and Ubuntu 18
"devDependencies": { "@wdio/selenium-standalone-service": "^6.4.0", "codeceptjs": "^2.6.8", "puppeteer": "^5.2.1", "webdriverio": "^6.4.0", "@codeceptjs/ui": "^0.4.0" }
Also seeing this problem. I'm on Ubuntu 18.04, using playwright. Tests work fine normally.
I am seeing the issue on mac for a testcafe and puppeteer project.
I have tried for webdriver and getting the same error
codecept-ui
requires CodeceptJS v3 which is currently under beta.
When I try to run it after upgrading to the beta, I see this: ⚠️You have to build Vue application by npm run build
codecept-ui
requires CodeceptJS v3 which is currently under beta.When I try to run it after upgrading to the beta, I see this:
⚠️You have to build Vue application by npm run build
Contrary to the issue's original post on using the @codeceptjs/ui NPM package, it looks like you are trying to run the UI on a clone of the codeceptjs/ui Git repository. Then, as the error says, you need to npm run build
before running the UI.
However, if it is about integrating the UI to an existing CodeceptJS test project, here are the steps that I followed on a Windows 10 workstation:
Set up a CodeceptJS v3 test project. Check out the Upgrading to CodeceptJS v3 guide.
Install CodeceptJS UI package:
npm i @codeceptjs/ui --save-dev
Run CodeceptJS UI:
npx codecept-ui
Note: If you happen to run the Electron app, you will need to manually bring the app window into the viewport; refer this comment.
I have the same problem and adding a breakpoint in https://github.com/codeceptjs/ui/blob/master/lib/codeceptjs/realtime-reporter.helper.js#L78 I get this error:
Error: Cannot find module 'mocha/lib/test'
Require stack:
- .../node_modules/@codeceptjs/ui/lib/api/new-test.js
And that takes me to these lines https://github.com/codeceptjs/ui/blob/master/lib/api/new-test.js#L5-L6 that are requiring
mocha.js utils but @codeceptjs/ui
is not listing mocha.js as a dependency.
So a temp solution would be to add mocha as a dependency of your project with npm i mocha -D
but the real solution should be that @codeceptjs/ui
adds it as a dependency of it's own.
I am getting the same 'Unhandled rejection' message executing the command.
Here is my config:
CodeceptJS v3.0.7 @codeceptjs/ui @0.4.3
node: 12.18.4
OS: Ubuntu 20.04 LTS
helpers: {
Nightmare: {
url: 'https://app.sarbacane.com/',
show: true
}
}
"scripts": {
"test": "mocha",
"codeceptjs": "codeceptjs run --steps",
"codeceptjs:headless": "HEADLESS=true codeceptjs run --steps",
"codecept:ui": "codecept-ui --app"
},
"dependencies": {
"@codeceptjs/configure": "0.6.2",
"codeceptjs": "3.0.7",
"codeceptjs-nightmare": "1.2.0",
"nightmare": "3.0.2",
"nightmare-upload": "0.1.1",
"playwright": "1.11.0"
},
"devDependencies": {
"@codeceptjs/ui": "0.4.3"
},
I have tried @gulench suggestion to reinstall on new project without success. Note that I have not given any browser setup to my project, i'm guessing (documentation is missing on this for nightmare) it's only electron compatible.
Upgrade CodeceptJS
to version 3.1.1, and Codecept-UI version is 0.4.6, still see this problem, anyone can help to provide some solution?
Thanks.
Still happening this issue. Any idea about the root cause of this?
still happen this issue on CodeceptJS v3.3.4 & playwright v1.23.4 & @codeceptjs/ui v0.4.6
Same issue here.
still happening
Closed for now! Feel free to reopen if you still encounter the issue with latest version and would be nice to provide a sample code to reproduce the issue.
What are you trying to achieve?
Start CodeceptUi
What do you get instead?
Environment info