Skip to content

Commit

Permalink
test(extension): cleanup after LW-5635
Browse files Browse the repository at this point in the history
  • Loading branch information
wklos-iohk committed Apr 17, 2024
1 parent d7d5505 commit 697c4b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Expand Up @@ -120,8 +120,7 @@ class StakePoolDetailsAssert {
await StakePoolDetails.rosTitle.waitForDisplayed();
expect(await StakePoolDetails.rosTitle.getText()).to.equal(await t('drawer.details.metrics.ros', 'staking'));
await StakePoolDetails.rosValue.waitForDisplayed();
// TODO BUG LW-5635
// expect(await StakePoolDetails.rosValue.getText()).to.match(TestnetPatterns.PERCENT_DOUBLE_REGEX);
expect(await StakePoolDetails.rosValue.getText()).to.match(TestnetPatterns.PERCENT_DOUBLE_REGEX);
}

private async assertSeeDelegators() {
Expand Down
3 changes: 1 addition & 2 deletions packages/e2e-tests/src/assert/stakePoolDetailsAssert.ts
Expand Up @@ -69,8 +69,7 @@ class StakePoolDetailsAssert {
await t('cardano.stakePoolMetricsBrowser.activeStake')
);
expect(await StakePoolDetails.rosTitle.getText()).to.equal('ROS');
// TODO BUG LW-5635
// expect((await StakePoolDetails.rosValue.getText()) as string).to.match(TestnetPatterns.PERCENT_DOUBLE_REGEX);
expect(await StakePoolDetails.rosValue.getText()).to.match(TestnetPatterns.PERCENT_DOUBLE_REGEX);

expect((await StakePoolDetails.activeStakeValue.getText()).slice(0, -1)).to.match(
TestnetPatterns.NUMBER_DOUBLE_REGEX
Expand Down
5 changes: 1 addition & 4 deletions packages/e2e-tests/src/assert/stakingPageAssert.ts
Expand Up @@ -40,10 +40,7 @@ class StakingPageAssert {
expect(await StakingInfoComponent.statsApy.title.getText()).to.equal(
await t('browserView.staking.stakingInfo.stats.ros')
);
// TODO BUG LW-5635
// expect((await webTester.getTextValueFromElement(stakingInfoComponent.statsApy().value())) as string).to.match(
// TestnetPatterns.PERCENT_DOUBLE_REGEX
// );
expect(await StakingInfoComponent.statsApy.value.getText()).to.match(TestnetPatterns.PERCENT_DOUBLE_REGEX);

expect(await StakingInfoComponent.statsFee.title.getText()).to.equal(
await t('browserView.staking.stakingInfo.stats.Fee')
Expand Down

0 comments on commit 697c4b0

Please sign in to comment.