-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari test run breaks in Sauce Lab due to missing W3C WebDriver support #380
Comments
Would it make sense to just migrate to WebDriverIO? @christian-bromann given the visibility and popularity of this project is this something you can assist with? Ideally someone looking to contribute more ( @itayperry ) could take this if you can mentor them on the migration. |
I don't think so. WebdriverIO has no capabilities to run Mocha, Jasmine and Cucumber in a browser for unit test purposes. However given that many libraries still would like to do such things I will look into supporting this. Short term I believe fixing the protocol bug in |
@christian-bromann thanks for the quick response it's appreciated! 🙏 The logic for running mocha tests in browsers isn't in min-webdriver it's in mochify. That could (at least optionally?) just use WebdriverIO right? |
Yes it could. Then easiest would be to implement a browserify plugin compatible interface into |
Great, @itayperry is this something you'd be interested in contributing? It could be a good chance to contribute to another project too (WebdriverIO) |
Hi @benjamingr :) Yes, I'd be happy - I'm still working on 375 and I also wanna contribute to 374. |
I'd be happy to do it - how / where can I get started? I never did this before but it sounds interesting! :) |
I'm actually working on a Mochify rewrite (https://github.com/mantoni/mochify.js has a |
@mantoni anything I can help with? (with some guidance). |
@itayperry You could start by checking out this branch and see if you can run Safari tests for fake-timers with it: mantoni/mochify.js#241 |
Hi @mantoni, I saw that you just merged I'll be honest, I don't really know how to activate it - I tried deleting In fact, I even tried to One more question - How do get it running? I saw this |
Thanks for looking into it. There is clearly not enough documentation yet. I managed to run tests by invoking the new Mochify CLI locally using a relative path. However, I will make a |
Sounds great! I'll wait for the PR. |
@itayperry It tried all evening, and it works for Safari, but not for any other browser 🙈. Your help on the above PR and / or the Mochify rewrite would be highly appreciated. |
@mantoni I'd be very happy to help! Where should I start? (I might ask for some advice/tips). |
I figured it out for this project and have a fix in mantoni/mochify.js#244 (spoiler: there's a very subtle bug in the geckodriver). I'm happy to provide assistance for anyone who is willing to help. I'm sorry for the lack of documentation. A good way to start is to read through the initial "Mochify Rewrite" issue: mantoni/mochify.js#229 Issues for the rewite can be found here: https://github.com/mantoni/mochify.js/milestone/1 |
Getting this over the finish line is basically #395, for anyone interested. |
WebDriverIO just merged the fix for "Allow to run unit tests within the browser #6928". Not sure if this makes any difference to this stale issue, but thought I would just mention it 😄 |
Ha! Yeah, WebdriverIO now supports running tests in the browser. It would be ideal for sinonjs but the Mochify PR seems to be almost ready to ship I guess. |
Yeah, all that PR needs to finish is someone that is not pre-occupied with feeding and putting kids to bed in their few allowable hours off 😄 Could perhaps put a 💵 bounty on it to get it proper tested and finished? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Full background: sinonjs/sinon#2372.
Basically, Safari tests breaks with v12 and up. This needs to be fixed in
min-wd
(mantoni/min-webdriver#31).The text was updated successfully, but these errors were encountered: