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.
Questions tagged [codeceptjs]
251 questions
0
votes
1 answer
How do I compare the visual differences of an element on a page using CodeceptJS?
I have just started to use CodeceptJS and I'm having some trouble getting the seeVisualDiffForElement command working.
This is my test code so far:
Feature('MyTest');
Scenario('Creating base images and comparing using the same command but ran…

AF_web
- 89
- 11
0
votes
2 answers
When to use global/local CodeceptJS installation?
I'm new to CodeceptJs and have a question regarding its installation.
I see 2 kinds of installation:
local (npm install --save-dev codeceptjs)
global ([sudo] npm install -g codeceptjs webdriverio)
When should I use local and when should I use…

Cathy 007
- 41
- 8
0
votes
1 answer
Codeceptjs "sendGetRequest" doesn't accept any parameterisation for filter options
Within Codeceptjs I'm running an API test using I.sendGetRequest method.
await I.sendGetRequest('api/search');
However I need to be able to pass in parameters in order to have a good request 200 status otherwise all I get is a bad request…

Daniel
- 45
- 6
0
votes
1 answer
PageObject passing in Stepfiles in CodeceptJS
I'm new to CodeceptJS and I need your help in understanding how to use BDD with CodeceptJS
Can we pass PageObjects in Step Definition file?
I'm able to pass it perfectly as shown below:
Scenario.only(‘login’, (I, loginPage) =>…

Cathy 007
- 41
- 8
0
votes
1 answer
codeception ElementNotVisibleException
I am using selenium and Chrome Driver to run codeception acceptance tests.
However, my test script can't click an button on the website, it is shown this error message on my command prompt: [Facebook\WebDriver\Exception\ElementNotVisibleException]…

kaihang chen
- 1
- 3
0
votes
2 answers
CodeceptJS locator.stringify is not a function error while running codecept with Appium
I have a very simple script where I am trying to fill a username field in a website using "fillField" in Appium but I get this error "locator.stringify is not a function". I am not able to figure out what is the issue. Any help is appreciated. Here…

Karthik
- 1
0
votes
1 answer
How to set up chromium start options in codecept.conf.js?
In my case I need emulate camera to use it on chromium.
I already tried command like this:
chrome.exe --use-fake-ui-for-media-stream --disable-web-security --use-fake-device-for-media-stream…

Андрей Корниенко
- 21
- 4
0
votes
0 answers
Run local server on codecept-nightmare in Angular Project
We want to implement some basic E2E tests in our Angular 7 application with codeceptJS Nightmare. The tests should be part of the CI pipeline. I followed the docs and set up a basicTest.e2e.js:
Feature('Basic');
Scenario('test if Users header…

Florian Gössele
- 4,376
- 7
- 25
- 49
0
votes
1 answer
What format should I use for payload and headers in my chai REST-API test?
I am setting up REST-API test within my codecept testing framework which uses integrated Chai.
After checking the very basic documentation on the subject in CodeceptJS documentation I can't seem to get my test to work.
const expect =…

Ceesiebird
- 696
- 2
- 11
- 24
0
votes
1 answer
Can codecept see elements in RSS feeds (XML)?
I have an RSS feed which should have only 1 'item' in it. I know that I can do I.see() to check that any number exists; but is it possible to check if exactly 1 exists?
I know for elements (in html) I have much more flexibility than simply I.see().…

liquidcms
- 301
- 1
- 3
- 17
0
votes
2 answers
Codeceptjs: Allure report doesnot show all steps in "Test body" section
I am trying to generate an allure report for my suite. I am getting the report but the report does not display all the steps in the Test body section. It only displays a screenshot of the failed test and if the test case passed it does not display…

Gagandeep Singh
- 27
- 8
0
votes
1 answer
How to integrate Codeceptjs with Jenkins
Am using Puppeteer helper in creating my page object model end to end tests. I want to integrate my tests with Jenkins so I can schedule my run. Can you guys please help me with the steps?

Vignesh.G
- 1
- 1
0
votes
1 answer
can see allure result in jenkins with codeceptjs
I am trying to see allure results on Jenkins.
I am using from my jenkins
codeceptjs run --plugins allure
then on codeceptjs folder, the output generated.
I downloaded allure 2.7 and try to set it.
my path is Results :
…

Vitaly Menchikovsky
- 7,684
- 17
- 57
- 89
0
votes
1 answer
Is expected that tests that works on chrome, fails on firefox?
I have a test that pass on chrome, but fails on firefox.
Here the test:
Scenario.only('Test', (I) => {
I.see('token')
I.click('.fa-edit')
I.wait(1)
I.fillField('input.EditableTitle__input','enkot')
I.see('enkot'); fails…

Matheus Souza
- 55
- 1
- 6
0
votes
2 answers
unable to run allure on codeceptjs
I am trying to run
codeceptjs run --plugins allure
but getting an error
error: unknown option `--plugins'
I added the plugins to codecept.json with enable true, did all what written on
https://codecept.io/plugins/#allure
but still getting…

Vitaly Menchikovsky
- 7,684
- 17
- 57
- 89