[ARVADOS] updated: cb8407c0cc09b4ad6ac8b0d9e808d14fb8da3084
Git user
git at public.curoverse.com
Tue Apr 11 10:40:57 EDT 2017
Summary of changes:
apps/workbench/test/integration/collection_upload_test.rb | 15 +++++++++++++++
1 file changed, 15 insertions(+)
via cb8407c0cc09b4ad6ac8b0d9e808d14fb8da3084 (commit)
from 96facc8c94c8f2d59d05c64ca3aa845fae59e554 (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 cb8407c0cc09b4ad6ac8b0d9e808d14fb8da3084
Author: radhika <radhika at curoverse.com>
Date: Tue Apr 11 10:39:47 2017 -0400
11365: collection_upload_test updated to click on "unlock" button before attempting to access the upload tab.
diff --git a/apps/workbench/test/integration/collection_upload_test.rb b/apps/workbench/test/integration/collection_upload_test.rb
index 903df90..84e3286 100644
--- a/apps/workbench/test/integration/collection_upload_test.rb
+++ b/apps/workbench/test/integration/collection_upload_test.rb
@@ -41,6 +41,11 @@ class CollectionUploadTest < ActionDispatch::IntegrationTest
test "Upload two empty files with the same name" do
need_selenium "to make file uploads work"
visit page_with_token 'active', sandbox_path
+
+ # unlock before uploading files
+ first('.lock-collection-btn').click
+ page.driver.browser.switch_to.alert.accept
+
find('.nav-tabs a', text: 'Upload').click
attach_file 'file_selector', testfile_path('empty.txt')
assert_selector 'div', text: 'empty.txt'
@@ -55,6 +60,11 @@ class CollectionUploadTest < ActionDispatch::IntegrationTest
test "Upload non-empty files" do
need_selenium "to make file uploads work"
visit page_with_token 'active', sandbox_path
+
+ # unlock before uploading files
+ first('.lock-collection-btn').click
+ page.driver.browser.switch_to.alert.accept
+
find('.nav-tabs a', text: 'Upload').click
attach_file 'file_selector', testfile_path('a')
attach_file 'file_selector', testfile_path('foo.txt')
@@ -93,6 +103,11 @@ class CollectionUploadTest < ActionDispatch::IntegrationTest
service_port: 99999)
end
visit page_with_token 'active', sandbox_path
+
+ # unlock before uploading a file
+ first('.lock-collection-btn').click
+ page.driver.browser.switch_to.alert.accept
+
find('.nav-tabs a', text: 'Upload').click
attach_file 'file_selector', testfile_path('foo.txt')
assert_selector 'button:not([disabled])', text: 'Start'
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list