Skip to content

Commit

Permalink
Update filter spec to validate enum options are available
Browse files Browse the repository at this point in the history
  • Loading branch information
codealchemy committed Aug 3, 2021
1 parent 567cf0e commit c40e9dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/integration/fields/enum_spec.rb
Expand Up @@ -34,7 +34,9 @@ def color_enum
visit index_path(model_name: 'team')
click_link 'Add filter'
click_link 'Color'
is_expected.to have_selector('.filter .switch-select .icon-plus')
expect(all('.select-single option').map(&:text)).to include 'blue', 'green', 'red'
find('.filter .switch-select .icon-plus').click
expect(all('.select-multiple option').map(&:text)).to include 'blue', 'green', 'red'
end
end

Expand Down

0 comments on commit c40e9dd

Please sign in to comment.