From 59f2fae657ebbc7f23becc52f1fb6b9b2f775197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 19 Jun 2023 16:54:44 +0200 Subject: [PATCH] add Behat test --- demos/collection/grid.php | 2 +- tests-behat/grid.feature | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/demos/collection/grid.php b/demos/collection/grid.php index c305220ae1..f5a4a6e073 100644 --- a/demos/collection/grid.php +++ b/demos/collection/grid.php @@ -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]); diff --git a/tests-behat/grid.feature b/tests-behat/grid.feature index f5a8cbd70a..fd73c8f667 100644 --- a/tests-behat/grid.feature +++ b/tests-behat/grid.feature @@ -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"