Skip to content

Commit

Permalink
Improve behat test for customfilter
Browse files Browse the repository at this point in the history
  • Loading branch information
dasistwas committed Jan 12, 2025
1 parent 22d2fb6 commit 13391f6
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions tests/behat/customfilter_multiselect.feature
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,24 @@ Feature: Create entry, add multiselect and use customfilter
| type | name | value |
| text | Text | testtext2 |
And I open the autocomplete suggestions list
And I click on "Opt2" item in the autocomplete list
And I click on "Opt1" item in the autocomplete list
And I press "Save changes"
And I press "Continue"
And I should see "Opt1"

And I follow "Add a new entry"
And I fill in the entry form fields
| type | name | value |
| text | Text | testtext3 |
And I open the autocomplete suggestions list
And I click on "Opt2" item in the autocomplete list
And I click on "Opt3" item in the autocomplete list
And I press "Save changes"
And I press "Continue"
And I should see "Opt1"
And I should see "Opt2"
And I should see "Opt3"


And I follow "Add a new entry"
And I fill in the entry form fields
Expand All @@ -91,8 +97,11 @@ Feature: Create entry, add multiselect and use customfilter
And I press "Save changes"
And I press "Continue"
Then I should see "testtext3"
And I should see "Opt1"
And I should see "Opt2"
And I should see "Opt3"
And I should not see "Opt6"
And I should see "Opt4"
And I should not see "Opt5"

@javascript
Scenario: Use customfilter.
Expand All @@ -104,7 +113,9 @@ Feature: Create entry, add multiselect and use customfilter
And I press the escape key
And I press "id_customsearch"
And I should see "Opt2"
And I should not see "Opt3"
And I should see "Opt3"
And I should not see "Opt1"
And I should not see "Opt4"
And I should not see "Opt5"

# Use customfilter to select Opt1 OR Opt2.
Expand All @@ -115,8 +126,8 @@ Feature: Create entry, add multiselect and use customfilter
And I press "id_customsearch"
And I should see "Opt1"
And I should see "Opt2"
And I should see "Opt4"
And I should see "Opt5"
And I should see "Opt3"
And I should not see "Opt4"
And I should not see "Opt3"

# Use customfilter to select Opt1 AND Opt5 after deselecting Opt2.
Expand Down

0 comments on commit 13391f6

Please sign in to comment.