Skip to content

Instantly share code, notes, and snippets.

@wconrad
Created October 14, 2016 20:14
Show Gist options
  • Save wconrad/4de540ba00c95685aa0fa9ceee02abd2 to your computer and use it in GitHub Desktop.
Save wconrad/4de540ba00c95685aa0fa9ceee02abd2 to your computer and use it in GitHub Desktop.
Proposed Cucumber feature for testing web app, using high-level steps rather than predefined "click here, fill in that" steps.
Feature: Home Page
As a user
I want a home page
So that I won't be homeless
Scenario: Shows the home page after logging in
Given that I am logged in as an ordinary user
Then I should be on the home page
Scenario: Goes to the home page when selected from the menu
Given that I am logged in as an ordinary user
And I select the menu entry to go to the home page
Then I should be on the home page
Scenario: Has a map
Given that I am logged in as an ordinary user
And I am on the home page
Then there should be a map of franchises
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment