Skip to content

Commit

Permalink
test(extension): no metadata pool info check
Browse files Browse the repository at this point in the history
  • Loading branch information
oldGreg5 committed May 13, 2024
1 parent 57a0440 commit aa92ce3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/e2e-tests/src/assert/transactionDetailsAssert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aa92ce3

Please sign in to comment.