synpress
synpress copied to clipboard
Metamask steps look very confusing and take a lot of space in HTML report
I facing an issue that Metamask steps look very confusing and take a lot of space in HTML report. Is there a way to wrap/combine them in action steps?
Here is how looks initialSetup and acceptAccess functions in HTML report. Just for instance.
They are mixed and because of that I missing project-related steps.
I did Metamask fixture right the same way as in synpress-examples for Playwright. I've tried to wrap fixture with test.step() but no luck. Just like with wrapping with test.step() Metamask methods directly inside a test.
Currently Metamask-related steps look like a call of Playwright functions. One by one. That is why report looks how it is. It would be nice to see them as combined steps in HTML report.
For instance step "Metamask wallet initial setup". It will wrap all Playwright steps under the hood related to the initialSetup function. And HTML report will have only one line for that step. I can expand it and see all Playwright actions as it looks right now.
And step "Accept access at Metamask wallet" will wrap all Playwright steps regarding acceptAccess function. And so on. This will make the tool more user-friendly and facilitate the correct reading of the report.
Thanks @RomaSha2010 for reporting this issue!
I differently agree with what you just mentioned about grouping related steps into one.
@drptbl Can you please take a look into this?