Created
June 9, 2011 10:27
-
-
Save richsage/1016489 to your computer and use it in GitHub Desktop.
Behat, FOS FacebookBundle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Register with MyApp with a Facebook account | |
As a Facebook user | |
I want to register with MyApp | |
In order to do awesome stuff | |
Scenario: Susan Smith logs into MyApp | |
Given I am logged in as Susan Smith on Facebook | |
When I click sign in with facebook | |
Then I am asked to authorise the MyApp facebook app | |
And I should be redirected to the MyApp profile page | |
Scenario: John Smith chooses not to authorise MyApp | |
Give I am logged in as John Smith on Facebook | |
When I click sign in with facebook | |
And I refuse to authorise MyApp | |
Then I should be redirected to the MyApp home page | |
And I should see a message saying "To take part in MyApp you need to authorise our app" | |
Scenario: Frank Smith logs into MyApp | |
Given I am not logged in as Frank Smith on Facebook | |
When I click sign in with facebook | |
Then I am asked to sign in to facebook | |
And I sign into facebook as Frank Smith | |
And I am asked to authorise the MyApp facebook app | |
And I should be redirected to the MyApp profile page | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I should be redirected
steps if you test with Mink - browsers redirect automatically and always!