kentcdodds/testing-workshop

Calculator configuration could not pass test with cypress run

weiklr opened this issue · 3 comments

Hi Kent,

I couldn't get the calculator test to pass when running with cypress run.
It fails with the error: "Error: Unable to find an element with the text: /^1$/."

When I look at the screen shots, it was showing a list of files in dist folder instead of the calculator app and hence the error message.

To fix this, I updated the start command in other/configuration/calculator/package.json to:

scripts:{
"start": "serve --port 8080"
}

Thanks for the tip! Would you like to make a PR for this?

This should be closed.