Skip to content

Commit 4fa9095

Browse files
authored
E2E fixes (#1155)
1 parent 38e0c41 commit 4fa9095

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

packages/e2e-tests/src/assert/transactionDetailsAssert.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class TransactionsDetailsAssert {
102102
const actualIds: string[] = await TransactionDetailsPage.getTransactionDetailsStakepoolIds();
103103
const actualNames: string[] = await TransactionDetailsPage.getTransactionDetailsStakepoolNames();
104104
const actualTickers: string[] = await TransactionDetailsPage.getTransactionDetailsStakepoolTickers();
105+
if (actualIds[0].endsWith(expectedTickers[0].split('...')[1])) expectedTickers[0] = '-';
105106

106107
expect(actualIds).to.have.all.members(expectedIds);
107108
expect(actualNames).to.have.all.members(expectedNames);

packages/e2e-tests/src/elements/multidelegation/MultidelegationPage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class MultidelegationPage {
7373
private STAKE_POOLS_LIST_CONTAINER = '[data-testid="stake-pools-list-container"]';
7474
private STAKE_POOL_LIST_ROW_SKELETON = '[data-testid="stake-pool-list-row-skeleton"]';
7575
private STAKE_POOL_CARD_SKELETON = '[data-testid="stake-pool-card-skeleton"]';
76-
private SELCECTED_STAKE_POOLS_IN_GRID_VIEW = '[data-testid="selected-pools-list"] [data-testid="stake-pool-card"]';
77-
private SELCECTED_STAKE_POOLS_IN_LIST_VIEW = '[data-testid="selected-pools-list"] [data-testid="stake-pool-item"]';
76+
private SELECTED_STAKE_POOLS_IN_GRID_VIEW = '[data-testid="selected-pools-list"] [data-testid="stake-pool-card"]';
77+
private SELECTED_STAKE_POOLS_IN_LIST_VIEW = '[data-testid="selected-pools-list"] [data-testid="stake-pool-item"]';
7878
private POOLS_COUNTER = '[data-testid="pools-counter"]';
7979

8080
get title() {
@@ -294,11 +294,11 @@ class MultidelegationPage {
294294
}
295295

296296
get selectedPoolsInGridView() {
297-
return $$(this.SELCECTED_STAKE_POOLS_IN_GRID_VIEW);
297+
return $$(this.SELECTED_STAKE_POOLS_IN_GRID_VIEW);
298298
}
299299

300300
get selectedPoolsInListView() {
301-
return $$(this.SELCECTED_STAKE_POOLS_IN_LIST_VIEW);
301+
return $$(this.SELECTED_STAKE_POOLS_IN_LIST_VIEW);
302302
}
303303

304304
get moreOptionsComponent(): typeof MoreOptionsComponent {

packages/e2e-tests/src/features/e2e/MultidelegationSwitchingPoolsExtendedE2E.feature

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,13 @@ Feature: Staking Page - Switching pools - Extended Browser View - E2E
7171
And I enter correct wallet password and confirm staking
7272
Then Switching staking success drawer is displayed
7373
When I click "Close" button on staking success drawer
74+
And I navigate to Transactions extended page
75+
Then I can see transaction 1 with type "Delegation"
76+
And I navigate to Staking extended page
7477
And I open Overview tab
7578
And I wait until "-" pool is on "Your pools" list
7679
And I save identifiers of stake pools currently in use
7780
And I navigate to Transactions extended page
78-
Then I can see transaction 1 with type "Delegation"
7981
When I click on a transaction: 1
8082
Then The Tx details are displayed for Staking without metadata
8183

0 commit comments

Comments
 (0)