projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
13111: Merge branch 'master' into 12308-go-fuse
[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..18973dbeee72fbff920a0ae9cd516e85555509fb 100644
(file)
--- a/
apps/workbench/test/integration/smoke_test.rb
+++ b/
apps/workbench/test/integration/smoke_test.rb
@@
-1,9
+1,13
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
require 'integration_helper'
require 'uri'
class SmokeTest < ActionDispatch::IntegrationTest
setup do
require 'integration_helper'
require 'uri'
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
+20,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
@@
-40,4
+47,10
@@
class SmokeTest < ActionDispatch::IntegrationTest
# urls += all_links_in('body')
end
end
# urls += all_links_in('body')
end
end
+
+ test "mithril test page" do
+ visit page_with_token('active_trustedclient', '/tests/mithril')
+ assert_visit_success
+ assert_selector 'p', text: 'mithril is working'
+ end
end
end