houston icon indicating copy to clipboard operation
houston copied to clipboard

Add tests

Open gterrono opened this issue 10 years ago • 6 comments

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)

gterrono avatar Nov 27 '13 08:11 gterrono

@AlexeyMK can you think of any more things to test?

gterrono avatar Dec 01 '13 21:12 gterrono

Looked through it. That is pretty comprehensive, actually.

AlexeyMK avatar Dec 02 '13 05:12 AlexeyMK

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

zurawiki avatar Jul 22 '14 09:07 zurawiki

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!

gterrono avatar Jul 22 '14 18:07 gterrono

@rzurawicki seeing how far we get in the velocity port today. you still around/have bandwidth to help?

AlexeyMK avatar Nov 12 '14 20:11 AlexeyMK

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

zurawiki avatar Nov 12 '14 21:11 zurawiki