Skip to content

Commit

Permalink
add Behat test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jun 19, 2023
1 parent ed07168 commit 59f2fae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demos/collection/grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@
));

// Setting ipp with an array will add an ItemPerPageSelector to paginator.
$grid->setIpp([10, 25, 50, 100]);
$grid->setIpp([10, 100, 1000]);
15 changes: 15 additions & 0 deletions tests-behat/grid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,18 @@ Feature: Grid
When I click using selector "//th.sortable[//div[text()='Name']]"
Then I should see "Andorra"
Then I should not see "Zambia"

Scenario: IPP selector
Then I should see "Andorra"
Then I should not see "China"
Then I should not see "Zambia"
When I click using selector "//div.ui.dropdown.compact"
When I click using selector "//div.ui.dropdown.compact//div.item[text()='100']"
Then I should see "Andorra"
Then I should see "China"
Then I should not see "Zambia"
When I click using selector "//div.ui.dropdown.compact"
When I click using selector "//div.ui.dropdown.compact//div.item[text()[normalize-space()='1 000']]"
Then I should see "Andorra"
Then I should see "China"
Then I should see "Zambia"

0 comments on commit 59f2fae

Please sign in to comment.