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

Add e2e tests for infinite scroll - Closes #740 #849

Merged
merged 3 commits into from
Oct 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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