The behat.travis.yml file has a profile for Chrome browser testing. behat.template.yml needs to have this too, otherwise scenarios tagged with @chrome will either fail or be skipped when tested locally.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | panopoly-chrome-profile-2294515-1.patch | 1.24 KB | cboyden |
Comments
Comment #1
cboyden commentedComment #2
cboyden commentedPatch attached. Adds Chrome profile to behat.template.yml and a brief explanation to README.
Comment #3
cboyden commentedComment #4
dsnopekSo, the reason I didn't include this, was that those tests actually pass for me on Firefox about 90% of the time. It's just that pesky 10% where they go wrong. :-)
However, yeah, we probably should include this! In order to run tests on Chrome, you additionally have to install the ChromeDriver:
http://code.google.com/p/selenium/wiki/ChromeDriver
Could you add something about that to the documentation? Thanks!
Comment #5
cboyden commentedThey crash for me every time on FF. And I'm pretty sure I do not have ChromeDriver installed, I just say
browser_name: chromein the Behat\MinkExtension\Extension section and all the tests run on Chrome.
Comment #6
dsnopekInteresting!
Well, I needed to install ChromeDriver in order for them to work for me and on Travis-CI - maybe it's a Linux thing? Anyway, ChromeDriver is available for Mac and Windows so I assumed it was necessary there too. But I'll take your word for it!
Comment #8
dsnopekRe-rolled for the move to panopoly_test and committed there! Thanks again! :-)