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
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
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'
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'
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'
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'
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']
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