Category "cypress"

How can I save API response body or property in an environment variable or json to use it later in other requests in Cypress

API runs locally(and in future in a circleCI container) so I don't need to stub responses, only real requests and real responses. When I send a POST request, it

Cypress add delay to API call

I'm trying to test for a bug caused by a race condition based on which of two API calls returns first. To do this, I'd like to create a Cypress test that adds s

Cypress failed to make a connection to the Chrome DevTools Protocol: ECONNREFUSED at TCPConnectWrap.afterConnect

I'm simply trying to run some of the tests in the example folder under Integration and it will not run on Chrome. Runs on Electron and Edge but refuses to run o

Perform Drag&Drop with Cypress

I've tried for some days to perform an e2e test that performs a Drag&Drop event in Selenium, and after several ways to resolve this, someone told me about C

How do I wait for an element to disappear in Cypress?

I'd like to preface this by saying that I really tried looking here and anywhere else for an answer but without a succes. Here is the problem: I'm trying to aut

Test angular component @Output using Storybook and Cypress

I am trying to test the output of an angular component. I have a checkbox component that output its value using an EventEmitter. The checkbox component is wrapp

Cypress - How can I check Google Events fired before the new page loads

This is the scenario: User accesses index.com Clicks the X button A Google Analytic event is fired here <-- I want to check this event User is redirected to

Setting global variables, functions in cypress

I wonder if its possible to set up for example variable with function for login on global level in cypress. So I could for example on start of every test write

How to test 'HOVER' using Cypress(.trigger('mouseover') doesn't work)

I wonder if it's possible to test coverable dropdown menu bar using Cypress. For example, when you go to Ebay(https://www.ebay.com), you'll see the alert icon a

Creating a variable in a Cypress test to store text on a page in order to compare it against text on a different page

I'm trying to create a variable in my cypress test that will allow me to store info from one web page for when I click a link and leave the page. I want to comp

Search for matches in an array of objects. JS

I have the following response from the server. I need to search this answer and compare it in turn with each field. Example: My task is that I know for sure tha

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