279 questions
0
votes
1
answer
97
views
Cypress cucumber is slow because it is still counting down on skipped tests - how to ignore them completely?
We're using Cypress and Cucumber. I have a lot of tests as they're going through a lot of combinations on the webpage, so I end up with about 1,600 single steps.
To be able to do a quick smoke test I ...
1
vote
0
answers
57
views
Cypress ERR_EMPTY_RESPONSE in remote URL Testing
We are running Cypress tests on a remote server (e.g., sampledata.com/login) that involve navigating through multiple pages. These tests were working correctly until last week but have recently ...
0
votes
0
answers
26
views
Cypress is not able to click on Expand Icon [duplicate]
I have tried each and every possibility for all of them elements are correctly identified , the only problem it's not clicking the Expand Icon. I am not doing any mouse hover, if you look at the ...
0
votes
1
answer
187
views
Cypress Badeball cucumber preprocessor installation issue
While I am running npx cypress run
I m getting the following error:
Your configFile threw an error from:
C:\CypressAutomation_\cypress.config.js
The error was thrown while executing your e2e....
0
votes
1
answer
66
views
Can I get the Cypress API to run `.feature` files as well as `spec` files?
I've got a mixture of Cucumber .feature files and normal Cypress .spec.js files.
Normally, they run together fine as I have included:
specPattern: ["cypress/e2e/**/*.spec.js", "cypress/...
0
votes
0
answers
22
views
Module not found: Error: Can't resolve 'D:\my-cypress-project\node_modules\@badeball\cypress-cucumber-preprocessor\loader' in 'D:\my-cypress-project'"
I have created BDD Cucumber framework in cypress and while executing feature file, I am getting below error.
Error: Webpack Compilation Error
Module not found: Error: Can't resolve 'D:\my-cypress-...
2
votes
0
answers
121
views
allure-cypress plugin version 3.0.7+ throws Unexpected token while parsing allure-cypress\dist\cjs\index.js
I upgraded to 3.0.7 and tested newer versions of allure-cypress plugin as well. When I run my test scripts, I get the following error:
Oops...we found an error preparing this test file: > ...
0
votes
1
answer
78
views
Error in bindings.js when using ibm_db in a Cypress test
Node Version: 18.19.1
I have a project with some simple Cypress tests, which work.
I am trying to write an additional Cypress test which accesses a db2 database using ibm_db.
Repo structure:
dzs-e2e-...
0
votes
0
answers
75
views
Cannot read properties of null (reading 'initDate') PipelineAzure
When I run the test case that inputs data into the dataPicker with a start/end date using Cypress, the test case passes without problems, but when running it automatically in the Azure Pipeline the ...
0
votes
0
answers
90
views
Cypress Component You may need an appropriate loader to handle this file type
I followed https://github.com/badeball/cypress-cucumber-preprocessor/tree/master/examples/ct-webpack-react-ts added Cypress Cucumber for Component tests
Normal Feature test steps like cy.log,cy.wait ...
0
votes
1
answer
57
views
Cypress & Cucumber: Commands.js function does not work in step definition
A function I created in commands.js does not work in cucumber step definitions. Yet, another function with a simple return works in the same step definition.
Commands.js
Cypress.Commands.add('...
1
vote
2
answers
66
views
Cypress & Cucumber: variable in step definition not displayed
I am not able to use a variable declared in a cypress method, within a step definition, outside that Cypress method, within the same step definition.
This is my scenario:
Scenario: Transfer totals ...
0
votes
1
answer
122
views
cypress-tags and cypress run both failing to executed only tagged test cases in cypress-cucumber framework
I tried cypress-tags and cypress run commands to execute tagged test cases but both are failing. can someone guide for solution?
dependancy versions:
"@badeball/cypress-cucumber-preprocessor"...
0
votes
0
answers
38
views
error in cypress typescript cucumber setup only when if there is parameter in feature file
I have installed a cypress under my angular repository where I have configured cucumber using @badeball/cypress-cucumber-preprocessor for processing the feature file. feature file executes well if i ...
0
votes
1
answer
1k
views
My feature steps are being highlighted as Undefined, but the methods behind them run fine during execution?
I'm working with Cypress and decided to install Cucumber, ive created a feature file which successfully runs the step definitions in the Cypress runner but my cucumber steps are still being ...
1
vote
1
answer
108
views
Allure Cypress showing only Cypress commands in Step Execution outcome, but I want BDD / Cucumber output
I use cypress-cucumber-preprocessor + allure-cypress in order to get Allure reporting format.
This is my package.json:
"devDependencies": {
"cypress": "13.15.1",
...
0
votes
2
answers
912
views
HTML Report is not being generated with multiple-cucumber-html-reporter for Cypress Automations [closed]
I was trying to setup reports with Mochawesome but I could not get it to work like I wanted, so then I tried these steps to use cucumber-html-reporter instead: Can I generate cucumbur html report in ...
0
votes
0
answers
45
views
Cypress e2e.js file giving error while connecting SQL server using Cucumber [duplicate]
I am not able connect DB connection using Cypress. Facing issue e2e.js by giving loadDBCommand.
DBConnection.feature
Scenanrio: Connect DB using SQL Server
Given Update the Agent Details
Package.json
...
0
votes
1
answer
133
views
cypress-cucumber-preprocessor dry option not working
How to use dry run option in cypress-cucumber-preprocessor package, so that I can get respective step definition for feature files. I have gone through the following link and used the command
npx ...
0
votes
1
answer
146
views
Dynamic require of 'https' is not supported error while generating cypress cucumber report in v 10
✘ [ERROR] Could not resolve "https"
node_modules/@ng-apimock/cypress-plugin/dist/cypress.plugin.js:4:22:
4 │ const https = require("https");
╵ ~~~~~~~
...
0
votes
1
answer
475
views
Allure Reports "Cannot find module 'allure-cypress/commands' " for Cypress BDD Framwork using Cucumber
I am working on Cypress BBD Framework using cucumber:
The following are dependencies installed:
"devDependencies": {
"cypress": "^13.11.0",
"cypress-...
0
votes
1
answer
144
views
comparison of two array
I am testing a scenario in Cypress however when I get to compare two arrays at the end of the scenario, the code fails.
This is the code where I have a pre-defined array and i want to create the ...
0
votes
1
answer
762
views
Which versions of @badeball/cypress-cucumber-preprocessor are compatible with which versions of Cypress?
Which version of @badeball/cypress-cucumber-preprocessor can I use with Cypress 13? Is it even compatible? I'm getting type issues in my cypress.config.ts file:
import { defineConfig } from 'cypress';
...
0
votes
1
answer
71
views
Unable to install Cypress in MAC via install npm install cypress --save-dev
Unable to install Cypress tool on Mac
npm install cypress --save-dev is not working niether npm install cypress
npm ERR! code EACCES
npm ERR! syscall open
npm ERR! path /Users/amitojkhurana/.npm/...
0
votes
1
answer
530
views
Basic Authentication Help in Cypress when Pop Up Only asks for Password
Trying to run a simple test in cypress, where I navigate to a test website. The issue is, the basic authentication that is involved, only asks for a password, no username, and I cant seem to get it to ...
0
votes
2
answers
694
views
Zephyr Squad Server: Import test results without creating new Jira tickets
We're using Zephyr Squad Server.
TLDR:
Is there a solution to import automatic test results (as bulk) into Zephyr Squad Server, without creating new Jira Tickets (solely add new test execution to old ...
0
votes
1
answer
301
views
Error: Can't walk dependency graph: ENOENT: no such file or directory, \cypress-cucumber-preprocessor\lib\getStepDefinitionsPaths.js
I just want to ask for help because I can't run my feature file since the step definitions cannot be found
enter image description here
Folder pattern
enter image description here
package.json
{
&...
0
votes
1
answer
450
views
cucumber-messages.ndjson persists after cypress run with cucumber-preprocessor and reporting is completed
I am running cypress with this in package.json:
{
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true,
"filterSpecs": true,
"json": {
"enabled": true,
"output": "./test/report/...
0
votes
1
answer
2k
views
ENOENT: no such file or directory error in Cypress
When running Cypress using GUI, I'm getting this error:
Error: ENOENT: no such file or directory, stat '/home/user/.config/Cypress/cy/production/projects/testProject-ba4506b83588731a9b974658caac8b40/...
0
votes
1
answer
275
views
Cypress Error when using POM and Commands with Cucumber framework
I'm facing an issue with my Cypress Cucumber tests using Page Object Model (POM), custom commands, and a data.json file. The test seems to skip the first When statement. Here's how my code is ...
1
vote
1
answer
96
views
Verify table with step definition also containing a table
I have this step definition:
Then I verify that Ontvanger has received Type message with Onderwerp and Status
| berichtOntvanger | berichtType | berichtOnderwerp | berichtStatus |
| ...
0
votes
0
answers
884
views
Setting up cypress-cucumber-preprocessor with Cypress v13.4.0
I'm getting an error with the latest configuration of cypress-cucumber-preprocessor
Your configFile threw an error from: ...\cypress.config.ts
The error was thrown while executing your e2e....
1
vote
1
answer
137
views
Pushing aws-eventbridge events with Cypress 13
For a test I need to push an event into aws-eventbridge I had the following code which was working on Cypress 12.7
on steps.ts:
Given("the user has an event", async () => {
const ...
1
vote
1
answer
477
views
Cypress Gherkin should not stop suite execution on error in afterEach-hook
Context:
I have a Cypress project that uses cypress-cucumber-preprocessor. In the feature file I define multiple scenarios. Each scenario performs an action on the page under test and takes a ...
0
votes
1
answer
274
views
Getting "Step implementation missing" issue in cypress-cumber-preprocessor (cypress version - 13.1.0 and cucumber preprocessor - 4.3.1)
I have installed cucumber preprocessor by using :- npm install --save-dev cypress-cucumber-preprocessor.
Cypress Version :- 13.1.0
Cucumber Preprocessor Version :- 4.3.1
Below is my folder Structure :-...
0
votes
1
answer
464
views
Cypress Error: Webpack Compilation Error when running feature file with cucumber
Im trying to run a cypress feature file but im getting the webpack error.
Error: Webpack Compilation Error
Module parse failed: Unexpected token (1:17)
You may need an appropriate loader to handle ...
1
vote
1
answer
290
views
Cucumber (Gherkin) Full Support does not recognize steps in WSL2
I have an angular project and a cypress tests setup. I am currently using ubuntu wsl2 and the project is cloned there.
The tests work either I clone and run the project in Windows fs or in wsl. (
...
0
votes
1
answer
126
views
Cypress 10 -If a feature file is repeated more than once in specPattern , the feature file is running only once
I need feature1.feature to run three times as displayed in cypress.config.js . But while running npx cypress run --config-file cypress.config.js ` the feature1.feature is running only once. Is there ...
0
votes
1
answer
79
views
How to store dynamic test data in array format and use the same in anther test case in Cypress v.13
How to store test data in array format which is generated in one test case and retrieve same test data set in the form of arrays to use in anther test cases in cypress v.13 with cucumber framework ?
...
1
vote
0
answers
319
views
How to correctly import a module with module.exports = { default: ... }?
The JS version of my project's Cypress config has
const cucumber = require('cypress-cucumber-preprocessor').default;
This works fine. But I thought the import equivalent should be
import cucumber ...
0
votes
2
answers
1k
views
> (0 , _cypressCucumberPreprocessor.And) is not a function [closed]
(0 , _cypressCucumberPreprocessor.And) is not a function
0
votes
1
answer
554
views
Cypress not resolving promise inside session setup function
I'm writing some Cypress tests using Cucumber/Gherkin and I'm stuck at the following.
I have a simple function to create Cypress session where I retrieve token and save it inside of a cookie:
export ...
0
votes
2
answers
699
views
How to Store the Cypress Run Result into Variable
I am using Cypress with Cucumber-preprocessor ,I need to store the result of Cypress Run that get printed in the console after execution
I need to pass this data to api call
Below is the example of ...
2
votes
1
answer
679
views
Which cucumberautocomplete settings should I use to replace a {string} with "" double-quotes when autocompleting a step? Not ("|')[^\1]*\1 or ("|')\1
I am building a Cypress Framework using the @badeball/cypress-cucumber-preprocessor node package and the Cucumber (Gherkin) Full Support vs code extension.
When autocompleting a step that contains {...
0
votes
1
answer
204
views
Cypress Defaultcommadtimeout is not working
HI I am writing to write a test case and the application is very slow and every step requires wait but i cant use arbitary wait and when i use defaultCommandTimeout its not working
Heres my code:
When(...
0
votes
1
answer
414
views
Cypress :WebPack Compilation Error: Despite of having all the required modules
I am trying to setup and install cypress in a project and i have installed cypress version 14.12.0
Node Version : 18.11.0
"@badeball/cypress-cucumber-preprocessor": "^18.0.0",
&...
0
votes
0
answers
40
views
Cypress while running the file
I am facing issue in cypress while running one of the file
the issue is it seems in node module
giving the Screenshort
enter image description here
Please provoide me the some stpes so that i will go ...
0
votes
1
answer
521
views
Xray importToSameExecution not working for Cypress Cucumber JSON in Jenkins Pipeline
I'm trying to import Cypress Cucumber JSON results into same Xray execution using "Xray - Test Management for Jira Plugin" in Jenkins pipeline. But in each run Xray is creating a new ...
0
votes
2
answers
499
views
add regex as parameter in a Cypress cucumber step definition
I want to check this complete line with Cypress but the time mentioned can vary. Can I use a regex for this and how do i do this? Thanks
Then I verify the AL notification list contains unread item &...
0
votes
2
answers
2k
views
How to get the Tag name passed while running Cypress Framework
I am working on Cypress 12.4,TypeScript -4.9,Cucumber(cucumber-pre-processor -15) framework.
I have few Test cases marked as @Sanity and few Test cases marked as @Regression
Below is my package.json ...