Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

154
Visualizações
Cypress API calls are not triggered for button event, multiple containers

Cypress not catching click event triggered hence API end points are not called for multiple containers.

It’s very difficult to explain issue, tried my best any hints are really appreciated.

I can’t share any application details.

I have a main UI application interacting with couple of backend components. API calls are made to endpoints with the same base URL but API containers are different based on component.

Manual Test steps;

  1. Visit application url In main UI click search link
  2. New tab/form (in same window) is opened which will interact with component 1
  3. New tab is a form, fill in details and click verify button
  4. 2 API calls are triggered 1 : button click event success for container 1 2: API call to container 2
  5. On successful 2 API call , page returns to main application page with search result details

In cypress runner for step 4 only 1 API call for container 1 is triggered with 200 success response. Unfortunately second API call for container 2 was not triggered.

Asked developers about this, suggestion was cypress is not catching triggers, container 2 is not reachable from container 1.

I am stuck here, not sure what to search for or ask developers. Anyone noticed similar issue?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Not knowing much I can read you this quote from cypress.io

"Can I test anchor links that open in a new tab? Cypress does not and may never have multi-tab support for various reasons. Luckily there are lots of clear and safe workarounds that enable you to test this behavior in your application."

Maybe this could help: https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/testing-dom__tab-handling-links

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda