diff --git a/packages/e2e-tests/src/assert/transactionDetailsAssert.ts b/packages/e2e-tests/src/assert/transactionDetailsAssert.ts index a5eadfc94..58028f44e 100644 --- a/packages/e2e-tests/src/assert/transactionDetailsAssert.ts +++ b/packages/e2e-tests/src/assert/transactionDetailsAssert.ts @@ -102,6 +102,7 @@ class TransactionsDetailsAssert { const actualIds: string[] = await TransactionDetailsPage.getTransactionDetailsStakepoolIds(); const actualNames: string[] = await TransactionDetailsPage.getTransactionDetailsStakepoolNames(); const actualTickers: string[] = await TransactionDetailsPage.getTransactionDetailsStakepoolTickers(); + if (actualIds[0].endsWith(expectedTickers[0].split('...')[1])) expectedTickers[0] = '-'; expect(actualIds).to.have.all.members(expectedIds); expect(actualNames).to.have.all.members(expectedNames); diff --git a/packages/e2e-tests/src/elements/multidelegation/MultidelegationPage.ts b/packages/e2e-tests/src/elements/multidelegation/MultidelegationPage.ts index 4c7177547..917438ef8 100644 --- a/packages/e2e-tests/src/elements/multidelegation/MultidelegationPage.ts +++ b/packages/e2e-tests/src/elements/multidelegation/MultidelegationPage.ts @@ -73,8 +73,8 @@ class MultidelegationPage { private STAKE_POOLS_LIST_CONTAINER = '[data-testid="stake-pools-list-container"]'; private STAKE_POOL_LIST_ROW_SKELETON = '[data-testid="stake-pool-list-row-skeleton"]'; private STAKE_POOL_CARD_SKELETON = '[data-testid="stake-pool-card-skeleton"]'; - private SELCECTED_STAKE_POOLS_IN_GRID_VIEW = '[data-testid="selected-pools-list"] [data-testid="stake-pool-card"]'; - private SELCECTED_STAKE_POOLS_IN_LIST_VIEW = '[data-testid="selected-pools-list"] [data-testid="stake-pool-item"]'; + private SELECTED_STAKE_POOLS_IN_GRID_VIEW = '[data-testid="selected-pools-list"] [data-testid="stake-pool-card"]'; + private SELECTED_STAKE_POOLS_IN_LIST_VIEW = '[data-testid="selected-pools-list"] [data-testid="stake-pool-item"]'; private POOLS_COUNTER = '[data-testid="pools-counter"]'; get title() { @@ -294,11 +294,11 @@ class MultidelegationPage { } get selectedPoolsInGridView() { - return $$(this.SELCECTED_STAKE_POOLS_IN_GRID_VIEW); + return $$(this.SELECTED_STAKE_POOLS_IN_GRID_VIEW); } get selectedPoolsInListView() { - return $$(this.SELCECTED_STAKE_POOLS_IN_LIST_VIEW); + return $$(this.SELECTED_STAKE_POOLS_IN_LIST_VIEW); } get moreOptionsComponent(): typeof MoreOptionsComponent { diff --git a/packages/e2e-tests/src/features/e2e/MultidelegationSwitchingPoolsExtendedE2E.feature b/packages/e2e-tests/src/features/e2e/MultidelegationSwitchingPoolsExtendedE2E.feature index 7c969f4f7..11fda6ed0 100644 --- a/packages/e2e-tests/src/features/e2e/MultidelegationSwitchingPoolsExtendedE2E.feature +++ b/packages/e2e-tests/src/features/e2e/MultidelegationSwitchingPoolsExtendedE2E.feature @@ -71,11 +71,13 @@ Feature: Staking Page - Switching pools - Extended Browser View - E2E And I enter correct wallet password and confirm staking Then Switching staking success drawer is displayed When I click "Close" button on staking success drawer + And I navigate to Transactions extended page + Then I can see transaction 1 with type "Delegation" + And I navigate to Staking extended page And I open Overview tab And I wait until "-" pool is on "Your pools" list And I save identifiers of stake pools currently in use And I navigate to Transactions extended page - Then I can see transaction 1 with type "Delegation" When I click on a transaction: 1 Then The Tx details are displayed for Staking without metadata