Skip to main content

All Questions

0 votes
0 answers
37 views

Making Tests Independent of Database Changes

I am currently testing a web application with Cypress, and I have multiple databases for this application. However, I encounter test failures when switching between databases. Is there a solution to ...
mayssa cherif's user avatar
0 votes
0 answers
149 views

Mock firebase functions in cypress

I am using signInWithEmailAndPassword from firebase/auth to log in my users in my next.js app and I want to write a cypress test for my login page. I don't want to fire a login request to Firebase in ...
Hamza Boularbah's user avatar
0 votes
0 answers
226 views

Cypress Cucumber BDD steps are not linking with the step definitions on rider IDE

I'm writing tests on Cypress with Cucumber BDD. I'm using Rider as IDE. The problem is when I click on the steps it should go to the step definition of the test, but it doesn't. The tests run just ...
bmachine's user avatar
1 vote
1 answer
354 views

Cypress version 12 component test not working due to service dependency issues

I'm using Angular version 15 with Cypress version 12. I've made a basic example component in order to test the new Cypress component testing. But I seem to have issues as soon as I import services e.g....
AngularM's user avatar
  • 16.5k
0 votes
1 answer
695 views

Add query params to ALL requests in Cypress

I have a lot of Cypress tests that all need to have the same query param as I render the page slightly differently while running integration tests. Currently I am adding the query param each time I ...
JmJ's user avatar
  • 2,068
3 votes
2 answers
417 views

In Cypress, should assertions be kept within test blocks themselves, or should they be in helper functions/automation steps [closed]

I recently started working on Cypress and I see a lot of assertions inside of helper functions/automation steps, this seems to me like it would be a bit of an anti-pattern since it would repeat these ...
Jeff's user avatar
  • 43
0 votes
1 answer
290 views

Test Angular data binding with cypress

I've just started testing my Angular App and I need to check if some bound attributes contain what I want. Let's say I want to check this: <mat-table data-testid="table" [attr_t]="...
Alex Lu's user avatar
0 votes
1 answer
557 views

Prevent cypress type() from firing pointer/mouse events

Testing more complex behavior of user input involving keys with Cypress got me stuck. The app uses hotkeys to trigger operational modes and cannot afford to let random mouse/pointer events get fired ...
Jiří's user avatar
  • 485
4 votes
1 answer
2k views

Cypress multi reporters: using mochawesome with autoset-status-cypress-testrail-reporter

I need to use two reporters with my Cypress tests: mochawesome to generate html reports, and autoset-status-cypress-testrail-reporter to publish test results to Testrail. The main tool I could find ...
Diana Eftaiha's user avatar
0 votes
1 answer
2k views

Cypress TypeScript error : Cannot find module @angular/core for my react app

I'm trying to migrate to Cypress 10.7.0 from 9.70. However almost fixed all the bug but stuck here at strange message, which says @angular/core or its corresponding type declarations cannot be found. ...
Vin.AI's user avatar
  • 2,417
2 votes
0 answers
251 views

How to assert code format with Cypress inside a code editor

I must check if a block code inside a code editor is formatted in the UI of the application. The block code is received from a request and is already minified. When the Monaco editor instance is ...
jrltt's user avatar
  • 671
0 votes
2 answers
342 views

Testing workflow with Cypress and React

I have question regarding the development and testing workflow. I am using Cypress but this topic is suitable for any end to end test. The question is how do you selecting the elements in the browser? ...
Suborx's user avatar
  • 3,667
1 vote
1 answer
645 views

Not able to locate iframe using cypress

I am using cypress v5.4 to test braintree paypal dropin with test visa card but unable to locate into iframe. Since cypress doesn't provide a native way to deal with iframes hence I am creating a ...
user avatar
2 votes
1 answer
991 views

Cypress test fails on uncaught exception from my app - support/index.js is not working

This error is originationg from my app Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'links') But in my support/index.js I wrote import './commands' Cypress.on('...
Erenn's user avatar
  • 673
1 vote
1 answer
609 views

How to reload the first test case if it fails in cypress

Every feature test case starts with landing page testing in cypress. We are witnessing failures here because of network connectivity issues. it('should load home page', () => { cy.waitUntil(() =...
Mithun Shreevatsa's user avatar

15 30 50 per page
1
2 3 4 5
8