I use browserstack.
Generally speaking, good css and proper media queries if that applies or not equals it works properly.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How can I write browser tests for modals like this?
In case it matters, I'm using Laravel 5.6 Dusk for browser testing, and my payment request modal is generated via a Stripe Payment Request Button.
Stripe's Payment Request Button uses the cross-browser Payment Request API from W3C.
Chrome doesn't let me "inspect" the HTML of the elements of the modal, so I'm not sure how to write compatible commands in the form of $browser->click('.selector');.
Please or to participate in this conversation.