projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #10144
[arvados.git]
/
apps
/
workbench
/
test
/
diagnostics
/
pipeline_test.rb
diff --git
a/apps/workbench/test/diagnostics/pipeline_test.rb
b/apps/workbench/test/diagnostics/pipeline_test.rb
index e69f86dddd745929e5a0024d8e030fb0eaf1938e..f9e324ca41f84377cf9b4cb6bc284e58b3abebf2 100644
(file)
--- a/
apps/workbench/test/diagnostics/pipeline_test.rb
+++ b/
apps/workbench/test/diagnostics/pipeline_test.rb
@@
-1,33
+1,28
@@
require 'diagnostics_test_helper'
require 'diagnostics_test_helper'
-require 'selenium-webdriver'
-require 'headless'
class PipelineTest < DiagnosticsTest
class PipelineTest < DiagnosticsTest
- reset_api_fixtures :after_each_test, false
- reset_api_fixtures :after_suite, false
- reset_api_fixtures :before_suite, false
-
pipelines_to_test = Rails.configuration.pipelines_to_test.andand.keys
setup do
pipelines_to_test = Rails.configuration.pipelines_to_test.andand.keys
setup do
- headless = Headless.new
- headless.start
- Capybara.current_driver = :selenium
+ need_selenium 'to make websockets work'
end
pipelines_to_test.andand.each do |pipeline_to_test|
end
pipelines_to_test.andand.each do |pipeline_to_test|
- test "
visit home page for user
#{pipeline_to_test}" do
+ test "
run pipeline:
#{pipeline_to_test}" do
visit_page_with_token 'active'
pipeline_config = Rails.configuration.pipelines_to_test[pipeline_to_test]
# Search for tutorial template
visit_page_with_token 'active'
pipeline_config = Rails.configuration.pipelines_to_test[pipeline_to_test]
# Search for tutorial template
+ find '.navbar-fixed-top'
within('.navbar-fixed-top') do
page.find_field('search').set pipeline_config['template_uuid']
page.find('.glyphicon-search').click
end
# Run the pipeline
within('.navbar-fixed-top') do
page.find_field('search').set pipeline_config['template_uuid']
page.find('.glyphicon-search').click
end
# Run the pipeline
- find('a,button', text: 'Run').click
+ assert_triggers_dom_event 'shown.bs.modal' do
+ find('a,button', text: 'Run').click
+ end
# Choose project
within('.modal-dialog') do
# Choose project
within('.modal-dialog') do
@@
-44,6
+39,7
@@
class PipelineTest < DiagnosticsTest
wait_for_ajax
# All needed input are filled in. Run this pipeline now
wait_for_ajax
# All needed input are filled in. Run this pipeline now
+ find('a,button', text: 'Components').click
find('a,button', text: 'Run').click
# Pipeline is running. We have a "Stop" button instead now.
find('a,button', text: 'Run').click
# Pipeline is running. We have a "Stop" button instead now.
@@
-69,7
+65,9
@@
class PipelineTest < DiagnosticsTest
look_for_file = nil
end
look_for_file = nil
end
- inputs_needed[0].click
+ assert_triggers_dom_event 'shown.bs.modal' do
+ inputs_needed[0].click
+ end
within('.modal-dialog') do
if look_for_uuid
within('.modal-dialog') do
if look_for_uuid