stevegrossi / habits

An Elixir/Phoenix app for tracking daily habits, ready to deploy to Heroku.
62 stars 7 forks source link

Add acceptance tests for the entire app #17

Closed stevegrossi closed 7 years ago

stevegrossi commented 7 years ago
stevegrossi commented 7 years ago

So, the problem I'm trying to solve now is that all of my acceptance tests pass when run individually, but when I run mix test test/acceptance they throw JS errors (like Possible Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'this.state.habits.filter')) and fail. Clearly, these tests are stepping on each others' toes, but

stevegrossi commented 7 years ago

I've asked for help in the Elixir Forum: https://elixirforum.com/t/wallaby-acceptance-tests-pass-individually-fail-when-run-together/6713 🤞

stevegrossi commented 7 years ago

I believe the persistence of the token in localstorage across PhantomJS sessions may be a bug in Wallaby. I was able to reproduce it in a sample application and I opened an issue in the Wallaby repo: https://github.com/keathley/wallaby/issues/274