Category "cypress"

Compare csv data with ui in Cypress

I need to implement following flow in Cypress: Download CSV file Read it and match it with data showed on UI How do I do this? CheckCSV() { cy.get("[selecto

select dropdownlist item using cypress

I need to test a dropdown on angularjs application using cypress. I would need to click on a dropdown and select or click an item from the dropdownlist. I trie

mocking server for SSR react app e2e tests with cypress.io

I'm building a single page web application (SPA) with server side rendering (SSR). We have a node backend API which is called both from the node server during

Cypress :: How to click on an image by selecting its alt value?

I need to select an image which is inside of a button. The problem is that there are six similar images and they do not have any unique identifier, except their

How to check if an element contains multiple items in Cypress.io

How can I check if an element contains multiple items in Cypress.io without replicating my code so much? Current Example: cy.get(".column") .children() .con

How to force fail a test in Cypress.io

In Cypress.io is there a way that I can force a test to fail if a certain condition is met? For example, on my webpage, if the string "Sorry, something went wro

How can I upload file to the field in cypress? But field's type is text

I used different ways. But can not handle. cy.get('#form-group-936cd4f5-19ab-4f3c-bfd9-563bf46212b3 > .fal') .click() .attachFile('files/

Click an exact match text in Cypress

In Cypress, .contains command yields all matching elements, so for clicking in a dropdown item with a text on it, .contains works fine. But I'm facing the probl

Cypress test not finding element when ran in Gitlab CI

I'm using Cypress for automated testing. An app built in React with Next.js The tests pass locally with cypress open and cypress run but fail within GitLab CI.

Is there a way to add cypress test steps execution information into allure report?

I'm trying to add test step information into an allure report, i use cypress and generate report with allure, report are correctly generate but no details appea

Cypress: how to drag an element towards another dynamic element

In cypress I'm trying to drag one element towards another element? How can I do that? It should look something like this cy.('@firstElememt').trigger('drag').to

Running a command cy.exec('npm run sfdx:latest-leads') will change the json file format

Current behavior I'm currently working on a project where I set up a command in my package.json. As soon as I run that command through a cypress file, it seems

Running a command cy.exec('npm run sfdx:latest-leads') will change the json file format

Current behavior I'm currently working on a project where I set up a command in my package.json. As soon as I run that command through a cypress file, it seems

Bitbucket Pipelines hangs when testing a Nuxt app with Cypress

I have a Nuxt app that I want to test with Cypress in CI. I've seen in the Cypress documentation that you have to install some third-party package to wait for t

How do I add and use Chrome Extensions with Cypress.io?

I'm currently dealing with a an X-Frame-Options issue being blocked when running my Cypress.io tests. I cannot change the server setup to modify the X-Frame se

How to send GraphQLrequest using Cypress

I wonder if there is a way to send GraphQL mutations using Cypress? There is cy.intercept() but this is more for waiting for responses.

Disable Cypress from automatic scrolling

I am testing my application where I have very long side menu and I have a code like that: cy.get('tab').click({force: true}) The automatic scroll happens betwe

Cypress task fails and complains that task event has not been registered in the plugins file

I am using the cypress cy.task() method/ function to copy a csv file from one directory to another directory. Below is my cy.task('copycsvFile') and relevant co

How do I select the right elements with querySelectorAll as I do by using the Chrome developers console?

I'm currently using cypress to test salesforce, and I'm running into a certain circumstance where I don't know the Party record ID that will create it within th

How do I select the right elements with querySelectorAll as I do by using the Chrome developers console?

I'm currently using cypress to test salesforce, and I'm running into a certain circumstance where I don't know the Party record ID that will create it within th