From 6516722024494584fd3bb81196a345d5895f43db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojtek=20K=C5=82os?= <114915819+wklos-iohk@users.noreply.github.com> Date: Thu, 22 Feb 2024 13:56:38 +0100 Subject: [PATCH] test(extension): enable test for LW-9634 (#907) --- .../assert/multidelegation/MultidelegationPageAssert.ts | 3 +++ .../src/elements/multidelegation/MultidelegationPage.ts | 6 +++--- .../src/features/MultiDelegationPageExtended.feature | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/e2e-tests/src/assert/multidelegation/MultidelegationPageAssert.ts b/packages/e2e-tests/src/assert/multidelegation/MultidelegationPageAssert.ts index 7f8275bf4..313e4bf44 100644 --- a/packages/e2e-tests/src/assert/multidelegation/MultidelegationPageAssert.ts +++ b/packages/e2e-tests/src/assert/multidelegation/MultidelegationPageAssert.ts @@ -188,6 +188,9 @@ class MultidelegationPageAssert { await MultidelegationPage.tooltip.waitForDisplayed(); let expectedTooltipText; switch (columnName) { + case 'Ticker': + expectedTooltipText = await t('browsePools.stakePoolTableBrowser.tableHeader.ticker.tooltip', 'staking'); + break; case 'Saturation': expectedTooltipText = await t('browsePools.stakePoolTableBrowser.tableHeader.saturation.tooltip', 'staking'); break; diff --git a/packages/e2e-tests/src/elements/multidelegation/MultidelegationPage.ts b/packages/e2e-tests/src/elements/multidelegation/MultidelegationPage.ts index 36653e78e..69ba727e7 100644 --- a/packages/e2e-tests/src/elements/multidelegation/MultidelegationPage.ts +++ b/packages/e2e-tests/src/elements/multidelegation/MultidelegationPage.ts @@ -336,16 +336,16 @@ class MultidelegationPage { async hoverOverColumnWithName(columnName: StakePoolListColumnType) { switch (columnName) { case 'Ticker': - await this.columnHeaderTicker.moveTo(); + await this.columnHeaderTicker.moveTo({ xOffset: 1, yOffset: 1 }); break; case 'Saturation': await this.columnHeaderSaturation.moveTo(); break; case 'ROS': - await this.columnHeaderROS.moveTo(); + await this.columnHeaderROS.moveTo({ xOffset: 1, yOffset: 1 }); break; case 'Cost': - await this.columnHeaderCost.moveTo(); + await this.columnHeaderCost.moveTo({ xOffset: 1, yOffset: 1 }); break; case 'Margin': await this.columnHeaderMargin.moveTo({ xOffset: 1, yOffset: 1 }); diff --git a/packages/e2e-tests/src/features/MultiDelegationPageExtended.feature b/packages/e2e-tests/src/features/MultiDelegationPageExtended.feature index 7ef9c6f50..ceab385c5 100644 --- a/packages/e2e-tests/src/features/MultiDelegationPageExtended.feature +++ b/packages/e2e-tests/src/features/MultiDelegationPageExtended.feature @@ -92,14 +92,14 @@ Feature: Staking Page - Extended View Then tooltip for "" column is displayed Examples: | column_name | + | Ticker | | Saturation | -# TODO: Update when LW-9634 is completed -# | ROS | -# | Cost | +# | ROS | #TODO: Uncomment when LW-9827 is resolved + | Cost | | Margin | | Blocks | | Pledge | -# | Live stake | + | Live stake | @LW-8637 @Testnet @Mainnet Scenario: Extended View - Staking password screen details