I have a scenario where in after clicking a certain element, a custom event should be triggered. The waitForEvent only accepts default events and I've found this thread, but without any example.
Is there a reference in Playwright regarding validating on custom events?
yTo accomplish this, you'll probably have to lean on code that you evaluate inside the browser. I would do something like the following:
I hope this points you in the right direction.