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
0 answers
Codeceptjs returns NS_ERROR_CONNECTION_REFUSED when running tests via Github actions
I'm making e2e tests with Codeceptjs (Playwright) and tests work as intended locally. But as soon as I move tests to Github actions runner, they fail completely (the first one dies, and then the job stops completely).
codecept.confg.ts
helpers: {
…

Liondalan
- 67
- 2
- 7
0
votes
0 answers
Failing to convert test coverage jsons to istanbul format
What are you trying to achieve?
I am trying to get the code coverage for my project which I keep my e2eTest project within. I am going according to the documentation: capturing code coverage. After I run all of the test with the plugin enabled, I…

Buğrahan Durukan
- 13
- 2
0
votes
0 answers
Running "npx codecept-ui" gives this error in vs code terminal - ⚠️You have to build Vue application by `npm run build`
Running gives this error in vs code terminal -
⚠️You have to build Vue application by npm run build
PS C:\Users\91917\Downloads\DrySign\Codecept> npm run build
npm ERR! Missing script: "build"
npm ERR!
npm ERR! To see a list of scripts, run:
npm…

Kartik Hindole
- 19
- 1
0
votes
0 answers
Codeceptjs - knowing test progress while they are running
I have codeceptjs tests written in BDD format (Scenarios with tags). I have clubbed tests into few groups (based on tags) and run them in parallel in Travis
Currently, I get the report after all tests are run.
Would like to know if there is a way to…

Sarath Babu V S
- 21
- 4
0
votes
1 answer
Codeceptjs - BDD approach - Before all scenarios are run
I have codeceptjs tests written in BDD format (Scenarios with tags).
I have clubbed tests into few groups (based on tags) and run them in parallel in Travis
I would like to run a set of browser actions (say, create prerequisite for all tests) before…

Sarath Babu V S
- 21
- 4
0
votes
0 answers
How do I unblock Firefox cookies with Codeceptjs?
I want to do E2E testing of Salesforce in codeceptjs using the latest version of Firefox (as of March 2023), however operations that were possible with the old version of Firefox (84.0.2) cannot be performed with the latest version. I expect the…

Watanabe
- 1
- 1
0
votes
0 answers
How do automate the ability to click the url in codecept?
How can I AUTOMATE a simple clicking of the url within the browser?
tried using
I.amOnPage() & I.appendField(URL, "google.com");
**Expected results: **
When you do this manually it should highlight the whole url.

KeepMyselfHumble
- 23
- 4
0
votes
0 answers
Puppeteer and CodeceptJS 3.3: I.scrollTo() behaves differently than CodeceptJS 3.2
I am trying to use Puppeteer 18.1+ because older versions are no longer supported and I'm hoping it might fix the memory leaks I'm seeing. Apparently, I can't use CodeceptJS 3.2 with Puppeteer versions 15 and higher.
With CodeceptJS 3.3, I'm seeing…

Terris
- 887
- 1
- 10
- 15
0
votes
1 answer
Nothing happens when using I.attachFile to upload a document
Is a drag-and-drop field required for the I.attachFile('element', 'filePath') to work? Because currently nothing happens when I try using the attachFile method. No error message or any issues displayed even when using --verbose.
This is the element…

Newbie10
- 99
- 1
- 14
0
votes
1 answer
Intellisense not working for Playwright, REST
I write autotests on the Codeceptjs framework in TypeScript. After adding additional modules to the project, as well as after updating the repository with the command:
npx codeceptjs def
Intellisense is starting to work for me and I'm starting to…

jeow
- 1
- 2
0
votes
0 answers
how to implement "beforeAll", "afterAll" or "afterEach" in gherkins with the framework CodeceptsJS with Playwright
I am using the framework CodeceptsJS with Playwright (https://codecept.io/playwright/) and I saw in the website that the tag "Background" is the "beforeEach", but I do not find out how to implement "beforeAll", "afterAll" or "afterEach".
Any…

Luis
- 1
0
votes
0 answers
How can I write an if/else loop that searches for an newRecord in a table and clicks it, or goes to the next page?
Scenario:
I'm using CodeceptJS to automate:
creating a new record on a table (paginates on 20 records)
searching the table for the record
if the record can be found on the first page, click it
else click the next button and try search until the…

Adam
- 1
- 2
0
votes
2 answers
Click on first element contained in a div
I have a div that contains a set of dynamic elements. I want to click on the first search result.
I want to click on the first element contains in
I tried using creating a custom xPath like so but it didn't work. Any ideas…

theodoros
- 13
- 2
0
votes
0 answers
Disable automatic browser session on running E2E Test for CodeceptIO
I am using Codecept with Playwright. The problem I am experiencing is that whenever I start my E2E Test, there is a default browser session launched. Is there a way to disable this default browser session as I want to create sessions manually, if…

A Hassan
- 119
- 10
0
votes
0 answers
Captures the traces for different session actions as well
Our application is just like google meet in which we have to place the real time call and video. We are using codecept to automate our application. We are using traces to track all failures.
However Codecept is able to capture the traces for…

Meenu Garg
- 93
- 1
- 6