Skip to content

Instantly share code, notes, and snippets.

@elotroalex
Created March 14, 2012 18:09
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 elotroalex/2038306 to your computer and use it in GitHub Desktop.
Save elotroalex/2038306 to your computer and use it in GitHub Desktop.
cucumber test for i18n
Feature: Check language
In order to test the selected language is right
As a cosmopolitan developer
I want to make sure the right words are present in the header
Scenario: English pages
Given the language is set to English
When I visit the homepage
Then the header should have the words 'Prism is a tool'
Scenario: French pages
Given the language is set to French
When I visit the homepage
Then the header should have the word 'Prism est un ensemble'
Scenario: Spanish pages
Given the language is set to Spanish
When I visit the homepage
Then the header should have the words 'Prism es un conjunto'
Scenario: German pages
Given the language is set to German
When I visit the homepage
Then the header should have the words 'Prism ist ein Satz'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment