Skip to content

Commit

Permalink
test(extension): update after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
wklos-iohk committed Apr 16, 2024
1 parent e4e6d68 commit f496adc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Expand Up @@ -321,7 +321,7 @@ class MultidelegationPageAssert {
await MultidelegationPage.waitForPoolsCounterToBeGreaterThanZero();
poolLimit ??= await MultidelegationPage.getNumberOfPoolsFromCounter();
if (stakePoolsDisplayType === 'cards') {
// TODO: add code to handle grid cards
// TODO: add code to handle grid cards - LW-10284
throw new Error('Please add validation for grid cards sorting');
} else {
const columnContent = await MultidelegationPage.extractColumnContent(
Expand Down
Expand Up @@ -590,7 +590,7 @@ class MultidelegationPage {

async getNumberOfPoolsFromCounter(): Promise<number> {
const poolsCounterText = await this.poolsCounter.getText();
return Number(poolsCounterText.replace('Pools (', '').replace(',', '').replace(')', ''));
return Number(Number(poolsCounterText.replace(/.*\(/, '').replace(')', '').replace(',', '')));
}

async waitForPoolsCounterToBeGreaterThanZero(): Promise<void> {
Expand Down
Expand Up @@ -88,7 +88,7 @@ Feature: Staking Page - Extended View
Then I see the Network Info component with the expected content

@LW-8499 @Testnet @Mainnet
Scenario: Extended View - Staking - Show tooltip for <column_name> column in browse pools section
Scenario: Extended View - Staking - Show tooltip for columns in browse pools section
When I navigate to Staking extended page
And I open Browse pools tab
And I switch to list view on "Browse pools" tab
Expand Down
Expand Up @@ -10,7 +10,7 @@ Feature: Staking Page - Extended View
And I open Browse pools tab
Then "More options" component with stake pool sorting options is displayed

@LW-10139 @LW-1041 @LW-10142 @Testnet @Mainnet
@LW-10139 @LW-10141 @LW-10142 @Testnet @Mainnet
Scenario: Extended View - Staking - List View - Stake pool list sorting by ticker (default)
When I am on Staking extended page
And I open Browse pools tab
Expand Down Expand Up @@ -49,4 +49,3 @@ Feature: Staking Page - Extended View
| Blocks | descending | ascending |
| Pledge | descending | ascending |
| Live Stake | descending | ascending |
# | Ticker | ascending | descending |# Tested in LW-10139

0 comments on commit f496adc

Please sign in to comment.