mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Finishes #180264854. Prevents empty dataset modal from displaying on browse page
This commit is contained in:
parent
b45dca7a5a
commit
bde992c96b
3 changed files with 10 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue