Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2e fixes #1155

Merged
merged 9 commits into from
May 13, 2024
Merged
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