mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Fix e2e test for NFT interactions (#18540)
The test `should transfer a single ERC721 NFT from one account to another` has been failing intermittently. It seems to be failing due to a race condition; the first render shows "Send Token" but later renders show "Send TDC". The test only passes if it runs fast enough to read the first render of the list item component. The test has been updated to look for the text "Send TDC", which is what the component shows from the second render onward.
This commit is contained in:
parent
b3c4790f43
commit
7f6bdf0178
@ -62,9 +62,7 @@ describe('ERC721 NFTs testdapp interaction', function () {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Verify transaction
|
// Verify transaction
|
||||||
const completedTx = await driver.findElement('.list-item__title');
|
await driver.findElement({ text: 'Send TDC' });
|
||||||
const completedTxText = await completedTx.getText();
|
|
||||||
assert.equal(completedTxText, 'Send Token');
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user