Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

317
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!