From 7e3bb6eea5b37e6b33ea0b516e1723df2601b47b Mon Sep 17 00:00:00 2001 From: Lukasz Jagiela Date: Fri, 6 Dec 2024 19:23:36 +0100 Subject: [PATCH] test: e2e - remove status validation for rewards type of transaction --- .../e2e-tests/src/assert/transactionDetailsAssert.ts | 12 ------------ .../e2e-tests/src/elements/transactionDetails.ts | 10 ---------- 2 files changed, 22 deletions(-) diff --git a/packages/e2e-tests/src/assert/transactionDetailsAssert.ts b/packages/e2e-tests/src/assert/transactionDetailsAssert.ts index 2b8236add..c90f24834 100644 --- a/packages/e2e-tests/src/assert/transactionDetailsAssert.ts +++ b/packages/e2e-tests/src/assert/transactionDetailsAssert.ts @@ -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') diff --git a/packages/e2e-tests/src/elements/transactionDetails.ts b/packages/e2e-tests/src/elements/transactionDetails.ts index be8d6eaae..7363aef36 100644 --- a/packages/e2e-tests/src/elements/transactionDetails.ts +++ b/packages/e2e-tests/src/elements/transactionDetails.ts @@ -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"]'; @@ -305,14 +303,6 @@ class ActivityDetailsPage extends CommonDrawerElements { return $$(this.TRANSACTION_DETAILS_REWARDS_SINGLE_POOL_FIAT); } - get transactionDetailsRewardsStatusTitle(): ChainablePromiseElement { - return $(this.TRANSACTION_DETAILS_REWARDS_STATUS_TITLE); - } - - get transactionDetailsRewardsStatus(): ChainablePromiseElement { - return $(this.TRANSACTION_DETAILS_REWARDS_STATUS); - } - get transactionDetailsRewardsEpochTitle(): ChainablePromiseElement { return $(this.TRANSACTION_DETAILS_REWARDS_EPOCH_TITLE); }