Skip to content

Commit

Permalink
test: minor test fixes (maintenance) (#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljagiela authored Feb 17, 2025
1 parent bcf6411 commit 79a9822
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/e2e-tests/src/assert/transactionDetailsAssert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ class TransactionsDetailsAssert {
async assertSeeActivityDetailsSummaryAmounts(mode: 'extended' | 'popup') {
await this.waitForTransactionsLoaded();
const rowsNumber = (await TransactionsPage.rows).length;
const maxRowsIterator = mode === 'extended' ? 8 : 6;

for (let i = 0; i <= rowsNumber && i < 10; i++) {
for (let i = 0; i <= rowsNumber && i < maxRowsIterator; i++) {
const skippedTransaction = ['Self Transaction', 'Rewards']; // should be covered in separate tests
if (!skippedTransaction.includes(await TransactionsPage.transactionsTableItemType(i).getText())) {
await TransactionsPage.clickOnTransactionRow(i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Feature: Send Simple Transactions - Extended view - E2E
Then I see a toast with text: "Copied to clipboard"
And I see 1 opened tab(s)
When I wait for the transaction history to be loaded and all transactions to be confirmed
And I close the drawer by clicking close button
And I click on a transaction: 1
And I click on a transaction hash and save hash information
Then I see 2 opened tab(s)
When I switch to last window
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Feature: Send Simple Transactions - Popup view - E2E
Then I see a toast with text: "Copied to clipboard"
And I see 1 opened tab(s)
When I wait for the transaction history to be loaded and all transactions to be confirmed
And I close the drawer by clicking close button
And I navigate to Activity popup page
And I click on a transaction: 1
And I click on a transaction hash and save hash information
Then I see 2 opened tab(s)
When I switch to last window
Expand Down

0 comments on commit 79a9822

Please sign in to comment.