Skip to content

Instantly share code, notes, and snippets.

@andreimaxim
Created July 14, 2010 14:45
Show Gist options
  • Select an option

  • Save andreimaxim/475494 to your computer and use it in GitHub Desktop.

Select an option

Save andreimaxim/475494 to your computer and use it in GitHub Desktop.
Feature: Localization
As a Japanese visitor
I want to access a localized version of seesmic.com
In order to have a better user experience with Seesmic Web
Scenario: Redirect based on UserAgent
Given a Japanese browser UserAgent
When I visit seesmic.com
Then I should get redirected to seesmic.jp
Scenario: Sign in with Twitter
Given I am on the home page
When I click on "Sign in with Twitter"
Then I should be redirected to Twitter
And I should be able to allow Seesmic Web access to my Twitter account
And I should se
Scenario: Log into Japanese Seesmic Web
Given I am on the home page
When I fill in "username" with "seesmic_jp"
And I fill in "password" with "secret"
And I press "ログイン"
Then I should be redirected to "http://seesmic.com/web/index.html"
And the interface should be in Japanese
Scenario: Failed login
Given I am on the home page
When I fill in the "username" with "wrong_user"
And I fill in "password" with "wrong_secret"
And I press "ログイン"
Then I should see "Wrong username or password"
Scenario: Remember language settings
Given I am on the home page
And I have selected the "French" interface
When I log in
Then I should be redirected to "http://seesmic.com/web/index.html"
And the interface should be in "French"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment