cy.readFIle() is making freeze the terminal
# i-need-help
r
I am trying to use the cy.readFile() to check that after a click on a button the file is downloaded correctly. So I'm using cy.readFile(pathFile) to check only the existance. The issue is that the file is downloaded in 10 secs, but the run takes all the 30 sec of the timeout, then the console prints me the name of the feature file in red, as per the test is failing. But then the terminal just stays frozen, nothing happen until I kill it manually. Reading online seems that the freeze is due to the size of the file, but this is not my case, since my downloaded file is like 2kB. Please send help