projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45008f2
)
2872: Fix test for new nav.
author
Tom Clegg <tom@curoverse.com>
Mon, 9 Jun 2014 01:38:54 +0000
(21:38 -0400)
committer
Tom Clegg <tom@curoverse.com>
Mon, 9 Jun 2014 01:38:54 +0000
(21:38 -0400)
apps/workbench/test/integration/smoke_test.rb
patch
|
blob
|
history
diff --git
a/apps/workbench/test/integration/smoke_test.rb
b/apps/workbench/test/integration/smoke_test.rb
index 729345673e74c9939d2e78a3460454c4519980bf..efaea00b01c42ff4a06734e07be8505cf28125f4 100644
(file)
--- a/
apps/workbench/test/integration/smoke_test.rb
+++ b/
apps/workbench/test/integration/smoke_test.rb
@@
-13,7
+13,7
@@
class SmokeTest < ActionDispatch::IntegrationTest
end
def all_links_in(find_spec, text_regexp=//)
-
find(find_spec).all('
a').collect { |tag|
+
all(find_spec + '
a').collect { |tag|
if tag[:href].nil? or tag[:href].empty? or (tag.text !~ text_regexp)
nil
else
@@
-26,7
+26,7
@@
class SmokeTest < ActionDispatch::IntegrationTest
test "all first-level links succeed" do
visit page_with_token('active_trustedclient', '/')
assert_visit_success
- click_link '
user
-menu'
+ click_link '
notifications
-menu'
urls = [all_links_in('nav'),
all_links_in('.navbar', /^Manage /)].flatten
seen_urls = ['/']