Category "cypress"

Cypress custom command is not recognized when invoked

I've created the following custom command in my cypress/support/commands.js file. Cypress.Commands.add("login", (username, password) => { cy.request({

How to have Cypress go through every page on site to see if there are any console errors and if so, make it known to the user running the test

I want Cypress to go through every page to see on a website to see if there are any console errors and if so, make it known to the user running the test. (I'm t

How to verify Image is visible/exists on front end using <img src> or <a href> tag

Does anyone know how I can verify if an image exists using its <a href> or <img src>? I can only verify by its class such as: it('Verifying vertical

Cypress doesn't take screenshots in CLI mode

I'm trying to take a simple screenshot using Cypress, however, it only works in the Cypress GUI (cypress open). Whenever I run cypress run, it shows that the te

Testing monaco-editor with Cypress

Above is the hierachy of dom nodes rendered by Monaco Editor. There is a textarea node rendered, but that does not allow modification of existing content. E

How to solve "Error: Timed out while connecting to server" using ethereal email in Cypress

I am testing my project using Cypress, and to receive emails (on registering as a new user for example) I use ethereal email. The tests used to work fine before

How to test quasar component with cypressjs?

I use quasar to build my webapp and I have question regarding testing components with CypressJS. I am using https://quasar.dev/vue-components/select#Example--Ge

Unable to load a specific URL with Cypress

I’m unable to load the following URL with Cypress. Getting timeout error. I have set the page load time to 2 mins, still same issue. General URLs eg. (htt

How to choose time of hold-click on button on Cypress?

I need to press on the button and hold it for about 10 sec. How can I do this? I used this construction, but it doesn't work as I need: button1.eq(2).click({ re

Is it possible to run Cypress tests using AWS assumerole?

I have created some Automated Tests to test a public facing API endpoint. There is a Test Data Creation step which runs and creates data directly in our AWS env

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