Questions tagged [codeceptjs]

CodeceptJS is a modern end to end testing framework with a special BDD-style syntax. The test is written as a linear scenario of user's action on a site. The use of generator functions allows asynchronous tests to be written in synchronous way.

251 questions
1
vote
1 answer

CodeceptJS Error after running first scenario (after each hook)

I just started trying out codeceptjs to see if we can use it in our project. It looks extremely useful, however I keep running into one nasty error which I can not pinpoint :-( Who knows what I have to do to get rid of the error below? I run…
1
vote
2 answers

Automated Chrome hides text in CodeceptJS WebdriverIO test

I have a fresh install of Chrome Version 67.0.3396.87 and followed the https://codecept.io/quickstart/ to init a project and create the following test: Feature('Hidden Text'); Scenario('test something', (I) => { I.amOnPage('/'); …
1
vote
0 answers

CodeceptJS not accepting proxy settings

I want to pass CodeceptJS requests through an external proxy. I followed the instructions in the docs. In the logging I see indications the proxy is being passed on, but its not being used by selenium-standalone to proxy requests. 10:56:25.020 INFO…
Allyl Isocyanate
  • 13,306
  • 17
  • 79
  • 130
1
vote
1 answer

CodeceptJs waiting for an element to disappear from DOM

I'm developing a testing suite and the only way I have found to be sure a page is ready, is when the selector 'div.spinner' disappear. I was able to do catch this condition with CapserJs (with PhantomJs or…
sabau
  • 166
  • 1
  • 11
1
vote
1 answer

Codeceptjs selectors: How to select the "email" input field?

I really need help with the syntax. I have the input field:
Simon
  • 81
  • 1
  • 12
1
vote
2 answers

How to check url change after login

How can I check if URL change after login to know that the login was success.... 'use strict'; let I; module.exports = { _init() { I = actor(); }, fields: { email: '[bo-email]', password: '[bo-password]' }, …
Vitaly Menchikovsky
  • 7,684
  • 17
  • 57
  • 89
1
vote
1 answer

Codeceptjs with Nightmare doesn't output result of test

Basically, I did everything as described in get started section on http://codecept.io/ page. devDependencies from package.json: "codeceptjs": "^0.5.1", "nightmare": "^2.10.0", "nightmare-upload": "^0.1.1" codecept.json: { "tests":…
Pavlo Kozlov
  • 966
  • 1
  • 9
  • 22
1
vote
1 answer

Why isn't CodeceptJS executing the steps in my test? And why can I not see the test being executed?

I've recently come across CodeceptJS and I thought of giving it a try. I was following the tutorial on the CodeceptJS's QuickStart page but now I'm facing two issues: The test seems to execute only the first step I don't see the execution of the…
Rusty Wizard
  • 531
  • 6
  • 20
1
vote
1 answer

Using codeceptJS with PhpStorm

I'm just starting with codeceptJS and I'd like the PhpStorm editor to recognize the code correctly. I have tried telling the editor to Use JavaScript Library with Node.js Core and Globals. I've searched plugins for one that would help and the web.…
Tim Duncklee
  • 1,420
  • 1
  • 23
  • 35
0
votes
1 answer

How to go to Device home or runInBackground on IOS platform using Codeceptjs

I am using Codeceptjs framework with Appium helper for my UI automation. I want to go to Device home on IOS platform and then navigate back to App. I am using browserstack to run my scripts. I have tried closeApp, but this fails the test on…
anusha
  • 1
0
votes
0 answers

Enable mocha-junit-reporter in a custom runner

So, when running commands with codeceptjs you can pass the --reporter flag and then the type: codeceptjs run --reporter mocha-junit-reporter --steps I have had to make a custom runner for some out of the box thinking, which works great. The last…
0
votes
0 answers

How can I take the screenshot of the session where the test failed instead of default session in CodeceptJs

I've been juggling around taking the screenshot of the correct session in CodeceptJs but it always take the screenshot of the default session. I need to post the screenshot to the allure report. It can either be screenshots of all the sessions upon…
0
votes
0 answers

How can I write a mock for GraphQL subscriptions/websockets using CodeceptJS?

if we have http reqest we write mock like this this.mockRoute( 'https://*', (route) => { route.fulfill({ status: 200, json: jsonMock }) } ) i whould like to…
0
votes
0 answers

How to use puppeteer inside codecept?

I currently have a Jest + Puppeteer file where I retrieve the email from [https://temp-mail.org/es/ ] and click on the link of the mail received. This was only possible by using the StealthPlugin from puppeteer-extra. If I don't use StealthPlugin,…
0
votes
0 answers

NodeJs Codeception Docker: Cannot find module ‘chromedriver’ Image codeception/codecepjs 2.0.4

I had Electron 1.7.5 running the tests with the codeception/codecepjs 1.0.1 image and chromedriver 2.38.3 normal but when I updated to electron 3.1.13 it started to break the tests. I updated the codepcetion image to codeception/codecepjs 2.0.4 and…