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

94
Visualizações
How to handle if we are using two different urls in one cypress test

I have a requirement where I need to visit the first URL(ex-www.example.com) and do some AWS operations like verifying the file in AWS S3. After completing all the operations, it should go to the second URL(ex-www.example1.com) in the same test. Need a solution for this?

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

0

You will have to run them separately for this to work.

  it("Test", function () {
    cy.visit('ex-www.example.com');
    aws operations here

  });

  it("Test", function () {
    cy.visit('ex-www.example1.com');
  });

If you try this:

  it("Full Happy Test", function () {
    cy.visit('ex-www.example.com');
    aws operations here
    cy.visit('ex-www.example1.com');

  });

You will get this error:

"cy.visit() failed because you are attempting to visit a URL that is of a 
different origin."
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