Skip to content

Commit

Permalink
fix stale element
Browse files Browse the repository at this point in the history
  • Loading branch information
seaona committed Oct 16, 2024
1 parent 0cff190 commit 5bfd3a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/tests/tokens/nft/erc721-interaction.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ describe('ERC721 NFTs testdapp interaction', function () {
await driver.clickElement(
'[data-testid="account-overview__activity-tab"]',
);

// We need to wait until the transaction is confirmed before looking for the tx
// otherwise the element becomes stale, as it updates from 'pending' to 'confirmed'
await driver.waitForSelector('.transaction-status-label--confirmed');

await driver.waitForSelector({
css: '[data-testid="activity-list-item-action"]',
text: 'Deposit',
Expand Down

0 comments on commit 5bfd3a8

Please sign in to comment.