projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into origin-8442-cwl-crunch2
[arvados.git]
/
apps
/
workbench
/
test
/
integration
/
smoke_test.rb
diff --git
a/apps/workbench/test/integration/smoke_test.rb
b/apps/workbench/test/integration/smoke_test.rb
index efaea00b01c42ff4a06734e07be8505cf28125f4..a626e242843262643768afdfbbd3ca813c698d8c 100644
(file)
--- a/
apps/workbench/test/integration/smoke_test.rb
+++ b/
apps/workbench/test/integration/smoke_test.rb
@@
-3,7
+3,7
@@
require 'uri'
class SmokeTest < ActionDispatch::IntegrationTest
setup do
class SmokeTest < ActionDispatch::IntegrationTest
setup do
- Capybara.current_driver = Capybara.javascript_driver
+ need_javascript
end
def assert_visit_success(allowed=[200])
end
def assert_visit_success(allowed=[200])
@@
-16,6
+16,9
@@
class SmokeTest < ActionDispatch::IntegrationTest
all(find_spec + ' a').collect { |tag|
if tag[:href].nil? or tag[:href].empty? or (tag.text !~ text_regexp)
nil
all(find_spec + ' a').collect { |tag|
if tag[:href].nil? or tag[:href].empty? or (tag.text !~ text_regexp)
nil
+ elsif tag[:'data-remote']
+ # these don't necessarily work with format=html
+ nil
else
url = URI(tag[:href])
url.host.nil? ? url.path : nil
else
url = URI(tag[:href])
url.host.nil? ? url.path : nil