In any case, I used the testFiles config in cypress.json to set the spec file run order: You can use your file names. Only the files will be shown in cypress runner which you will define here "New_Api" is a Sub-folder in integration folder. All other are spec files. { "baseUrl" : "https://exapmle.com" , "testFiles" : [ "New_Api/*" , "Add_Product.spec.js" , "Add_Client.spec.js" , "Seller.spec.js" , "Deal_Status.spec.js" , "Buyer_Offer.spec.js" , "Buyer_2.spec.js" , "Deal_Status.spec.js" ], }
Cypress Automation Solution website is to post the issues and their best solutions to the Cypress Automation Community.