Category "cypress"

Is there a possibility to block network requests in Cypress?

we have multiple API requests on our page. When a call fails, certain behavior is expected. Is there a possibility of how to block a network request in Cypress?

Cypress Using security certificate in automation with cypress

With cypress I need to automate an application that currently uses a security certificate, I've never automated it this way. When I go to run cypress calling th

Is there a way to integrate Cypress reporter with "report portal" and "mochawesome"

I am trying to integrate cypress resporting with report portal and mochawaesome. The goal is to get both reports. I have tried this in the cypress.json "repor

Cypress - iframes - Unable to target second field, the test hangs then times out

I'm coming across an issue where once my test card number is typed into the first iframe the test tries to target the 2nd iframe (CVC) & it times out whilst

can't move a Slider <input type="range"> with Cypress using arrowKeys

I'm trying to implement some tests here and can't apply my logic to the input range of this website: https://the-internet.herokuapp.com/horizontal_slider here m

How to work on random pop ups in cypress?

I have an application, where feedback pop up comes in a page randomly; like pop up may or may not come in the page after loading it for nearly 3000ms. How to ha

select react-select dropdown list option using cypress

Does anyone know how to select an option from a react-select dropdown list in a cypress test? I have tried lots of stuff but to no avail. Seems that react-sel

Cypress: How to scroll AG-Grid Table

I would like to scroll to a specific column in the AG-Grid table Ag-Grid table. The cypress command scrollTo() doesn't work for me for this kind of tables. Do y

Cypress run on Gitlab CI/CD always failed but work properly on local run using Chrome image & node

I have configured my cypress test in the GitLab CI/CD pipeline, However, in my local environment, it runs perfectly with no errors, however, when the pipeline j

Changing tabs in Angular Material using Cypress

I have an Angular Material tab group on my page. I have to test changing of tabs using Cypress. When the page loads the user is on the Basic Information tab, I

Cypress environment variable undefined

In cypress.json file i have the following code { "baseUrl": "test", "ignoreTestFiles": [], "viewportHeight": 768, "viewportWidth": 1024, "video": fals

How can I save part of a string in an alias using Cypress?

I'm trying to save just a number from a string I get from a paragraph but when I try to asign an alias to it and then check the value it returns undefined. I've

Cypress environment variable undefined

In cypress.json file i have the following code { "baseUrl": "test", "ignoreTestFiles": [], "viewportHeight": 768, "viewportWidth": 1024, "video": fals

How can I save part of a string in an alias using Cypress?

I'm trying to save just a number from a string I get from a paragraph but when I try to asign an alias to it and then check the value it returns undefined. I've

Running a simple test on cypress-ct

I'm trying to use cypress-ct to test react components. I have the following code in App.js import {mount} from '@cypress/react' import App from './App' it('wo

Stub "new Date()" with Cypress

In my tests, "new Date()" returns the current date, but I want it return a constant object. But I don't know how to stub this. Example of what I would like : cy

Cypress xpath click a drop-down menu and click wi

enter image description hereI have the xpath module insatlled and I try to do the following operations: Click on an expandable option (type div); After that cli

Cypress not loading page headless after click login button

when i run my script headless seems not load the next page, the video recorded after execute it, shows the following: enter image description here and fails aft

BeforeEach step is repeated with cy.session using cypress-cucumber-preprocessor

I have a Cypress project where I use the Cypress session API to maintain a session throughout features. Now I try switching from the deprecated Klaveness Cypres

Why wont my if statements work in cypress?

I'm trying to write a test that goes back in a calendar to look for a specific date to click. I have come up with an IF statement that should loop to the next m