Category "cypress"

What is the difference between import and cy.fixture in Cypress tests?

I'm learning cypress and I don't understand what differs from import file from '../fixtures/filepath/file.json' a fixture file and calling cy.fixture(file), and

Cypress Security Error. Can only call open() on same-origin documents

I'm learning Cypress and decided to test a 3d party website as a practice. This 3dparty website uses subdomains. (ex catalog.main.com, cart.main.com, news.main.

Cypress: How to properly close a mat-select

So I'm using Cypress for testing our Angular application, but for some reason I always have an issue with closing mat-select components which are multiselect. H

How can I hover over an element then click

I want to hover over the "My Account" button and the click the "Login" button opened popup. I have tried the below code but it did not work. Does anyone know a

Integrating Cypress within TestRail

I've been trying to have my Cypress tests uploaded to their matching TestRail testcases, but so far it's not working. Here's my current setup: I have install

Is there any way to run cypress open and only include test files containing a key word? eg. lifecycle from domains-lifecycle.spec.jsx

I have a fairly large library of test files in my project (roughly 80) and I have them named with keywords ex. "create" "Edit" and "lifecycle". I want to be abl

Docker-compose exit code is 137 when there is no OOM exception

When I run the following command, I expect the exit code to be 0 since my combined container runs a test that successfully exits with an exit code of 0. docker

Cypress visit uncaught reference

I'm trying to load "https://www.easports.com/fifa/ultimate-team/web-app/". When the URL is loaded, I see Uncaught ReferenceError: data is not defined". Is th

Connection to SQL DB with Cypress

I'm trying to connect with SQL db using cypress followed the NPM guide . All the dependencies are exactly as mentioned but on running this cy.sqlServer('SELECT

Connection to SQL DB with Cypress

I'm trying to connect with SQL db using cypress followed the NPM guide . All the dependencies are exactly as mentioned but on running this cy.sqlServer('SELECT

How to convert a canvas to a png file?

I want to convert a canvas to a png file and save it in order to do comparison tests with Cypress. The problem is that the file I create is empty. cy.get('#imgc

cy.url() and/or cy.location('href') does not return a string

I have an editor page. When I add any content and click the "Save" button my URL will change, adding a random id in the URL. I want to check if my ID's are chan

cy.url not returning a string as expected

Prior to switching to using a hash router, I had been implementing the cy.url command frequently to assure that links were navigating to the right URL addresses

Cypress.io: Is is possible to set global variables in Cypress and if yes; how?

I am trying to set a global variable (NOT A GLOBAL ENV VARIABLE) in Cypress.io. I would like to abstract a url that I will use over and over again AND something

Selecting options from Mat-select using cypress

I have Mat-select dropdown as follows <mat-form-field> <mat-label>Gender</mat-label> <mat-select id="gender" required formContro