Skip to content
Browse files

Basic e2e scenario for document show page.

  • Loading branch information...
1 parent eaa41b0 commit 7f318e947b648a08c06230d5b58505e0097ef21d @lucassus committed Jan 14, 2013
View
4 public/ng/templates/documents/show.html
@@ -1,3 +1,7 @@
+<header>
+ <h2>Document {{document.id}}</h2>
+</header>
+
<table class="table table-striped table-hover documents">
<tbody>
<tr class="document">
View
2 spec/javascripts/e2e/document_show_scenario.js.coffee
@@ -5,5 +5,7 @@ describe "documents list page", ->
element("table.databases tbody tr a:contains('first_database')").click()
element("table.collections tbody tr a:contains('first_collection')").click()
+ element("table.documents tbody tr:first td span.id a").click()
it "shows the document page", ->
+ expect(browser().location().url()).toMatch(/\/databases\/first_database\/collections\/first_collection\/documents\/.+/)

0 comments on commit 7f318e9

Please sign in to comment.
Something went wrong with that request. Please try again.