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

How to set up CodeceptJS in a monorepo

I am using a pnpm workspace with different packages to distinguish the modules. I intend to use CodeceptJS as my test automation framework but whenever I install and initialize CodeceptJS in the root directory (pnpm add -w codeceptjs playwright then…
Lewis Munene
  • 134
  • 7
1
vote
1 answer

How to exit the process after all tests are run

I have the same problem https://github.com/codeceptjs/CodeceptJS/issues/2573 , but it's answer with mocha: { bail: true }, doesn't work for me. Codeceptjs runs all tests and printing an end result with successful/failed tests. But the process…
1
vote
0 answers

How do i get text from shadow root when e2e testing with codecept-puppeteer?

This is my HTML Structure I want to make sure that the title is 'Favorite Restaurant', How do i test this using codecept-puppeteer ? I already tried this, but it doesn't work Feature('Favorite Restaurant'); Before(({ I }) => { …
Dapa
  • 11
  • 3
1
vote
0 answers

Unable to run CodeceptJS/Playwright test in a dockerized container - err: qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped

I have a CodeceptJS/Playwright test framework which we want execute to in a Dockerized container. We have tried to implement the same using various base images but when execution starts we get Here are various Docker images we have tried and we…
1
vote
3 answers

I need to use Appium 2 for CodeceptJS mobile tests

Because latest iOS is making problems with Appium 1.x, Appium team is no longer supporting it, and Appium 2 is working ok - I need to use v2... CodeceptJS 3.3.x is using Appium 1.x now and because of the '/wd/path' used by default in CodeceptJS…
1
vote
0 answers

Appium CodeceptJS - Mock sound recording - Android

I've been automating testing of mobile apps for a year now, but it's my first time, that a part of app records users' voice (it's actually a 3-step process, first recording of "silence" to calibrate to the background noise, second a prolonged…
Pristo
  • 11
  • 1
1
vote
1 answer

How to configure Tesults report with CodeceptJS

I am trying to integrate Tesults dashboard with CodeceptJS + Playwright tests, but there seems not to be a way to pass playwright report configuration through codeceptJs' conf file. Documentation specifies that for playwright use reporter:…
1
vote
1 answer

How to get scenario name using CodeceptJs and Cucumber

I am using CodeceptJs with cucumber helper. For reporting options need to get Scenario name in Before section. Trying to use this documentation: https://codecept.io/bdd/#before So in Before(() => { console.log(Scenario.name) }); Have nothing…
1
vote
1 answer

Codeceptjs on Google Cloud Function goto of undefined

I'm trying to automate a web activity using CodeceptJS (with Puppeteer) running in a Google Cloud Function. My index.js is: const Container = require('codeceptjs').container; const Codecept = require('codeceptjs').codecept; const event =…
1
vote
0 answers

Codeceptjs playright mocking network request

I.mockRoute('/api/**', route => { if (route.request().postData().includes('my-string')) route.fulfill({ body: 'mocked-data' }); else route.continue(); }); Command is not mocking with correct route. I copied route from network tab.but…
1
vote
1 answer

Remove "filename" header from FormData

I'm trying to post a request using FormData(), I need to include the "content type" header so I'm using the blob to append entries to my form, but this automatically sets the filename to "blob" const formData = new FormData(); const obj1 =…
1
vote
0 answers

Why is page not displayed properly in Chrome with Puppeteer and CodeceptJS?

I'm trying to run a test in headed mode in Chrome with Puppeteer and CodeceptJS but the page is not being displayed properly, it is missing some elements (see below). Steps to reproduce: I have a react app running at https://localhost:3000 with…
1
vote
1 answer

How to configure CodeceptJs to work with appium for website testing on mobile device

hope you are well, I am trying to configure Codeceptjs to work with Appium, for proof of concept I only need the configuration to naviagte to a website amazon.com for example and create an account. I have been reading the appium documentation and…
redoptics
  • 65
  • 6
1
vote
1 answer

Get Element By Class in codeceptJS with WebDriver

Please how can I get element by class attribute using codeceptjs & WebDriver? This is my element, I wanna get TEST as value
TEST
Any idea ?
1
vote
1 answer

Appium Codeceptjs - Mock or take photo/video Android iOS

Is there any way to test making photo and video with CodeceptJS Appium. const driver = await appium.getDriver() await driver.sendDeviceKeyEvent(27) This code actually takes picture on xiaomi device but there is still accept or decline…
Kyryl Zotov
  • 1,788
  • 5
  • 24
  • 44
1 2
3
16 17