e8325928
Aurelio A. Heckert
Make the l10n red...
|
1
2
3
4
5
6
7
8
9
|
Feature: language redirection
As a guest
I want to see an article
Background:
Given the following users
| login | name |
| manuel | Manuel Silva |
And the following articles
|
2ceaba7c
Rodrigo Souto
Fixed test: featu...
|
10
|
| owner | name | body | language | translation_of |
|
e8325928
Aurelio A. Heckert
Make the l10n red...
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
| manuel | Meu Artigo | isso é um teste | pt | nil |
| manuel | My Article | this is a test | en | Meu Artigo |
Scenario: view page in Pt as Pt guest
Given my browser prefers Portuguese
When I go to /manuel/meu-artigo
Then the site should be in Portuguese
Scenario: view page in Pt as En guest with redirection disabled by default
Given my browser prefers English
When I go to /manuel/meu-artigo
Then the site should be in Portuguese
Scenario: view page in Pt as En guest with redirection enabled
#Given manuel enabled translation redirection in his profile
# Testing the web UI
Given I am logged in as "manuel"
And my browser prefers English
|
9a4287df
Daniel Cunha
language_redirect...
|
29
|
And I go to /myprofile/manuel/profile_editor/edit
|
28c9f045
Daniela Feitosa
Fixed some strings
|
30
|
And I check "Automaticaly redirect the visitor to the article translated to his/her language"
|
9a4287df
Daniel Cunha
language_redirect...
|
31
|
And I press "Save"
|
e8325928
Aurelio A. Heckert
Make the l10n red...
|
32
33
34
35
36
37
38
39
|
When I go to /manuel/meu-artigo
Then the site should be in English
Scenario: view page in Pt as En guest with redirection disabled
Given manuel disabled translation redirection in his profile
And my browser prefers English
When I go to /manuel/meu-artigo
Then the site should be in Portuguese
|