Skip to content

Instantly share code, notes, and snippets.

node_modules/workshopper/util/makews.js exercises/menu.json
@linclark
linclark / test.feature
Last active December 29, 2015 10:39
Example .feature file
Feature: Drupal.org search
In order to find modules on Drupal.org
As a Drupal user
I need to be able to use Drupal.org search
@javascript
Scenario: Searching for "behat"
Given I go to "http://drupal.org"
When I search for "behat"
Then I should see "Behat Drupal Extension"
@linclark
linclark / Step Definition
Created November 24, 2013 17:13
Step definition for search step, added to FeatureContext.php
/**
* @When /^I search for "([^"]*)"$/
*/
public function iSearchFor($arg1)
{
$this->fillField('Search Drupal.org', $arg1);
$this->pressButton('Search');
}
@linclark
linclark / behat.yml
Last active December 29, 2015 06:29
Basic behat.yml
default:
paths:
features: features
bootstrap: %behat.paths.features%/bootstrap
extensions:
Behat\MinkExtension\Extension:
goutte: ~
selenium2: ~
@linclark
linclark / composer.json
Last active December 29, 2015 06:29
Basic composer.json for working with Behat, Mink, and Selenium
{
"require": {
"behat/behat": "2.4.*@stable",
"behat/mink": "1.5.*@stable",
"behat/mink-goutte-driver": "*",
"behat/mink-extension": "*",
"behat/mink-selenium2-driver": "*"
}
}