Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress stuck after clicking button -pleaese urgent #30557

Open
ruchamafr opened this issue Nov 6, 2024 · 0 comments
Open

Cypress stuck after clicking button -pleaese urgent #30557

ruchamafr opened this issue Nov 6, 2024 · 0 comments

Comments

@ruchamafr
Copy link

ruchamafr commented Nov 6, 2024

Current behavior

when clicking on button a post request occure but the post request not finish forever

Desired behavior

post request get 200 statuse code and response data {statusCode:0}

Test code to reproduce

 it("save form anonymous before send  ", () => {
    Cypress.on("uncaught:exception", (err, runnable) => {
      return false;
    });
    cy.visit( "https://govforms.gov.il/mw/forms/[email protected]#!simpleFields",{timeout: 20000});
 
    cy.get("#id-1-0-mobxReactForm").type("yyyy")
    cy.wait(200);
   
       cy.get('[data-testid="saveButton"]').click();
   
       cy.get('[data-testid="otp-register-selectOption"]')
         .eq(1)
         .check({ force: true });
    
     
  
       cy.get('[data-testid="otp-register-field-email"]')
         .type("[email protected]")
         .blur().then(exists => {

          **//here happens the post request"Register" that stuck and not get response data**

           cy.get('[data-testid="otp-register-continueButton"]').click().then(() => {
             cy.wait('@post') });;
         });
    
     })

Cypress Version

13.15.1

Node version

20

Operating System

windows 10

Debug Logs

No response

Other

No response

@ruchamafr ruchamafr changed the title Cypress stuck in post request andrequest not finish Cypress stuck in event of post request and post request not finish Nov 7, 2024
@ruchamafr ruchamafr changed the title Cypress stuck in event of post request and post request not finish Cypress stuck after clicking button and post request not finish Nov 17, 2024
@ruchamafr ruchamafr changed the title Cypress stuck after clicking button and post request not finish Cypress stuck after clicking button Nov 17, 2024
@ruchamafr ruchamafr changed the title Cypress stuck after clicking button Cypress stuck after clicking button -pleaese urgent Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant