Skip to content

Instantly share code, notes, and snippets.

@antarestrader
Created January 13, 2009 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antarestrader/46291 to your computer and use it in GitHub Desktop.
Save antarestrader/46291 to your computer and use it in GitHub Desktop.
Feature: Explore the Universe
In order to see what is out there
Any user
Can explore the known universe
Scenario: Drill Through Tree
Given I am a visitor
And there is a sector
And that sector has 5 stars
And the 1st star has 3 planets
And the 1st planet is a rockey planet
And that planet has been compleatly explored
And the 2nd planet is a gasious planet
# Start from home screen
When I view the page for that sector
Then I should see that sector's name
And I should see a summary of the contents of the sector
And I should see a percentage of the items in the sector that have been explored
And I should see a list of those stars.
And I should see the correct breadcrubms
When I follow the link to the 1st star by name
Then I should see that star's name
And I should see the stars statistics
And I should see a summary of the contents of the star system
And I should see a list of those planets
And I should see the correct breadcrubms
When I follow the link to the 1st planet by name
Then I should see that planet's name
And I should see the planets statistics
And I should see the correct breadcrubms
Scenario: Search for an existing place
Given I am a player
And I am logged in
And there is a planet
When I enter that planet's name into the "search" field
And I press "search"
Then I should see the page for that planet
Scenario: Search for a non-existant place
Given I am a player
And I am logged in
When I fill in "search" with "foobar"
And I press "search"
Then my search should return no results
Scenario: Search for an ambigous place
Scenario: View a New Planet
Given I am a visitor
And there is a planet
When I view the page for that planet
Then I should see that planet's name
And I should see the statistics for that planet
Scenario: View a Star with planets
Given I am a visitor
And there is a star
And that star has 3 planets
When I view the page for that star
Then I should see that star's name
And I should see the statistics for that star
And I should see a list of those planets
Scenario: view a Sector
Given I am a visitor
And there is a sector
When I view the page for that sector
Then I should see that sector's name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment