Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-gracia committed Oct 27, 2023
1 parent bc5ac94 commit 9981556
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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) %>
Expand Down
30 changes: 15 additions & 15 deletions spec/features/admin_console/dashboard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9981556

Please sign in to comment.