ember-hoodie icon indicating copy to clipboard operation
ember-hoodie copied to clipboard

Add tests

Open courajs opened this issue 8 years ago • 3 comments

Let's add some acceptance tests to make sure bindings update automatically

  • sign in/sign out
  • adding records
  • updating records
  • etc

courajs avatar Jul 13 '16 20:07 courajs

I’ll try to create a dummy app and acceptance tests

gr2m avatar Jul 13 '16 21:07 gr2m

A few issues have popped up while trying to add tests, mostly around persistent state. For example, testing user sign up can only run once right now, breaking ember test --server. We can add a teardown to destroy the account. Or check during setup for existence of the account and destroy it there. It's also sometimes the case that localStorage contains an invalid auth token from a previous run, and that needs to be cleared. It feels like we need some sort of "wipe hoodie" action we could do before each test.

courajs avatar Aug 13 '16 18:08 courajs

It feels like we need some sort of "wipe hoodie" action we could do before each test.

I’ll look into it! For the time being, localStorage.clear() and page reload should do the trick, can you give it a try? I’m traveling right now, but will be back to work Monday afternoon

gr2m avatar Aug 14 '16 00:08 gr2m