projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '4523-owner_uuid-index' refs #4523
[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 95396c2b91f88af97da24bf8bfeb76685a986330..fbc144a996c8993d966179f790e646f7cbdbd8b9 100644
(file)
--- a/
apps/workbench/test/diagnostics/pipeline_test.rb
+++ b/
apps/workbench/test/diagnostics/pipeline_test.rb
@@
-3,18
+3,18
@@
require 'selenium-webdriver'
require 'headless'
class PipelineTest < DiagnosticsTest
require 'headless'
class PipelineTest < DiagnosticsTest
- pipelines_to_
run = Rails.configuration.diagnostics_testing_pipeline_fields
.andand.keys
+ pipelines_to_
test = Rails.configuration.pipelines_to_test
.andand.keys
setup do
setup do
-
#
headless = Headless.new
-
#
headless.start
+ headless = Headless.new
+ headless.start
Capybara.current_driver = :selenium
end
Capybara.current_driver = :selenium
end
- pipelines_to_
run.andand.each do |pipeline_to_run
|
- test "visit home page for user #{pipeline_to_
run
}" do
+ pipelines_to_
test.andand.each do |pipeline_to_test
|
+ test "visit home page for user #{pipeline_to_
test
}" do
visit_page_with_token 'active'
visit_page_with_token 'active'
- pipeline_config = Rails.configuration.
diagnostics_testing_pipeline_fields[pipeline_to_run
]
+ pipeline_config = Rails.configuration.
pipelines_to_test[pipeline_to_test
]
# Search for tutorial template
within('.navbar-fixed-top') do
# Search for tutorial template
within('.navbar-fixed-top') do
@@
-43,7
+43,7
@@
class PipelineTest < DiagnosticsTest
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.
- page.assert_selector 'a,button', text: '
Stop
'
+ page.assert_selector 'a,button', text: '
Pause
'
# Wait for pipeline run to complete
wait_until_page_has 'Complete', pipeline_config['max_wait_seconds']
# Wait for pipeline run to complete
wait_until_page_has 'Complete', pipeline_config['max_wait_seconds']
@@
-75,7
+75,7
@@
class PipelineTest < DiagnosticsTest
page.all('.selectable').first.click
wait_for_ajax
page.all('.selectable').first.click
wait_for_ajax
- #
it appears that ajax reload is wiping out input selection after search results; so, select one more time
.
+ #
ajax reload is wiping out input selection after search results; so, select again
.
page.all('.selectable').first.click
wait_for_ajax
page.all('.selectable').first.click
wait_for_ajax