Closed irubido closed 1 year ago
@irubido we could close this bug as we increased the timeout for the method to 1000ms
await clickOnButton(page, "Approve", { timeout: 1000 });
https://github.com/ChainSafe/dappeteer/commit/cb6abfc4bf751addd2e3f1746db3c4183f495c10
Tests are failing and passing randomly when accepting/rejecting .invokeSnap is called for snap_confirm rpc method While writing test-snap integration tests I realized that tests can't find button, depenedent on how button loads. Hacky fix, i added waitForTimeout(1000) to ensure button loads and can be confirmed with accept/reject
To Reproduce Steps to reproduce the behavior:
exports.RECOMMENDED_METAMASK_VERSION = "v10.22.2";
Logs
Expected behavior Accept and reject should work
Screenshots
System:
Additional context Add any other context about the problem here.