2

How can I write browser tests for modals like this?

enter image description here

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');.

Ryan
  • 22,332
  • 31
  • 176
  • 357
  • That isn't actually a modal; it's built into the browser. I'm not sure if testing that is even going to be possible, to be honest, so I'm not sure what to recommend here. – floatingLomas Apr 27 '18 at 23:05

0 Answers0