diff --git a/spec/features/menu_spec.rb b/spec/features/menu_spec.rb index 113ed1f256..10efef6bee 100644 --- a/spec/features/menu_spec.rb +++ b/spec/features/menu_spec.rb @@ -69,8 +69,7 @@ describe 'project menu', type: :feature do it 'leads to cost reports' do click_on 'Cost reports' - expect(page).to have_selector('.breadcrumb > li', text: 'Ponyo') - expect(page).to have_selector('.breadcrumb > li', text: 'Cost reports') + expect(page).to have_selector('.button--dropdown-text', text: 'Ponyo') end end @@ -100,8 +99,6 @@ describe 'project menu', type: :feature do click_on 'Cost reports', visible: false end - expect(page).to have_selector('.breadcrumb > li', text: 'Cost reports') - # to make sure we're not seeing the project cost reports: expect(page).not_to have_text('Ponyo') end