From 99815569f6a9220e282e1dff6859724685cf193b Mon Sep 17 00:00:00 2001 From: Raul Gracia Date: Fri, 27 Oct 2023 09:52:00 +0100 Subject: [PATCH] Fix typo --- app/views/layouts/admin.html.erb | 2 +- spec/features/admin_console/dashboard_spec.rb | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index a96101b5..5418ed4a 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb @@ -34,7 +34,7 @@ <%= header.with_navigation_item(text: "Applicants", href: applicants_path, active: request.path.include?('system-admin/applicants')) if current_user.has_role?(:servant) %> <%= header.with_navigation_item(text: "Duplicates", href: duplicates_path, active: request.path.include?('system-admin/duplicates')) if current_user.has_role?(:servant) %> <%= header.with_navigation_item(text: "Reports", href: reports_path, active: request.path.include?('/system-admin/reports')) if current_user.has_role?(:manager) %> - <%= header.with_navigation_item(text: "Dashboard", href: dashboard_path, active: request.path.include?('/system-admin/dashboard')) if current_user.has_role?(:expectator) %> + <%= header.with_navigation_item(text: "Dashboard", href: dashboard_path, active: request.path.include?('/system-admin/dashboard')) if current_user.has_role?(:spectator) %> <%= header.with_navigation_item(text: "Users", href: users_path, active: request.path.include?('/system-admin/users')) if current_user.has_role?(:admin) %> <%= header.with_navigation_item(text: "Settings", href: edit_settings_path, active: request.path.include?('/system-admin/settings')) if current_user.has_role?(:admin) %> <%= header.with_navigation_item(text: "Audits", href: audits_path, active: request.path.include?('/system-admin/audits')) if current_user.has_role?(:admin) %> diff --git a/spec/features/admin_console/dashboard_spec.rb b/spec/features/admin_console/dashboard_spec.rb index 54e26c46..7c046158 100644 --- a/spec/features/admin_console/dashboard_spec.rb +++ b/spec/features/admin_console/dashboard_spec.rb @@ -7,105 +7,105 @@ it "shows the Total Applications widget" do given_there_are_5_applications - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_applications_widget end it "shows the Total Rejections widget" do given_there_are_rejected_applications - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_total_rejections_widget end it "shows the Average Age widget" do given_there_are_3_applicants_with_ages - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_average_age_widget end it "shows the Total Paid widget" do given_there_are_paid_applications - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_total_paid_widget end it "shows the Route Breakdown widget" do given_there_are_few_applications - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_route_breakdown_widget end it "shows the Subject Breakdown widget" do given_there_are_few_applications - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_subject_breakdown_widget end it "shows the Visa Breakdown widget" do given_there_are_few_applications_with_visas - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_visa_breakdown_widget end it "shows the Nationalities Breakdown widget" do given_there_are_few_applications_with_nationalities - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_nationalities_breakdown_widget end it "shows the Gender Breakdown widget" do given_there_are_few_applications - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_gender_breakdown_widget end it "shows the Rejection Reason Breakdown widget" do given_there_are_applications_with_rejection_reasons - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_rejection_reason_breakdown_widget end it "shows the Initial Checks Approval time widget" do given_there_are_applications_with_initial_checks - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_initial_checks_approval_average_time_widget end it "shows the Home Office Checks Approval time widget" do given_there_are_applications_with_home_office_checks - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_home_office_checks_time_widget end it "shows the School Checks Approval time widget" do given_there_are_applications_with_school_checks - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_school_checks_time_widget end it "shows the Banking Approval time widget" do given_there_are_applications_with_banking_approval - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_banking_approval_completed_time_widget end it "shows the Payment Confirmation time widget" do given_there_are_applications_with_payment_confirmation - given_i_am_signed_with_role(:expectator) + given_i_am_signed_with_role(:spectator) when_i_am_in_the_dashboard_page then_i_can_see_the_payment_confirmation_time_widget end