[ARVADOS] updated: 899075bc7866666322677b0dfb0b12844a495425
git at public.curoverse.com
git at public.curoverse.com
Fri Jun 6 14:31:34 EDT 2014
Summary of changes:
.../test/integration/pipeline_instances_test.rb | 42 ++++++++++++++++------
1 file changed, 31 insertions(+), 11 deletions(-)
via 899075bc7866666322677b0dfb0b12844a495425 (commit)
from 5ae6e2855194ecb5700e165b1d3796a385d4f507 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 899075bc7866666322677b0dfb0b12844a495425
Author: radhika <radhika at curoverse.com>
Date: Fri Jun 6 14:30:36 2014 -0400
2872: updated test to work with the new ui.
diff --git a/apps/workbench/test/integration/pipeline_instances_test.rb b/apps/workbench/test/integration/pipeline_instances_test.rb
index 031fb8f..84a4af8 100644
--- a/apps/workbench/test/integration/pipeline_instances_test.rb
+++ b/apps/workbench/test/integration/pipeline_instances_test.rb
@@ -20,6 +20,12 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
instance_page = current_path
+ find('button', text: 'Choose a folder...').click
+ within('.modal-dialog') do
+ find('.selectable', text: 'A Folder').click
+ find('button', text: 'Move').click
+ end
+
# Go over to the collections page and select something
visit '/collections'
within('tr', text: 'GNU_General_Public_License') do
@@ -27,18 +33,30 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
end
find('#persistent-selection-count').click
- # Go back to the pipeline instance page to use the new selection
- visit instance_page
+ # Add this collection to the folder
+ visit '/folders'
+ find('.arv-folder-list a,button', text: 'A Folder').click
+ find('.btn', text: 'Add data').click
+ find('span', text: 'foo_tag').click
+ within('.modal-dialog') do
+ find('.btn', text: 'Add').click
+ end
+
+ find('tr[data-kind="arvados#pipelineInstance"]', text: 'New pipeline instance').
+ find('a', text: 'Show').
+ click
- page.assert_selector 'a.disabled,button.disabled', text: 'Run'
assert find('p', text: 'Provide a value')
find('div.form-group', text: 'Foo/bar pair').
- find('a,input').
+ find('.btn', text: 'Choose').
click
- find('.editable-input select').click
- find('.editable-input').
- first(:option, 'b519d9cb706a29fc7ea24dbea2f05851+249025').click
+
+ within('.modal-dialog') do
+ find('span', text: 'foo_tag').click
+ find('button', text: 'OK').click
+ end
+
wait_for_ajax
# "Run" button is now enabled
@@ -50,11 +68,13 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
page.assert_selector 'a,button', text: 'Stop'
find('a,button', text: 'Stop').click
- # Pipeline is stopped. We have the option to resume it.
- page.assert_selector 'a,button', text: 'Run'
+ # Pipeline is stopped. It should now be in paused state.
+ assert page.has_text? 'Paused'
+ page.assert_selector 'a,button', text: 'Clone and edit'
# Go over to the graph tab
- click_link 'Graph'
- assert page.has_css? 'div#provenance_graph'
+# click_link 'Advanced'
+# click_link 'Graph'
+# assert page.has_css? 'div#provenance_graph'
end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list