spec/features/group_maintenance_spec.rb in peoplefinder-0.0.2 vs spec/features/group_maintenance_spec.rb in peoplefinder-0.1.0

- old
+ new

@@ -7,10 +7,12 @@ scenario 'Creating a top-level department' do name = 'Ministry of Justice' visit new_group_path + expect(page).to have_title("New team - #{ app_title }") + fill_in 'Team name', with: name fill_in 'Team description', with: 'about my team' fill_in 'Team responsibilities (optional)', with: 'my responsibilities' add_team_email_address click_button 'Create' @@ -71,12 +73,12 @@ fill_in 'Team name', with: 'Digital Services' click_in_org_browser 'Corporate Services' add_team_email_address click_button 'Create' - within('.breadcrumbs') do - expect(page).to have_content('Corporate Services > Digital Services') + within('.breadcrumbs ol') do + expect(page).to have_content('Corporate Services Digital Services') end end scenario 'Deleting a team' do group = create(:group) @@ -103,9 +105,10 @@ javascript_log_in visit group_path(group) click_link 'Edit' + expect(page).to have_title("Edit team - #{ app_title }") expect(page).to have_text('You are currently editing this page') new_name = 'Cyberdigital Cyberservices' fill_in 'Team name', with: new_name within('.group-parent') do