This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #907 from LiskHQ/905-delegate-page
Fix the delegate page - Closes #905
- Loading branch information
Showing
3 changed files
with
27 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Feature: Delegate page | ||
Scenario: should show title, summary | ||
Given I'm on page "/delegate/537318935439898807L" | ||
Then I should see "Delegate summary" in "h1" html element | ||
And I should see "Home Delegate 537318935439898807L" in "breadcrumb" element | ||
And I should see table "summary" containing: | ||
| Name | genesis_17 | | ||
| Address | 537318935439898807L | | ||
| Uptime | /\d{1,3}(\.\d\d)?%/ | | ||
| Rank / Status | 50 / Active | | ||
| Approval | /\d{1,3}(\.\d\d)?%/ | | ||
| Vote weight | /99(,\d{3})*.\d{1,8} LSK/ | | ||
| Forged | /1,\d{3}.\d{8} LSK/ | | ||
| Blocks | /\d+ \(\d+ missed\)/ | | ||
|
||
Scenario: should link address to address page | ||
Given I'm on page "/delegate/4401082358022424760L" | ||
And I click link on row no. 2 cell no. 2 of "summary" table | ||
Then I should be on page "/address/4401082358022424760L" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters