houston
houston copied to clipboard
Add tests
With Velocity/Jasmine
Login / Admin Creation
- [x] shows create admin screen when nobody is logged in and no admin
- [x] shows claim admin screen when somebody is logged in and no admin
- [x] can't access interesting pages if not admin
DB View
- [ ] test that collections show up in db_view with correct counts and links
- [ ] adding a doc to a collection updates the count
- [ ] removing a doc from a collection updates the count
- [ ] test for collections we've added manually
Side Nav
- [ ] test that collections show up in db_view with correct counts and links
- [ ] adding a doc to a collection updates the count
- [ ] removing a doc from a collection updates the count
- [ ] test for collections we've added manually
Collection View
- [ ] correct set of fields are picked
- [ ] documents show up in collection_view have correct links
- [ ] the correct count shows up at top of collection_view
- [ ] double-click editing works
- [ ] deleting in collection-view collection_view works
- [ ] adding a document in collection_view has the right fields
- [ ] adding a document in collection_view adds a new doc
- [ ] sorting works (up and down sort)
- [ ] pagination works - loads more as you scroll.
- [ ] custom action buttons work
Document View
- [ ] editing an item works
- [ ] deleting an item works
- [ ] breadcrumbs point to collection and db_view
- [ ] custom action buttons work
Custom Extra
- [ ] custom buttons get created, links are followed
Types
- [ ] types are identified correctly (number)
- [ ] types are saved correctly (string vs number)
@AlexeyMK can you think of any more things to test?
Looked through it. That is pretty comprehensive, actually.
Hey guys,
I see the issue is open so does that mean tests are still incomplete?
Are you planning to move the tests to velocity (https://github.com/xolvio/velocity)? If so, I would like to help out with that, in addition to finishing up the rest of the tests.
-Roger
Yeah, our tests are still incomplete, although we've made some progress recently. I haven't tried velocity yet, but since it's the official testing package, we should probably switch to it.
We could definitely use the help. Thanks!
@rzurawicki seeing how far we get in the velocity port today. you still around/have bandwidth to help?
I'll have more bandwidth these next two weekends.
Roger
On Wed, Nov 12, 2014 at 3:49 PM, Alexey Komissarouk [email protected] wrote:
@rzurawicki seeing how far we get in the velocity port today. you still around/have bandwidth to help?
Reply to this email directly or view it on GitHub: https://github.com/gterrono/houston/issues/53#issuecomment-62790702