Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #849 from LiskHQ/740-e2e-infinite-scroll
Browse files Browse the repository at this point in the history
Add e2e tests for infinite scroll - Closes #740
  • Loading branch information
gina contrino authored Oct 11, 2017
2 parents 23e94fa + f1e92c5 commit 0300a76
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions features/forging.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ Feature: Forging tab
Given I'm logged in as "delegate"
When I click tab number 3
Then I should see forging center

Scenario: should show more blocks on scroll
Given I'm logged in as "delegate"
When I click tab number 3
Then I should see table with 20 lines
When I scroll to the bottom
Then I should see table with 40 lines
4 changes: 4 additions & 0 deletions features/step_definitions/generic.step.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,9 @@ defineSupportCode(({ Given, When, Then, setDefaultTimeout }) => {
When('I Refresh the page', (callback) => {
browser.refresh().then(callback);
});

When('I scroll to the bottom', () => {
browser.executeScript('window.scrollBy(0, 10000);');
});
});

7 changes: 7 additions & 0 deletions features/transactions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Feature: Transactions tab
When I click tab number 1
Then I should see table with 40 lines

Scenario: should show more transactions on scroll
Given I'm logged in as "genesis"
When I click tab number 1
Then I should see table with 40 lines
When I scroll to the bottom
Then I should see table with 60 lines

Scenario: should allow send to address
Given I'm logged in as "genesis"
When I click tab number 1
Expand Down
7 changes: 7 additions & 0 deletions features/voting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Feature: Voting tab
When I click tab number 2
Then I should see table with 100 lines

Scenario: should allow to view more delegates on scroll
Given I'm logged in as "any account"
When I click tab number 2
Then I should see table with 100 lines
When I scroll to the bottom
Then I should see table with 200 lines

Scenario: should allow to view delegates with cold account
Given I'm logged in as "empty account"
When I click tab number 2
Expand Down

0 comments on commit 0300a76

Please sign in to comment.