All Questions
103
questions
0
votes
1
answer
36
views
Cypress - Office365 Redirect causes the test to hang on 'Tests are loading'
I am writing a test where user goes to the Settings page of our application, then clicks on 'Connect Calendar'. This opens a new tab and user is on a Cronofy connection page, then I click on 'Office ...
0
votes
2
answers
102
views
cypress tests. How to test deeplink [closed]
I have one issue with cypress test.
I have such test
const deeplinkUrl = 'https://deeplink.page.link/2WmRA4zbfUcQz5AY9';
describe('upload scan view', () => {
beforeEach(() => {
cy.visit('/...
1
vote
0
answers
414
views
Is there a way to throttle e2e tests (Cypress) by CPU and RAM? (i.e. throttle Chrome)
Writing e2e tests has a problem of potential test flakiness (i.e. tests that sometimes pass and sometimes fail, depending on connection speed, rendering speed, etc). A typical approach to detect flaky ...
0
votes
0
answers
266
views
Page load timeout after clicking login button in Cypress
I'm new to Cypress and trying to write E2E test of logging in to application. My test looks like this:
describe('my_test', () => {
it('login', () => {
cy.visit(Cypress.env('...
0
votes
0
answers
57
views
Implementing Cypress's Application Actions to Nuxt3
In this 2019 Cypress's blog post they recommend to move away from Page objects in favor of Application Actions. React is used in the post's example:
// app.jsx code
var model = new app.TodoModel('...
0
votes
2
answers
2k
views
How to scroll to the very top of the page in Cypress [duplicate]
I am trying to fetch an api and mock data with my own data on search. Below is my cypress code.
In my UI, there is a searchbox at the near top of the page below app header bar. The problem is after ...
2
votes
1
answer
575
views
Cypress intercept for dynamic pathParam in api and * functionality
I have few API's that i need to intercept.
'randomApi/import/entity'
'randomApi/import/entity/lead1/tabs'
'randomApi/import/entity/lead2/tabs'
lead1 and lead2 are values that are coming in the 1st ...
1
vote
0
answers
414
views
Cypress Before hook executing multiple times per test?
I'm doing some e2e testing with cypress and ran into an issue with before hooks. I am testing multiple pages with the same test but different variables. As such i have wrapped my tests within a ...
0
votes
1
answer
617
views
Cypress cy.visit() throws error in beforeEach() function
I have created a simple test spec, that contains a few smaller tests. Before each test, cypress has to visit the website that the tests are running on. Therefore, I added the beforeEach() funtion to ...
0
votes
2
answers
96
views
Run test for multiple accounts on different providers
I'm trying trying to set up an e2e test suite for cypress. The project I want to test is kind of like vercel. It has multiple git providers where you can login and host your code from that gitprovider....
2
votes
1
answer
219
views
Act when element exists, but don't fail when it doesn't (Cypress E2E tests)
I'm writing E2E tests in Cypress (version 12.3.0). I have a page with a table in a multi-step creation process that requires some data from back-end application. In some cases (rarely, but it occurs) ...
0
votes
1
answer
99
views
Can't fetch data from json server when try to testing e2e form login page - React typescript
I get an error when try to test login page
describe('Login form', () => {
beforeEach(() => {
cy.visit('/login', { timeout: 9000000000000 });
});
it('Should submit the form ...
0
votes
0
answers
131
views
How can I do e2e testing if I have passwordless sign up that sends OTP to the email?
I have a passwordless sign up flow which uses OTP code that is sent to users email.
Here is the function that handles the sign in/sign up:
// this verifies the OTP code
const handleSignInOTP = ...
1
vote
2
answers
451
views
How to click on a button in an element
I'm using Cypress for my tests:
This is my display. On this display I have 3 classes which have the same name.
And in this class all the ben logo have the same class name too.
How can I click on the &...
0
votes
0
answers
249
views
cant find elements in scroll table using cypress
Im using cypress to check my website and I have a scroll table with over 500 clickable elements ,
I tried to click on some elements in my scroll table but Im getting "detach from dom" error.
...