Skip to content

Instantly share code, notes, and snippets.

@gsmendoza
Created March 23, 2011 08:42
Show Gist options
  • Save gsmendoza/882801 to your computer and use it in GitHub Desktop.
Save gsmendoza/882801 to your computer and use it in GitHub Desktop.
Feature: Google Apps authentication
As a user I want to be able to register baweb account using my google account.
@selenium
Scenario: An customer creates account using GoogleID # features/307_google_apps_authentication.feature:5
Given I am anonymous # features/step_definitions/user_steps.rb:1
When I go to the signup page # features/step_definitions/web_steps.rb:23
And I follow "Sign up with your Google Apps Account" # features/step_definitions/web_steps.rb:33
And I fill in "Google Apps Domain:" with "gmail.com" # features/step_definitions/web_steps.rb:39
WARNING: making https request to https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=llya694le36z&scc=1&ltmpl=default&ltmplcache=2 without verifying server certificate; no CA path was specified.
WARNING: making https request to https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=llya694le36z&scc=1&ltmpl=default&ltmplcache=2 without verifying server certificate; no CA path was specified.
WARNING: making https request to https://www.google.com/accounts/o8/.well-known/host-meta?hd=gmail.com without verifying server certificate; no CA path was specified.
WARNING: making https request to https://www.google.com/accounts/o8/id?source=gmail.com without verifying server certificate; no CA path was specified.
Generated checkid_setup request to https://www.google.com/accounts/o8/ud?source=gmail.com with assocication AOQobUdMm2IjNtD2lD78u_ha3xY1_orthjGERvTLMxAoTEZ674DcY-YK
And I press "Connect" # features/step_definitions/web_steps.rb:27
When I fill in the following: # features/step_definitions/web_steps.rb:62
| Email | baweb.user.test@gmail.com |
| Passwd | baWeb123Gm |
And I press "Sign in" # features/step_definitions/web_steps.rb:27
When I uncheck "Remember this approval" # features/step_definitions/web_steps.rb:82
cannot uncheck field, no checkbox with id, name, or label 'Remember this approval' found (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:84
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:83:in `/^(?:|I )uncheck "([^"]*)"(?: within "([^"]*)")?$/'
features/307_google_apps_authentication.feature:15:in `When I uncheck "Remember this approval"'
And I press "Allow" # features/step_definitions/web_steps.rb:27
Then I should be on the account page # features/step_definitions/web_steps.rb:195
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment