Hey.
We're facing some issues with copy to clipboard functionality in Playwright:
page.evaluate(() => navigator.clipboard.readText())
In some cases this returns a completely random value, and not one that we would expect.
In our example we are getting an Ethereum address from Metamask by clicking on an button which copies it to clipboard. I'm attaching some screenshots from the trace viewer that demonstrate the problem:



We can see on the last screenshot that the value is completely different than what we would expect by the screenshoot 1 and 2. Because it is still an Ethereum address, and because we run tests with high worker count (6), it could potentially be leaking from another test (we do this same thing in a lot of tests).
This does not happen just with MetaMask (but with some other wallets as well), which makes me doubt bug is on their side.
Hey.
We're facing some issues with copy to clipboard functionality in Playwright:
In some cases this returns a completely random value, and not one that we would expect.
In our example we are getting an Ethereum address from Metamask by clicking on an button which copies it to clipboard. I'm attaching some screenshots from the trace viewer that demonstrate the problem:
We can see on the last screenshot that the value is completely different than what we would expect by the screenshoot 1 and 2. Because it is still an Ethereum address, and because we run tests with high worker count (6), it could potentially be leaking from another test (we do this same thing in a lot of tests).
This does not happen just with MetaMask (but with some other wallets as well), which makes me doubt bug is on their side.