Finishes #180264854. Prevents empty dataset modal from displaying on browse page

This commit is contained in:
Nelson Jovel 2021-12-10 13:52:50 +01:00
parent b45dca7a5a
commit bde992c96b
3 changed files with 10 additions and 7 deletions

View file

@ -13,11 +13,14 @@ describe 'SQM Application' do
end
context 'when no measures meet their threshold' do
it 'shows a modal on all pages' do
[dashboard_path, browse_path].each do |path|
visit path
expect(page).to have_css '.modal'
end
it 'shows a modal on dashboard page' do
visit dashboard_path
expect(page).to have_css '.modal'
end
it 'does not show a modal on the browse page' do
visit browse_path
expect(page).not_to have_css '.modal'
end
end