As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [cypress]

Questions about using Cypress.io, an open source tool for testing anything that runs in a browser.

17 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
2 answers
139 views

Test Coverage Report in Cypress

I write my test cases in Confluence and then automate them in Cypress. I was wondering is there any way I can get the test coverage report. I already looked into Istanbul but it is for code coverage. ...
pop's user avatar
  • 31
2 votes
0 answers
3k views

Trouble with assertions when testing PDF files

Objective: To find distinctive data that has been encoded in a pdf and write assertions using cypress to ensure data accuracy. Observed Behavior: Assertions that have been written do not execute. I ...
ubcqetest's user avatar
1 vote
0 answers
464 views

Accessing elements within a Frame in Cypress

I am trying to interact with elements within a frame. <frame name="content" scrolling="AUTO" src="empty.jsp"> #document <html lang="en">...
Steerpike's user avatar
  • 383
0 votes
0 answers
6 views

Allure report not generated when one or more test cases at pending status, due to Cucumber tags

Error message; allure-results does not exist. When test cases pass failed only report generated with no issue. Project created by Cypress, Cucumber with typescript Run in Jenkins/Docket image Jenkins ...
Dev Perera's user avatar
0 votes
1 answer
39 views

How to Use Cypress with AngularJS application

Our legacy Application is developed with AngularJS(app folder in the picture) but now started with nx (Angular) for the new feature development (which is in web-apps within the app). My question is NX ...
Maryum Khan's user avatar
0 votes
0 answers
9 views

Not all key codes are working with cy.realPress() method - keyboard navigation is not working

I am trying to mimic the keyboard navigation in my Cypress test. I found a nice lib https://github.com/dmtrKovalenko/cypress-real-events#cyrealpress. The method realPress() is working partially: not ...
Viktor Ilienko's user avatar
0 votes
1 answer
16 views

How to delete cypress reports for both windows and linux before every run?

using below script for windows and linux but it is not working for linux
Surya Singh's user avatar
0 votes
1 answer
75 views

Cypress Error on chaining Cypress-If / Cypress-Drag-Drop commands with Cypress-iFrame commands

The application, which I have to automate, is completely inside an iframe. To continue, I used cypress-iframe plugin. However, when I am trying to chain the commands of cypress-drag-drop or cypress-if ...
Anand's user avatar
  • 101
0 votes
0 answers
416 views

How to pass dynamically JSON test data file to json spec.js file to get data in Cypress + Cucumber?

I want to run same test for the same web page for different combinations. Therefore I'm planning to created different scenarios in same feature file or different files. I have already tried passing ...
Syrus's user avatar
  • 1,197
0 votes
1 answer
2k views

Verify read-only fields using cypress

I have a few text fields which when I login as a specific user (rights of a read only) , all the text fields are not allowed to be edited. I am trying to automate this page in Cypress. I tried using : ...
Sriharsha Karanth's user avatar
0 votes
0 answers
16 views

Connection to DB is lost out 8-10 times when connecting through cypress for a test, Need help

I am writing a test in cypress where I hit an endpoint>it saves a token in DB(MySql)>I wrote a query to extract the token(in the test)>The use the token in the next API request and pass it in ...
ruffainn's user avatar
0 votes
0 answers
464 views

Issue connecting Cypress to Postgres database

I'm running into an issue connecting to the database using cypress-postgres. The server has multiple databases along with multiple schemas. I tried multiple plugins, but can't find a solution that ...
Michael J Frazier's user avatar
0 votes
0 answers
2k views

Cypress - Identify when page is fully loaded

I am new to Cypress, but wanted to capture the time from visiting a page, up until the page is fully rendered and available to use. I understand I can use the Window: load event to identify when the ...
Mike's user avatar
  • 1
0 votes
0 answers
3k views

Cypress catch and validate a redirect

We're creating E2E tests in Cypress. One of our tests shows a list of banks to which you can be redirected to complete a payment. After clicking a specific bank with the following code: cy.get('....
TimNode's user avatar
  • 111
-1 votes
1 answer
328 views

How to connect with Mysql db using Cypress 12?

I want to connect to Mysql DB in the server to delete several records. I have tried using some of the tutorials and answers available. Since all of them are regarding older versions of Cypress, I can'...
Syrus's user avatar
  • 1,197
-1 votes
1 answer
4k views

how to get list of files in a directory recursively in Cypress?

I wrote this code and it works fine, that is written in TypeScript. When I use the same code in the test file in Cypress I get error TypeError: fs.readdir is not a function import * as fs from 'fs' ...
RajKon's user avatar
  • 101
-2 votes
1 answer
509 views

What is the difference between the Selenium tool and the Cypress tool?

What is the difference between the Selenium tool and Cypress tool? How they both are works differently from each other?
sushen's user avatar
  • 100