diff --git a/spec/system/errors_spec.rb b/spec/system/errors_spec.rb index 6253c5882..f5643ff7d 100644 --- a/spec/system/errors_spec.rb +++ b/spec/system/errors_spec.rb @@ -13,7 +13,7 @@ end it 'uses the system user layout with navigation' do - expect(page).to have_css('nav.moj-primary-navigation') + expect(page).to have_css('nav.govuk-service-navigation__wrapper') expect(page).to have_link('Sign out') end end @@ -51,7 +51,7 @@ end it 'uses the system user layout with navigation' do - expect(page).to have_css('nav.moj-primary-navigation') + expect(page).to have_css('nav.govuk-service-navigation__wrapper') expect(page).to have_link('Sign out') end end @@ -85,7 +85,7 @@ end it 'uses the system user layout with navigation' do - expect(page).to have_css('nav.moj-primary-navigation') + expect(page).to have_css('nav.govuk-service-navigation__wrapper') expect(page).to have_link('Sign out') end end @@ -101,7 +101,7 @@ end it 'uses the simplified errors page layout' do - expect(page).to have_no_css('nav.moj-primary-navigation') + expect(page).to have_no_css('nav.govuk-service-navigation__wrapper') end end @@ -116,7 +116,7 @@ end it 'uses the simplified errors page layout' do - expect(page).to have_no_css('nav.moj-primary-navigation') + expect(page).to have_no_css('nav.govuk-service-navigation__wrapper') end end diff --git a/spec/system/manage_users/deactivate_a_user_spec.rb b/spec/system/manage_users/deactivate_a_user_spec.rb index 652220157..0aa576315 100644 --- a/spec/system/manage_users/deactivate_a_user_spec.rb +++ b/spec/system/manage_users/deactivate_a_user_spec.rb @@ -32,7 +32,7 @@ def do_deactivate_journey end it 'warns about the impact of deactivating' do - within('div.govuk-warning-text') do + within('.govuk-warning-text') do expect(page).to have_content( 'This will mean Zoe Blogs can no longer access this service.' ) @@ -110,7 +110,7 @@ def do_deactivate_journey end it 'shows error message on manage users page' do - within('div.govuk-notification-banner__heading') do + within('.govuk-notification-banner__heading') do expect(page).to have_content( 'Unable to deactivate user. There must be at least two users who can manage others' ) diff --git a/spec/system/manage_users/reactivate_a_user_spec.rb b/spec/system/manage_users/reactivate_a_user_spec.rb index 683de6b09..7713cedad 100644 --- a/spec/system/manage_users/reactivate_a_user_spec.rb +++ b/spec/system/manage_users/reactivate_a_user_spec.rb @@ -117,7 +117,7 @@ end it 'shows error message' do - within('div.govuk-notification-banner__heading') do + within('.govuk-notification-banner__heading') do expect(page).to have_content('You cannot reactivate yourself') end end