Category "cypress"

Cypress Windows - Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:209:20)

I have installed Cypress on my PC but when I try to use it at the end of test execution, it fails due to following error: Error: read ECONNRESET at TCP.onStream

Delaying Intercept responses in Cypress

I am writing cypress tests, and I want to test a feature of our program which will display data as it begins to appear. This could be a list with several hundre

Cypress: How to know if element is visible or not in using If condition and xpath?

Cypress: How to know if element is visible or not in using If condition? The answer of the above question works perfectly for CSS selectors. The answer is cy.ge

Cypress: How to know if element is visible or not in using If condition and xpath?

Cypress: How to know if element is visible or not in using If condition? The answer of the above question works perfectly for CSS selectors. The answer is cy.ge

How to open open card and verify the content inside then open the second card and verify the content and so on

I need to open the first card and verify that everything inside matches the hashtag 'Fashion' and then do the same for the next 3 cards and then press the 'next

Cypress: I want run tests in 100 spec files by login one time and persist login for every file. Is it possible?

I have almost 100 specs files including multiple tests. I want run all these specs files by login one time. I dont want my cypress should login process every ti

Cypress cache - server session expired

Can Cypress clear browser cookies/cache before each test? The problem I am experiencing is the first execution is ok, but the second fails due to the cache. I t

Cypress - if - else condition doesn't work

I need to automate an if/else condition with Cypress, but it doesn't work in my script. If an if element is present (or visible) then click Yes otherwise procee

How to send an email with test report in Cypress

I am trying to achieve the following: Create a simple test report with only names of tests and statuses (Fail/Pass) Send this report as basic HTML via email. To

How can I execute code before all tests suite with Cypress?

Basically, I want to login once before all my tests in all files are executed. Should I call my login command in each test file using the before hook or is ther

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