synpress icon indicating copy to clipboard operation
synpress copied to clipboard

[💡 Feature]: UI Fuzzing

Open PatrickAlphaC opened this issue 9 months ago • 1 comments

Is your feature request related to a problem?

This would be cool, essentially set different prompts in the UI to make sure that we populate the transaction correctly.

This is probably a pretty big feature request...

But something to think about.

Describe the solution you'd like.

Maybe like:

test('should connect wallet to the Dapp', async ({ context, page, metamaskPage, fuzzSeed }) => {
  await page.getByRole('XXX', { name: '0x', exact: true }).fill(fuzzSeed);
  await page.getByRole('XXX', { name: '0x123..., 0x456...' }).fill(fuzzSeed);
  await page.getByRole('XXX', { name: '200, 300...' }).fill(fuzzSeed);

And when we populate the transaction, we can check the calldata to make sure it's correct.

Describe alternatives you've considered.

The example is super pseudo code. I feel like this should be built into playwright maybe? And maybe not a synpress request.

Additional context

No response

PatrickAlphaC avatar Feb 13 '25 14:02 PatrickAlphaC