Skip to content

Instantly share code, notes, and snippets.

@markwillis82
Last active December 19, 2015 11:29
Show Gist options
  • Save markwillis82/5947908 to your computer and use it in GitHub Desktop.
Save markwillis82/5947908 to your computer and use it in GitHub Desktop.
Example Behat Tests
Feature: check the correct context gets loaded for urls
When on a dev/test the modx context should switch
based on domain
Scenario: Check the baseUrl on the homepage
When am on "/"
Then I should see "Venues & Centres"
And I change to "littledown" context
Then I should see "Membership"
And I should see "Parkland"
Then I change to "web" context
And I should see "Watch Us"
Feature: cd to dir
Example test
Scenario: go to root
Then I am in the root directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment