Skip to main content

Questions tagged [cypress]

Cypress an all-in-one web testing framework and assertion library developed in JavaScript, complete with automatic waits, request mocking, and request stubbing.

cypress
0 votes
0 answers
14 views

Running into issues when using BrowserStack with BDD Cypress

I have configured my Cypress tests with BDD, which works fine on my local or remote machine, but when tried to integrate them with BrowserStack its running into issues and the problem seems to be, ...
0 votes
1 answer
16 views

Scrolling in the table component with Cypress

I'm working on automating some testing with Cypress inside of SAP Hybris. Basically, I'm at the part where a list of promotions is given in the form of a table. The task that Cypress has to manage is ...
0 votes
1 answer
19 views

Configuration composent testing Cypress with StencilJS? [closed]

how to configure component testing with Cypress in a project using the StencilJS framework? Cypress : v13 I was inspired by the configuration examples with the React and Angular framework, but ...
-1 votes
1 answer
40 views

no data in NYC .nyc_output/out.json = Angular18 + Cypress + Code Coverage

Minimum Reproducible Repo = https://github.com/david-kirkland/ng18-code-coverage I have started from scratch several times and cannot seem to get e2e test coverage using Angular 18, cypress, @cypress/...
-1 votes
2 answers
859 views

Cypress: Error: Getting ESOCKETTIMEDOUT when using cy.visit() [closed]

Brand new project. I am simply trying to access adobe.com but getting a ESOCKETTIMEDOUT error. Given this is a new project, I doubt anything is wrong with the code. I am on MACOS 12.6.1 Monterey with ...
1 vote
2 answers
2k views

CSS is not loading for Cypress component testing using angular [closed]

I am trying to do component testing using Cypress component test runner. The web components are built using stencil. We compile the stencil components and create respective "Angular component&...
19 votes
10 answers
28k views

What is the best practice of pass states between tests in Cypress

I want to pass/share data between each test. What is the best way to implement it in Cypress? For example: it('test 1'), () => { cy.wrap('one').as('a') const state1 = 'stat1' }) it('...
1 vote
3 answers
38 views

Cypress - Matching a query with a wildcard or regex

Consider the below code to intercept an API call. It checks if query parameter cliendId = 36. I want to make this code only consider the query param clientId and NOT its value of 36. So, I tried to ...
3 votes
2 answers
1k views

Click in Button until it disappears in Cypress [closed]

did a quite of reading but none of the things I tried worked.. I have a use case that is: I need to click in a button (lets say 10 times for example) to load more items in one page, but if we already ...
49 votes
7 answers
171k views

While running the script throws cannot find module 'dotenv'

While loading the .env file to pass env values to the getToken.js script in the cypress root folder throws Cannot find module 'dotenv'error. I have installed npm install dotenv. Could someone please ...
1 vote
2 answers
2k views

vue.js - how to stub/mock http request in cypress component test

I have a profile dialog, where it fetches the data of the current user: ProfileDialog.vue <template> <div> <dialog-base :save-button-action="save" :cancel-button-action="...
0 votes
0 answers
16 views

How to import storybook stories into cypress for component test with angular

I am trying to use storybook with cypress on an angular app for component testing .My need is to create stories for angular components and use them in cypress .In React we can use ComposeStories ...
1 vote
2 answers
7k views

"ResizeObserver loop completed with undelivered notifications" causing Cypress to crash in Edge only [closed]

I'm running Cypress to test my Vue 3 app. When running Cypress tests in Edge, I intermittently get the the error ResizeObserver loop completed with undelivered notifications., which because it's ...
18 votes
3 answers
25k views

Accessing aliases in Cypress with "this"

I'm trying to share values between my before and beforeEach hooks using aliases. It currently works if my value is a string but when the value is an object, the alias is only defined in the first test,...
1 vote
1 answer
32 views

Handling unavailable price element with another element

So, I've made this web scraping script for Cypress. It goes to a shop website and scrapes the listed products (product titles and prices). Namely, in the case of certain products, there is no price ...

15 30 50 per page
1
2 3 4 5
664