'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.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source