Skip to content

Commit

Permalink
add display values test cases for params and pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Kunze committed Dec 3, 2018
1 parent ad8113a commit a084d62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/renderer/components/staking/TabParameters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
>info_outline</i
>
</dt>
<dd>
<dd id="loose_tokens">
{{ pool.pool.loose_tokens ? pool.pool.loose_tokens : `n/a` }}
</dd>
</dl>
Expand All @@ -36,7 +36,7 @@
>info_outline</i
>
</dt>
<dd>
<dd id="bonded_tokens">
{{ pool.pool.bonded_tokens ? pool.pool.bonded_tokens : `n/a` }}
</dd>
</dl>
Expand Down Expand Up @@ -65,7 +65,7 @@
>info_outline</i
>
</dt>
<dd>
<dd id="unbonding_time">
{{
parameters.parameters.unbonding_time
? unbondingTimeInDays + ` days`
Expand All @@ -75,7 +75,7 @@
</dl>
<dl class="info_dl">
<dt>Current Staking Coin Denomination</dt>
<dd>
<dd id="bond_denom">
{{
parameters.parameters.bond_denom
? parameters.parameters.bond_denom
Expand All @@ -87,7 +87,7 @@
<div class="column">
<dl class="info_dl">
<dt>Maximum Number of Validators</dt>
<dd>
<dd id="max_validators">
{{
parameters.parameters.max_validators
? parameters.parameters.max_validators
Expand Down
11 changes: 11 additions & 0 deletions test/e2e/delegation.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,17 @@ test(`delegation`, async function(t) {
!(await app.client.isExisting(`.tm-notification`, 4 * 1000)),
`should not get an notification error while fetching params and pool`
)
// test that the parameters and pool values are displayed
await t.equal(
await app.client.$(`#loose_tokens`).getText(),
`25.0000000000`,
`display pool values`
)
await t.equal(
await app.client.$(`#max_validators`).getText(),
`100`,
`display params values`
)
t.end()
})

Expand Down

0 comments on commit a084d62

Please sign in to comment.