Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

318
Vistas
I got an error while using cy.origin() and trying to execute any command on the new context

I've been trying to use cy.origin() to access a new origin in the same test, and I'm being able to! However once inside I'm getting this error. Also I do have the Cypress.on('uncaught:exception') under support > commands.js

Cypress.on('uncaught:exception', (err, runnable) => {
  return false
})

Any clue?

beforeEach(() => {
    cy.clearCookies();
    cy.visit('/');
});

  it.only("User is able to create a proposal", () => {
    sis.openAccount();
    sis.createProposal();
    cy.wait(35000);
    cy.origin(ENVS_URL, () => {
      cy.visit(ENVS_PATH);
      cy.url().should("contain", ENVS_PATH);
      cy.get('iframes-container').find('#propprefs > div > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div > span.left')  
//It fails here, even if I do a simple cy.wait().
    });
  });

error

Ignore how the get is written, it is just a random example for the post.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

since cypress v10.1.0 you can just set experimentalSessionAndOrigin: true inside the cypress.config.js file.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda