Testing using Playwright device emulation with push notifications

Is anyone using Playwright to test their app that has support for push notifications?

I’ve got a react app that uses the Local Notifications and Push Notifications Capacitor v3 plugins.

Whenever I use Playwright’s device emulation mode, I get a fatal error: “Notifications not supported in this browser.”

Since this error crashes my app, I can’t use the device emulation to run tests (I can emulate desktops fine, but obviously for a mobile app testing with emulated mobile devices is better than desktops).

If anybody has this working, I’d love to hear how you did it.