Home ›
Using JavaScript in Behat tests (manual steps for installing, running)Using JavaScript in Behat tests (manual steps for installing, running)
Submitted by Benjamin Melançon on November 14, 2016 - 10:25am
In virtual machine:
cd ~ # Go to http://phantomjs.org/download.html to see the latest available. wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 tar -xjf phantomjs-2.1.1-linux-x86_64.tar.bz2 # phantomjs --webdriver=4444 /home/vagrant/phantomjs-2.1.1-linux-x86_64/bin/phantomjs --webdriver=4444
Now you can test @javascript tagged Behat tests.
Until the above is automated, exclude JavaScript-requiring tests by default.
In behat.yml:
default: gherkin: filters: tags: ~@javascript
Run with:
behat --tags=javascript
References:
Searched words:
behat drupal extension contextual links edit
debian extract tar.bz2
behat.yml exclude by default
Comments
Post new comment