Skip to content

Commit

Permalink
test: e2e - remove status validation for rewards type of transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ljagiela committed Dec 6, 2024
1 parent 55d42d6 commit 7e3bb6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
12 changes: 0 additions & 12 deletions packages/e2e-tests/src/assert/transactionDetailsAssert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,18 +431,6 @@ class TransactionsDetailsAssert {
await this.assertSeeRewardsStakePoolsSection();
await this.assertSeeRewardsSinglePool();

await TransactionDetailsPage.transactionDetailsRewardsStatusTitle.waitForDisplayed();
expect(await TransactionDetailsPage.transactionDetailsRewardsStatusTitle.getText()).to.equal(
await t('core.activityDetails.status')
);
await TransactionDetailsPage.transactionDetailsRewardsStatus.waitForDisplayed();
expect(await TransactionDetailsPage.transactionDetailsRewardsStatus.getText()).to.be.oneOf([
'Spendable',
'Success',
'Sending',
'Error'
]);

await TransactionDetailsPage.transactionDetailsRewardsEpochTitle.waitForDisplayed();
expect(await TransactionDetailsPage.transactionDetailsRewardsEpochTitle.getText()).to.equal(
await t('core.activityDetails.epoch')
Expand Down
10 changes: 0 additions & 10 deletions packages/e2e-tests/src/elements/transactionDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ class ActivityDetailsPage extends CommonDrawerElements {
private TRANSACTION_DETAILS_REWARDS_POOL_ID = '[data-testid="rewards-pool-id"]';
private TRANSACTION_DETAILS_REWARDS_SINGLE_POOL_ADA = '[data-testid="rewards-pool-reward-ada"]';
private TRANSACTION_DETAILS_REWARDS_SINGLE_POOL_FIAT = '[data-testid="rewards-pool-reward-fiat"]';
private TRANSACTION_DETAILS_REWARDS_STATUS_TITLE = '[data-testid="rewards-status-title"]';
private TRANSACTION_DETAILS_REWARDS_STATUS = '[data-testid="rewards-status"]';
private TRANSACTION_DETAILS_REWARDS_EPOCH_TITLE = '[data-testid="rewards-epoch-title"]';
private TRANSACTION_DETAILS_REWARDS_EPOCH = '[data-testid="rewards-epoch"]';
private TRANSACTION_DETAILS_REWARDS_TIMESTAMP_TITLE = '[data-testid="rewards-date-title"]';
Expand Down Expand Up @@ -305,14 +303,6 @@ class ActivityDetailsPage extends CommonDrawerElements {
return $$(this.TRANSACTION_DETAILS_REWARDS_SINGLE_POOL_FIAT);
}

get transactionDetailsRewardsStatusTitle(): ChainablePromiseElement<WebdriverIO.Element> {
return $(this.TRANSACTION_DETAILS_REWARDS_STATUS_TITLE);
}

get transactionDetailsRewardsStatus(): ChainablePromiseElement<WebdriverIO.Element> {
return $(this.TRANSACTION_DETAILS_REWARDS_STATUS);
}

get transactionDetailsRewardsEpochTitle(): ChainablePromiseElement<WebdriverIO.Element> {
return $(this.TRANSACTION_DETAILS_REWARDS_EPOCH_TITLE);
}
Expand Down

0 comments on commit 7e3bb6e

Please sign in to comment.