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

210
Views
Cypress.io is executing commented code lines

I have updated my cypress version to new version V 10.0.3 and it is running commented code lines in the test case.

below is the test case I have written and the commented lines are also included.

 it.only('Check the item upload file validations', () => {
    //cy.get('[icon="fa fa-cloud-upload"]').click();
    // cy.get('#itemListController')
    //     .attachFile('itemfile.xlsx');
    //     cy.get('.p-float-label > [type="submit"]').click()
})

This is cypress excuting it in the browser

Cypress executing commented code

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

First exit from the tests, close the test runner. Make changes and save it. The again start executing the tests from scratch. If you want your changes to be visible on the go, add this to your cypress config file -

watchForFileChanges: true
about 4 years ago · Juan Pablo Isaza Report

0

your answer worked @Alapan Das , I noticed that cypress have left Integration folder of previous cypress version and created e2e folder with same changes of previous integration folder.

I was working with integration folder which they mentioned they are migrating in the new version installation, but it was left behind by them for one test .js file it seems for the file i was working on.

test runner was running the e2e folder test.js file even if i was making changes for the integration folder test.js file through the test runner.

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!