engine/features/admin/cross_domain_auth.feature
Jacques Crocker fd6a13858c Cleaning up Cucumber features
- removing tag actions and replacing with background tasks
- adding some sample pickle steps
- added some basic pickle documentation
2010-08-01 03:37:49 -07:00

27 lines
946 B
Gherkin

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
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
Scenario: Successful authentication
When I go to pages
Then I should see "Locomotive test website"
When I select "Locomotive test website #2" from "target_id"
And I press "Switch"
Then I should see "Cross-domain authentication"
When I press "Go"
Then I should see "Locomotive test website #2"
Scenario: Failed authentication because of an outdated token
When I go to pages
And I select "Locomotive test website #2" from "target_id"
And I press "Switch"
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"