Change directory in Cypress using cy.exec()

Viewed 265

Working with cypress to run a different folder's python script. but I guess the directory is not changing perfectly.

gotoPythonProject() {
 cy.exec("cd /Users/**/Desktop/project/");
 cy.exec("ls"); // which does not reflect the files of project that's been changed
 cy.reload();
}
0 Answers
Related