Category "cypress"

Cypress : Still waiting to connect to Chrome, retrying in 1 second

Im trying to run cypress but i have this error message "Still waiting to connect to Chrome, retrying in 1 second" Cypress version 9.5.3 Chrome version 99.0.4844

Is there a way to "force" a visit?

I'm using the cy.visit() command but the website i'm visiting (which i don't own) doesn't always fire the load event, although the content itself that i need fo

How to use --spec flag in env when using cypress

I can start my cypress tests using: docker run -it --env-file=.env -v $PWD:/e2e -w /e2e/cypress cypress/included:9.6.0 --spec cypress/integration/test/**/*-spec

How to generate only test coverage from a specific folder with tests in Cypress

I was reading Cypress docs and noticed that Cypress can generate index.html file inside coverage/lcov-report/index.html. That file contains the information abou

Getting ECONNREFUSED when setting the --record flag for Cypress test

We've got Cypress Dashboard running for some of our tests. I'm looking to expand that into some new tests, and have been trying to run it locally to confirm it'

Javascript: Cypress: select sample with not contain value

I want to select a random value from a dropdown, with the restriction that a specific value should not be selected. const initialOrderReason = cy.xpath("//t

Continue running scripts even after exit code 1

I'm trying to run Cypress test in Gitlab. Below is the sample script. After executing 'npm run Cypress', if there is any test case fail, it exits with 'exit cod

How to get forget password link using cypress-gmail-tester

I am able to check Gmail is sent to the user, but I want to get forget password link from the received email and visit it using cypress-Gmail-tester. I am worki

Cypress doesn't run after upgradinig

I had Cypress package version: 7.1.0. I tried to upgrade version: 9.6.1. Got following error and npx cypress open is giving error. Need suggestion please. PS C:

cy.get div that hasn't got a display: none on it

I'm working on some poor code, that someone else has written. I'm trying to write some tests for the functionality, before we're changing it, so we can ensure i

Visiting a Url in cypress

I have a deployed application. when i open the url the website opens just fine. when i try to test it using cypress i become cy.visit() failed trying to load:

How to click on a button within a specific div based on button text?

In a Cypress test, I am trying to click a specific button nested inside a div, based on it's text. Below is the HTML code I am testing: <div class="mat-menu-

Mocking server side requests for end to end testing by cypress

I am using Cypress for end to end tests. To test my payment process I need to mock the request of my back end(express) to bank for transaction. So when the cypr

How to freeze request to test that components are disabled using Cypress?

I'm using VueJS and Cypress to test the app e2e. I have a modal where user fills a form and click on the "send" button. When user clicks on that button, we disa

Conditional testing in Cypress - check if cy.xpath-element has class value

What I want to do: I want to click a button. Then some element expands, and the button class name is changing. I only want to expand the element if not done yet

Cypress: click and drag an image? mousedown & mousemove not working

I'm trying to test a gallery for the first time with Cypress but I'm having trouble trying to get the mouse events to work: cy.get("img#front").should("be.vis

JSESSIONID cookie not preserved using Cypress

We are currently logging into our application using the cy.request() method and here the JSESSIONID cookie is set. After that we do various other requests also

Cypress - Unable to get the Response Headers - API Automation

I have an API automation test suite using Cypress and one of the issue I am facing in one of the test is to validate the response headers. For some reason, I am

Not able to click on a button inside iframe using cypress

Not able to click on the button inside iframe using cypress HTML <button class="MuiButtonBase-root MuiCardActionArea-root jss9" tabindex="0" type="button">

ReferenceError: context is not defined when using cypress with testing-library.com

Here's my test in ./tests/homepage.test.js context('Signup flow', () => { it('The happy path should work', () => { cy.visit('https://grazily.c