diaspora/features/oauth.feature
2011-06-03 16:24:12 -07:00

42 lines
1.3 KiB
Gherkin

@javascript
Feature: oauth
Exchanging oauth credentials
Background:
Given Chubbies is running
When I visit "/" on Chubbies
And a user with username "bob" and password "secret"
Scenario: Authorize Chubbies
When I visit "/" on Chubbies
And I try to authorize Chubbies
Then I should see "Authorize Chubbies?"
And I should see "Chubbies tests Diaspora's OAuth capabilities."
When I press "Yes"
Then I should be on "/account" on Chubbies
And I should see my "profile.birthday"
And I should see my "name"
Scenario: Not authorize Chubbies
When I visit "/" on Chubbies
And I try to authorize Chubbies
Then I should see "Authorize Chubbies?"
And I should see "Chubbies tests Diaspora's OAuth capabilities."
When I press "No"
Then I should be on "/callback" on Chubbies
Then I should see "What is your major malfunction?"
Scenario: Authorize Chubbies
Given Chubbies is registered on my pod
When I visit "/" on Chubbies
And I try to authorize Chubbies
Then I should see "Authorize Chubbies?"
And I should see "Chubbies tests Diaspora's OAuth capabilities."
When I press "Yes"
Then I should be on "/account" on Chubbies
And I should see my "profile.birthday"
And I should see my "name"