Improve stability of contract deposit e2e test (#9685)
The e2e test for the contract deposit action was unnecessarily reliant upon timing. After initiating a deposit, it would grab the first transaction in the transaction list and assume it was the deposit that it had just initiated. If it looked prior to the unapproved transaction being added to the list, it would grab the wrong transaction. It now looks specifically for _unconfirmed_ transactions, meaning it will block until the deposit transaction is rendered. This was discovered in testing a test-dapp PR: https://github.com/MetaMask/test-dapp/pull/76feature/default_network_editable
parent
5cc40bff41
commit
1ad87d36c3
Loading…
Reference in new issue