Category "cypress"

Cypress using actions from Pinia Vue3

I was learning some cypress from this video: https://www.youtube.com/watch?v=03kG2rdJYtc I'm interested with he's saying at 29:33: "programatic login" But he's

How to add types to Cypress.env?

I have this cypress.json config file: { "env": { "example": "Hello World!" } } In my tests: Cypress.env("example") Can I add any kind of type defintio

Cypress can't drag a custom angular cdkDragHandle

I'm losing sanity over this one. I have one drag and drop list in my app with a custom drag handle and cypress seems to be unable to drag it. Manually when the

How can I get Cypress to interact with the Material-UI Rating component?

I'm trying to use Cypress to test a form that includes the Material-UI Rating component, but I can't find a way to get it to select a rating. As a stripped down

I have an angular app and some elements can not find with cypress

enter image description hereI am using cypress to automate our angular app but it is not finding some elements which are under a special div it is behaving like

Cypress redirects randomly making test flaky

I have encountered a wierd redirect in my cypress tests that occur seemingly randomly and I would really appreciate some help on why this is happening. As you c

Warning messages after updating Cypress

Just updated Cypress through bash on Ubuntu 20.4 and command npx cypress open coused warnings: [3775:0903/175043.894504:WARNING:vaapi_wrapper.cc(588)] VAAPI vi

cypress test asserting a filtering operation on array of objects expecting undefined

I have a cypress test over an API. When I do cy.getUnits(u.email) I'm expecting a 200 OK response similar to this in the body of the response {   &ld

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-