--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAErabb9NDuvzUG9vOCuT8kVLZV%2BRBrpoiMNzX-akJ1YvuuRi2w%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYe0jEBCe%3DGkYGeEuBiaXxDnRNEuwh5vyLs%2B%2B9_du-JDRQ%40mail.gmail.com.
Thanks also for sending https://github.com/web-platform-tests/wpt/pull/15306! I see that these are manual and while I've seen discussions on how to automate payments tests, I can't find the issue now. Would you mind filing a new issue on wpt describing which steps need to be automated? I suspect that it will require a WebDriver extension, and +Luke Z may be interested in tracking this.
Looks reasonable, though I'd wait at least until the spec change has landed considering the discussion is still ongoing (but probably won't result in anything that requires implementation changes). Just to avoid that we have a release that is neither the old API nor the final new API.
Thanks also for sending https://github.com/web-platform-tests/wpt/pull/15306! I see that these are manual and while I've seen discussions on how to automate payments tests, I can't find the issue now. Would you mind filing a new issue on wpt describing which steps need to be automated? I suspect that it will require a WebDriver extension, and +Luke Z may be interested in tracking this.Thanks Philip! Here's the discussion about testing support for PaymentRequest: https://github.com/w3c/payment-request/issues/799. There are two main blockers:
- A test API to inject payment instruments, which lives inside the browser process. There's concern about exposing test API in stable and also increase in binary size, but it seems that we can mostly follow the example of Web Bluetooth and Web USB. Would this be your recommended approach?
- Some of the tests require calling PaymentRequest.show(), which must be triggered by user activation. Is WebDriver the correct solution for this? I'd be happy to file a bug if so.
@Daniel:Looks reasonable, though I'd wait at least until the spec change has landed considering the discussion is still ongoing (but probably won't result in anything that requires implementation changes). Just to avoid that we have a release that is neither the old API nor the final new API.Sounds good. I'll ping back on this thread when the PR lands.
On Mon, Feb 11, 2019 at 7:17 PM Danyao Wang <dan...@chromium.org> wrote:Thanks also for sending https://github.com/web-platform-tests/wpt/pull/15306! I see that these are manual and while I've seen discussions on how to automate payments tests, I can't find the issue now. Would you mind filing a new issue on wpt describing which steps need to be automated? I suspect that it will require a WebDriver extension, and +Luke Z may be interested in tracking this.Thanks Philip! Here's the discussion about testing support for PaymentRequest: https://github.com/w3c/payment-request/issues/799. There are two main blockers:
- A test API to inject payment instruments, which lives inside the browser process. There's concern about exposing test API in stable and also increase in binary size, but it seems that we can mostly follow the example of Web Bluetooth and Web USB. Would this be your recommended approach?
I believe this case is much simpler than Web Bluetooth or USB in that the communication only needs to go one way. I'd recommend first trying to define a WebDriver extension API with the semantics "make available these mock payment instruments". Would that solve the whole use case? Let's continue discussion in https://github.com/w3c/payment-request/issues/799.
- Some of the tests require calling PaymentRequest.show(), which must be triggered by user activation. Is WebDriver the correct solution for this? I'd be happy to file a bug if so.
The ability to click was the first capability we added to testdriver.js so this already works. There's also a test_driver.bless() wrapper for it which is appropriate if you really just want user activation and don't care about the click as such. payment-is-showing.https.html is a real test using it.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAErabb-ZHo_rb6JZ_UGMLRueODX6uSdzAbE80gp%3DmaY-DBT9bw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAErabb8-0Pf2Xu26_kW%3D%3DrFEt7XewvkHcNK6VWvY-EHUq8v0ig%40mail.gmail.com.