Questions tagged [cypress-cucumber-preprocessor]

The cypress-cucumber-preprocessor is an open-source preprocessor that converts Cucumber tests (feature files) into Cypress tests before the actual test execution. This enables Behavior Driven Development (BDD) with Cucumber using Cypress as the E2E testing framework.

References:

Related tags:

291 questions
13
votes
4 answers

Cannot find type definition file for 'cypress'.ts

When trying to npm install -D cypress-xpath into a Cypress project [require('cypress-xpath') added to my cypress/support/index.js] with the cypress-cucumber-preprocessor already installed I am getting the below Error in the plugins > index.js file…
Delwin Horsthemke
  • 131
  • 1
  • 1
  • 3
9
votes
4 answers

Cucumber tags are not working after Cypress and cucumber-preprocessor upgrade

I upgraded Cypress from 9.5.2 to 10.3.0 and previously I was using cypress-cucumber-preprocessor:4.3.1 now I upgrade it to @badeball/cypress-cucumber-preprocessor:^11.4.0. Before the upgrade, I was using cypress-tags for running the test using…
6
votes
2 answers

Configure cypress-cucumber-preprocessor with Cypress 10 in Angular

Cypress 10 was released just days ago with a ton of major breaking changes. As a first time Cypress user (migrating from Protractor with Cucumber), I was not aware of this. I'm trying to install Cypress with Cucumber, but all of the documentation…
6
votes
1 answer

Cypress get element that a child contains

I'm trying to find in a table my row that cy.contains() a specific text. I cannot do: cy.get("tr").contains("specific text") That will return my span element containing the text I cannot do cy.get("tr").contains("specific text").parent() beacause…
danbord
  • 3,605
  • 3
  • 33
  • 49
5
votes
1 answer

Migrating cypress test from old version to latest version throws error

I am trying to migrate my test from Cypress 8.7.0 version to Cypress 10.10.0 version. Installed the latest version and did the below settings, but getting below error. Using below versions: Cypress 10.10.0, "@badeball/cypress-cucumber-preprocessor":…
soccerway
  • 10,371
  • 19
  • 67
  • 132
4
votes
1 answer

Cypress-Cucumber-Preprocessor: Using BeforeAll for specific tags/feature files

According to the Cypress Cucumber Preprocessor docs regarding Before and After hooks: The cypress-cucumber-preprocessor supports both Mocha's before/beforeEach/after/afterEach hooks and Cucumber's Before and After hooks. However for some reason it…
4
votes
1 answer

cypress elm[aelFn] is not a function error in afterAll test hook

I'm using cypress 9.3.1 with @cypress/code-coverage 3.9.12 and cypress-cucumber-preprocessor 4.3.1 in an angular 13.0.1 application. My tests are running fine and also the code coverage is collected, but in the afterAll hook I get an error…
lando
  • 335
  • 1
  • 16
4
votes
2 answers

Cypress TypeError: Cannot read properties of undefined (reading 'uid')

I have a Cypress project with TypeScript support using the Cucumber Preprocessor and all of a sudden it started to throw the below exception: TypeError: Cannot read properties of undefined (reading 'uid') Some times it works when I change to a…
4
votes
3 answers

Cypress custom commands not recognized by PhpStorm IDE but working in test runner

I use JavaScript files in our Cypress testing. In commands.js I created a custom command: Cypress.Commands.add('selectDropdown', (dropdown) => { cy.get('#' + dropdown).click(); }) And in my test file I call…
4
votes
1 answer

Error when running Feature file: Can't walk dependency graph

I have installed and tried to configure the cucumber preprocessor package to implement cucumber into an existing cypress framework. But when I go and run my Feature file I get the following error. Any ideas? Error: Can't walk dependency graph:…
Aidan
  • 79
  • 3
  • 11
4
votes
2 answers

Cypress: cy.task() with multiple arguments

What I am trying: Pass multiple arguments in cy.task() command and print those argument values declared in function mentioned in plugins/index.js file Issue: The function print prints only the first argument value and undefined for a second…
p2018
  • 125
  • 1
  • 12
4
votes
2 answers

How to validate a error message in cypress?

Am new to cypress and been trying to validate an error message that appears on UI after clicking on a button I've tried the following 3 but neither of them worked cy.get('pvd-system-message').should('have.text', 'SSN 123456789 not found…
3
votes
1 answer

How to get cypress-cucumber-preprocessor working with Quasar 2 (Vue 3) and Vite

I have set up a new project using Quasar 2 (Vue3) with Vite and Cypress 12.9.0. I am not using Typescript. The default home.cy.js test supplied by the Quasar @quasar/testing-e2e-cypress@beta setup works correctly. :-) I now want to add the…
Murrah
  • 1,508
  • 1
  • 13
  • 26
3
votes
2 answers

Cypress test runner intermittent ECONNREFUSED 127.0.0.1:4200

I'm having intermittent issues running some automated e2e tests written in Cypress. Apparently I'm the only one having this issue so it might be isolated to my laptop. The strange thing is it happens intermittently. When I run the tests and cypress…
Tom Miller
  • 31
  • 3
3
votes
1 answer

Cucumber *.feature and cypress *.cy.ts running in the same repository

Can I have *.feature and *.cy.ts tests run in the same repository ? how should my cypress.config.ts look like? they get listed in E2E specs with current specPattern: 'cypress/e2e/**/*.feature|cypress/e2e/**/*.cy.ts', listing both, but all …
LukaRls
  • 35
  • 4
1
2 3
19 20