Skip to content

Instantly share code, notes, and snippets.

@kbaum
Created December 2, 2011 03:00
Show Gist options
  • Save kbaum/1421531 to your computer and use it in GitHub Desktop.
Save kbaum/1421531 to your computer and use it in GitHub Desktop.
when %r{(?:http://www.ourapp.com|^)(/.*)}
$1
Feature: Still alive user with spaces
In order to get alerts
As a vts employee
I want still alive to click through pages and let me know if everything is ok
Background:
Given I am a user with email: "user@test.com", password: "password"
And I have 3 spaces
And I have 2 tour books with 2 spaces each
And there are featured spaces
Scenario: Click around the site
And I go to http://www.ourapp.com/users/sign_in
And I fill in "user_email" with "user@test.com"
And I fill in "user_password" with "password"
And I press "Sign in"
And I follow "View Space" within "li.myspace_1"
And I should see "Space Details" within "title"
And I follow "dashboard" within "#navigation"
And I follow "View Space" within "#spaces .last"
And I should see "Space Details" within "title"
And I follow "dashboard" within "#navigation"
And I follow "Show Tour Book" within ".tour_book_1"
And I should see "Tour Book" within "title"
And I follow "dashboard" within "#navigation"
And I follow "Show Tour Book" within "#tour_book_items .last"
And I should see "Tour Book" within "title"
And I follow "View Space" within ".tour_book_space_1"
Then I should see "Space Details" within "title"
And I follow "dashboard" within "#navigation"
And I follow "View Space" within ".featured_space_1"
And I should see "Space Details" within "title"
And I follow "dashboard" within "#navigation"
And I follow "View Space" within "#featured_spaces .last"
And I should see "Space Details" within "title"
And I follow "my portfolio" within "#navigation"
Then I should see "My Portfolio" within "title"
And I follow "View Space" within ".myspace_2"
Then I should see "Space Details" within "title"
And I follow "dashboard" within "#navigation"
And I follow "Edit" within ".myspace_3"
Then I should see "Edit Space" within "h1"
And I follow "my portfolio" within "#navigation"
And I follow "Tour Books" within "#subnavigation"
And I follow "Edit" within "li.last"
And I should see "Edit Tour Book" within "title"
And I follow "Advanced Search"
And I should see "Search" within "title"
And I follow "View Space" within ".search-result4"
And I should see "Space Details" within "title"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment