3654: update tests to match the selection dropdown text changes.
authorradhika <radhika@curoverse.com>
Thu, 11 Sep 2014 23:37:39 +0000 (19:37 -0400)
committerradhika <radhika@curoverse.com>
Thu, 11 Sep 2014 23:37:39 +0000 (19:37 -0400)
apps/workbench/test/integration/collections_test.rb
apps/workbench/test/integration/projects_test.rb

index 34b77d841c87897363998dca78a1ab2ee02d0337..084a3380643414a3a52615ae5c31d66cb2f3cec5 100644 (file)
@@ -70,7 +70,7 @@ class CollectionsTest < ActionDispatch::IntegrationTest
 
     click_button 'Selection...'
     within('.selection-action-container') do
-      click_link 'Combine selections into a new collection'
+      click_link 'Combine selected collections into a new collection'
     end
 
     # now in the newly created collection page
@@ -96,7 +96,7 @@ class CollectionsTest < ActionDispatch::IntegrationTest
 
     click_button 'Selection...'
     within('.selection-action-container') do
-      click_link 'Combine selections into a new collection'
+      click_link 'Combine selected files into a new collection'
     end
 
     # now in the newly created collection page
index 4fa95671647d3f9e47f71d654419712b1caea722..ade4ed4c32a2e09aa9c6478cf8f5a56399448282 100644 (file)
@@ -339,7 +339,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
 
     click_button 'Selection...'
     within('.selection-action-container') do
-      page.assert_selector 'li.disabled', text: 'Combine selections into a new collection'
+      page.assert_selector 'li.disabled', text: 'Combine selected collections into a new collection'
       page.assert_selector 'li.disabled', text: 'Compare selected'
       page.assert_selector 'li.disabled', text: 'Copy selected'
       page.assert_selector 'li.disabled', text: 'Move selected'
@@ -357,8 +357,8 @@ class ProjectsTest < ActionDispatch::IntegrationTest
 
     click_button 'Selection...'
     within('.selection-action-container') do
-      page.assert_no_selector 'li.disabled', text: 'Combine selections into a new collection'
-      page.assert_selector 'li', text: 'Combine selections into a new collection'
+      page.assert_no_selector 'li.disabled', text: 'Combine selected collections into a new collection'
+      page.assert_selector 'li', text: 'Combine selected collections into a new collection'
       page.assert_selector 'li.disabled', text: 'Compare selected'
       page.assert_no_selector 'li.disabled', text: 'Copy selected'
       page.assert_selector 'li', text: 'Copy selected'
@@ -381,7 +381,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
 
     click_button 'Selection...'
     within('.selection-action-container') do
-      page.assert_selector 'li.disabled', text: 'Combine selections into a new collection'
+      page.assert_selector 'li.disabled', text: 'Combine selected collections into a new collection'
       page.assert_selector 'li.disabled', text: 'Compare selected'
       page.assert_selector 'li.disabled', text: 'Copy selected'
       page.assert_no_selector 'li.disabled', text: 'Move selected'
@@ -410,7 +410,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
 
     click_button 'Selection...'
     within('.selection-action-container') do
-      page.assert_selector 'li.disabled', text: 'Combine selections into a new collection'
+      page.assert_selector 'li.disabled', text: 'Combine selected collections into a new collection'
       page.assert_selector 'li.disabled', text: 'Compare selected'
       page.assert_selector 'li.disabled', text: 'Copy selected'
       page.assert_no_selector 'li.disabled', text: 'Move selected'
@@ -420,7 +420,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
     end
   end
 
-  test "combine selections into new collection" do
+  test "combine selected collections into new collection" do
     my_project = api_fixture('groups')['aproject']
     my_collection = api_fixture('collections')['collection_to_move_around_in_aproject']
 
@@ -434,7 +434,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
 
     click_button 'Selection...'
     within('.selection-action-container') do
-      click_link 'Combine selections into a new collection'
+      click_link 'Combine selected collections into a new collection'
     end
 
     # back in project page