Repository navigation
refactor to use test_driver - #10500
Conversation
| const button = document.getElementById("button"); | ||
|
|
||
| promise_test(async t => { | ||
| button.onclick = async () => { |
There was a problem hiding this comment.
@gsnedders, this is my first attempt to use test_driver, does this look ok?
|
Noting that if we do this, we are effectively shutting off Safari and Edge. That seems kinda bad. |
|
@kereliuk, can you review? |
|
So, @gsnedders checked and it looks like we are going to be good on Safari soon (works in Safari TP!). However, it's unclear what the story is going to be on Edge. @MSFTkihans, could you please investigate support of Web Driver? Or does anyone know someone we can ask over on the Microsoft side? I'd really like for the Edge team to be onboard here, as then we can migrate a bunch of other tests to use this. |
|
I think @thejohnjansen should be able to find the right contact for Edge. |
As long as they're manual tests, they're pretty much shutting off everyone as basically nobody will ever run them, hence I'm not convinced it's any regression. Ultimately, if they decide not to (internally) support the cross-browser way to do test automation that we discussed at length, that's their problem IMO. |
kereliuk
left a comment
There was a problem hiding this comment.
r+
This looks good! Also for me this is failing on Firefox, but that might be expected.
|
This is using Safari doesn't work because |
Agree. We do manually run them at Mozilla, Google, and Apple to check conformance while implementing, and to help get us out of Candidate Recommendation.... but after CR... 😢.
Easy, 🐯! We are all doing the best we can here. The test automation is limited because this needs to deal with extremely complicated browser UI (the Payment Sheet). We are going to hit this a lot with a lot of the APIs coming down the standards pipe. I don't have a solution for that, apart from maybe having pref-enabled browser testing modes. I don't know what you'll all have been discussing as possible solutions for the web, but if there are some documents, I'd like to read them. |
|
@kereliuk, do we have a concise description somewhere of the WebDriver API + testdriver.js approach that we're pursuing for most automation needs? |
|
@marcoscaceres Apologies for my late reply: I was out of the office for a week. |
|
@foolip Nope, but I think this is a good thing to have. Will put on roadmap! |
|
@marcoscaceres What's the question related to WebDriver here? We support the JWP dialect for older builds (RS4 and below) and are actively working on the W3C dialect for RS5. |
|
I'm really sorry for the delay in responding. It turns out that I am not good at GitHub notifications yet and this was buried... No excuses. It's not clear to me yet what would block Edge from working with this. @marcoscaceres, do you have an example of how this fails in Edge? |
|
@thejohnjansen, sorry, I had misread somewhere that What's confused me is that the WPT's README section on Running Tests Automatically, states that it's not possible to provide "edge" as an argument. It says:
Is that expected to change? |
|
@marcoscaceres Ergh, our duplicated documentation bites us again (turns out that having to remember to update both README.md and the actual documentation every time any one of a billion things changes is hard). Can you file a bug for that? Also note that wptrunner is only relevant insofar as Mozilla's infra and wpt.fyi is concerned: every other vendor has their own running infrastructure for it. |
|
Done #10684 |
No description provided.