From 1af789b9a82326c2e791e9edfefcd29042f62f34 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 24 Aug 2018 17:55:35 +0200 Subject: [PATCH] Profile: add breadcrumb --- app/views/new_administrateur/profil/show.html.haml | 4 ++++ spec/features/admin/connection_spec.rb | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/new_administrateur/profil/show.html.haml b/app/views/new_administrateur/profil/show.html.haml index 1b685d7aa..f9775305a 100644 --- a/app/views/new_administrateur/profil/show.html.haml +++ b/app/views/new_administrateur/profil/show.html.haml @@ -1,3 +1,7 @@ += render partial: 'new_administrateur/breadcrumbs', + locals: { steps: [link_to('Tableau de bord', admin_procedures_path), + 'Profil'] } + #profil-page.container %h1 Profil diff --git a/spec/features/admin/connection_spec.rb b/spec/features/admin/connection_spec.rb index db5f9f1c4..3b6168311 100644 --- a/spec/features/admin/connection_spec.rb +++ b/spec/features/admin/connection_spec.rb @@ -47,8 +47,7 @@ feature 'Administrator connection' do end context 'when clicking on procedure' do before do - page.find_by_id('admin_menu').click - page.find_by_id('menu_item_procedure').click + page.click_on('Tableau de bord').click end scenario 'it redirects to procedure page' do