2010-08-01 10:37:49 +00:00
|
|
|
Feature: Cross Domain Authentication
|
|
|
|
In order to manage a new site I created
|
|
|
|
As an administrator signed in another site of mine
|
|
|
|
I want to bypass the authentication
|
|
|
|
|
2010-08-01 20:55:30 +00:00
|
|
|
Background:
|
|
|
|
Given I have the site: "test site" set up
|
|
|
|
And I have the site: "another site" set up
|
|
|
|
And I am an authenticated user
|
2010-08-01 10:37:49 +00:00
|
|
|
|
2010-08-01 20:55:30 +00:00
|
|
|
Scenario: Successful authentication
|
|
|
|
When I go to pages
|
|
|
|
Then I should see "Locomotive test website"
|
2011-07-05 16:30:12 +00:00
|
|
|
When I follow "Locomotive test website #2"
|
2010-08-01 20:55:30 +00:00
|
|
|
Then I should see "Cross-domain authentication"
|
|
|
|
When I press "Go"
|
|
|
|
Then I should see "Locomotive test website #2"
|
2010-08-01 10:37:49 +00:00
|
|
|
|
2010-08-01 20:55:30 +00:00
|
|
|
Scenario: Failed authentication because of an outdated token
|
|
|
|
When I go to pages
|
2011-07-05 16:30:12 +00:00
|
|
|
And I follow "Locomotive test website #2"
|
2010-08-01 20:55:30 +00:00
|
|
|
And I forget to press the button on the cross-domain notice page
|
|
|
|
And I press "Go"
|
|
|
|
Then I should see "You need to sign in"
|