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

296
Views
how to change the test file run order in cypress in run time

I have 3 different test files

1- testfile-1.js 2- testfile-2.js 3- testfiles-3.js

i can change the test file running order using testfiles feature in cypress.config file but i want to change the order runtime not hard coded.

looking for the solution

Regards

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

0

Change the file name to something like this in case you don't want to use testFiles: [] in your cypress.config.

01-testfile.spec.js
02-testfile.spec.js
03-testfile.spec.js
about 4 years ago · Juan Pablo Isaza Report

0

You can comma-separate the file names on the command line,

yarn cypress run --spec "testfile-1.js,testfile-2.js,testfiles-3.js"

Not sure if that guarantees the order though.

If no luck with that, it would be possible to guarantee the order by running with a special script (but it's more work).

about 4 years ago · Juan Pablo Isaza Report

0

i found a way

{
"chromeWebSecurity": false,

}

paste this in cypress.json and it will allow the external iframes to work in cypress

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!