Skip to content

Instantly share code, notes, and snippets.

@RX14
Created November 20, 2014 21:49
Show Gist options
  • Save RX14/b0c8ed2ff6e7df330b0e to your computer and use it in GitHub Desktop.
Save RX14/b0c8ed2ff6e7df330b0e to your computer and use it in GitHub Desktop.
Feature: Quiz
In order to test my maths skills
As a student
I want to be able to take an arithmetic quiz
Scenario: Collect user info
Given I visit the url "/quiz"
And I fill in "Test" for "firstname"
And I fill in "User" for "lastname"
When I press "Start Test"
Then I should see "Test User"
Scenario: Test the user
Given a test
Then I should see 10 questions
And I should see 10 input boxes
Scenario: Validate the results
Given a test
And I have filled out the test correctly
When I press "Submit Test"
Then I should see "10/10"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment