tests-behat/scroll.feature
Feature: Dynamic scroll
Scenario:
Given I am on "interactive/scroll-lister.php"
Then I should see "Argentina"
Then I should not see "Denmark"
When I scroll to bottom
Then I should see "Denmark"
When I scroll to bottom
When I scroll to bottom
When I scroll to bottom
When I scroll to bottom
When I scroll to bottom
When I scroll to bottom
Then I should not see "South Sudan"
When I scroll to bottom
Then I should see "South Sudan"
When I scroll to bottom
Then I should see "South Sudan"
Then I should see "Denmark"
Scenario: with row events
Given I am on "_unit-test/scroll.php"
Then I should see "Argentina"
Then I should not see "Denmark"
When I click using selector "//tr[td[text()='Austria']]//td[2]"
Then Toast display should contain text "row clicked: 218000014"
When I click using selector "//tr[td[text()='Austria']]//i.icon.bell"
Then Toast display should contain text "action clicked: 218000014"
Then I should see "Argentina"
Then I should not see "Denmark"
When I scroll to bottom
Then I should see "Denmark"
When I click using selector "//tr[td[text()='Denmark']]//td[2]"
Then Toast display should contain text "row clicked: 218000058"
When I click using selector "//tr[td[text()='Denmark']]//i.icon.bell"
Then Toast display should contain text "action clicked: 218000058"
When I scroll to top
When I click using selector "//tr[td[text()='Austria']]//td[2]"
Then Toast display should contain text "row clicked: 218000014"
When I click using selector "//tr[td[text()='Austria']]//i.icon.bell"
Then Toast display should contain text "action clicked: 218000014"
Scenario: with fixed header
Given I am on "interactive/scroll-grid-container.php"
Then I should see "Brazil"
Then I should not see "Canada"
When PATCH DRIVER I click using selector "//table//tr/td[text()='Brazil']"
Then I should see "Brazil"
Then I should see "Canada"