aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features
diff options
context:
space:
mode:
authorcedricnjanga2018-04-09 23:56:16 -0700
committerJohan Van Ryseghem2018-05-28 12:48:49 +0200
commitcd3c110893a7b1845e5ff420f7f28d30b0b78825 (patch)
tree46a2b6069111008fbb08542a354efbccd0c9cf43 /spec/features
parenta14ab8ed2c24ae52b8227c49b0b8e2126b46765c (diff)
downloadchouette-core-cd3c110893a7b1845e5ff420f7f28d30b0b78825.tar.bz2
Refs #6433 Add changes to stop areas status filter
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/stop_areas_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/stop_areas_spec.rb b/spec/features/stop_areas_spec.rb
index 52040f070..ae1736309 100644
--- a/spec/features/stop_areas_spec.rb
+++ b/spec/features/stop_areas_spec.rb
@@ -43,30 +43,30 @@ describe "StopAreas", :type => :feature do
describe 'updated stop areas in before block' do
it 'supports displaying only stop areas in creation' do
- find("#q_status_in_creation").set(true)
+ find("#q_status_eq_any_in_creation").set(true)
click_button 'search-btn'
expect(page).not_to have_content(stop_areas.first.name)
expect(page).not_to have_content(stop_areas.last.name)
end
it 'supports displaying only confirmed stop areas' do
- find("#q_status_confirmed").set(true)
+ find("#q_status_eq_any_confirmed").set(true)
click_button 'search-btn'
expect(page).to have_content(stop_areas.first.name)
expect(page).not_to have_content(stop_areas.last.name)
end
it 'supports displaying only deactivated stop areas' do
- find("#q_status_deactivated").set(true)
+ find("#q_status_eq_any_deactivated").set(true)
click_button 'search-btn'
expect(page).not_to have_content(stop_areas.first.name)
expect(page).to have_content(stop_areas.last.name)
end
it 'should display all stop areas if all filters are checked' do
- find("#q_status_in_creation").set(true)
- find("#q_status_confirmed").set(true)
- find("#q_status_deactivated").set(true)
+ find("#q_status_eq_any_in_creation").set(true)
+ find("#q_status_eq_any_confirmed").set(true)
+ find("#q_status_eq_any_deactivated").set(true)
click_button 'search-btn'
expect(page).to have_content(stop_areas.first.name)
expect(page).to have_content(stop_areas.last.name)