w3c / payment-method-id

Payment Method Identifiers specification
https://w3c.github.io/payment-method-id/
Other
23 stars 20 forks source link

Generate an implementation report #54

Closed marcoscaceres closed 5 years ago

marcoscaceres commented 5 years ago

The spec is currently missing an implementation report. I've asked @yatri1609 to give us a hand with this! đź‘‹

What we need to do:

yatri1609 commented 5 years ago

Sure @marcoscaceres I'll do it

ianbjacobs commented 5 years ago

Thanks for the help!!

yatri1609 commented 5 years ago

@marcoscaceres While running the test in the browsers using "payment-request/" directory, it made a json file while running under "payment-method-id/" directory it didn't made any json file. So is it what is expected or something unusal?

marcoscaceres commented 5 years ago

So, just to confirm, did you copy/paste the file “payment-request/payment-request-ctor-pmi-handling.https.html” file into to the “payment-method-id/” directory? That needs to be in place for the test to run and produce the JSON.

once you move that file, please send a pull request to the web platform test repo... once that lands, the JSON file will get produced when you run the test suite.

yatri1609 commented 5 years ago

@marcoscaceres Yes I did copy/paste it into the payment-method-id directory. Now I need to send a PR to which repo as I'm getting confused with the repos. The changes are made in the wpt repo and the PR must also be send in the same right? Then I'll be testing and generating the JSON file which will go in the test-results repo. Am I going in the right direction?

marcoscaceres commented 5 years ago

The changes are made in the wpt repo and the PR must also be send in the same right?

Correct. Apologies for not being clear.

Then I'll be testing and generating the JSON file which will go in the test-results repo. Am I going in the right direction?

Yep đź‘Ť that sounds correct.

yatri1609 commented 5 years ago

Cool I'll send a PR to the wpt repo !

marcoscaceres commented 5 years ago

Ok, first item at the top off the list crossed off! ✨

marcoscaceres commented 5 years ago

Oh, to test in Firefox, make sure you do this:

  1. Type “about:config” in the url bar and hit enter.
  2. click yes to “void my warranty” :)
  3. Search for “dom.payments.request.enabled” and set it to true.
  4. Open a new tab and everything should be working. You might want to restart Firefox, just to be sure.
yatri1609 commented 5 years ago

@marcoscaceres I did that and updated my PR but the file hasn't changed at all it was the same

marcoscaceres commented 5 years ago

I’ll take a look, but unfortunately it won’t be until a bit later today.

yatri1609 commented 5 years ago

@marcoscaceres Yeah no problem! I'll also have a look tomorrow morning as it's already 4 in the morning and I have lectures tomorrow so I'll complete the other tasks tomorrow. :grinning:

marcoscaceres commented 5 years ago

Heh, was just thinking it must be super late for you :) I just tried it nonetheless, and the test is showing up. But yes, let’s finish this up tomorrow!

marcoscaceres commented 5 years ago

Spotted a typo above, it should have said to run against "/payment-method-id/" (was missing first “/“)

yatri1609 commented 5 years ago

@marcoscaceres We need to update the link to which link exactly... Is it the link to the payment-method-id till I understood?

marcoscaceres commented 5 years ago

@yatri1609, so, in this repository, you just need to change: https://github.com/w3c/payment-method-id/blob/gh-pages/index.html#L38

To:

testSuiteURI: "https://w3c-test.org/payment-method-id/",
implementationReportURI: "https://w3c.github.io/test-results/payment-method-id/all.html",
yatri1609 commented 5 years ago

@marcoscaceres I have already done that.

marcoscaceres commented 5 years ago

@ianbjacobs, thanks to @yatri1609. we now have an implementation report showing 3 fully conforming implementations 🎉

I'll create a new bug to track moving this to Proposed Recommendation.

ianbjacobs commented 5 years ago

@yatri1609 and @marcoscaceres,

Great work, thank you both very much! 🎉🎉🎉

marcoscaceres commented 5 years ago

closing as done via #58