Category "cypress"

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

Cypress tests against devtools port only

We use some third party enterprise software ("Container App"), which has an embedded Chromium browser, in which our webapp runs. We use Cypress to test our weba

Cypress - log response data from an request after a click()

Although I know this may not be considered as a best practice, but what I want to achieve is to silently delete a record from a database after the same was crea

ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is disabled in Cypress

After updating cypress to 8.6.0, the following error message started appearing when I run the test cases --headless. ERROR:gpu_init.cc(441)] Passthrough is not

Compare csv data with ui in Cypress

I need to implement following flow in Cypress: Download CSV file Read it and match it with data showed on UI How do I do this? CheckCSV() { cy.get("[selecto

select dropdownlist item using cypress

I need to test a dropdown on angularjs application using cypress. I would need to click on a dropdown and select or click an item from the dropdownlist. I trie

mocking server for SSR react app e2e tests with cypress.io

I'm building a single page web application (SPA) with server side rendering (SSR). We have a node backend API which is called both from the node server during

Cypress :: How to click on an image by selecting its alt value?

I need to select an image which is inside of a button. The problem is that there are six similar images and they do not have any unique identifier, except their

How to check if an element contains multiple items in Cypress.io

How can I check if an element contains multiple items in Cypress.io without replicating my code so much? Current Example: cy.get(".column") .children() .con

How to force fail a test in Cypress.io

In Cypress.io is there a way that I can force a test to fail if a certain condition is met? For example, on my webpage, if the string "Sorry, something went wro

How can I upload file to the field in cypress? But field's type is text

I used different ways. But can not handle. cy.get('#form-group-936cd4f5-19ab-4f3c-bfd9-563bf46212b3 > .fal') .click() .attachFile('files/