Skip to content

Instantly share code, notes, and snippets.

@wevtimoteo
Created May 29, 2012 19:02
Show Gist options
  • Save wevtimoteo/2830052 to your computer and use it in GitHub Desktop.
Save wevtimoteo/2830052 to your computer and use it in GitHub Desktop.
Recovering my PSN Network password
# encoding: utf-8
require 'spec_helper'
Capybara.configure do |config|
config.current_driver = :selenium
config.run_server = false
config.app_host = 'https://account.sonyentertainmentnetwork.com'
end
describe 'testing' do
describe 'testing' do
context 'i want password' do
before :each do
visit "/external/forgot-password!input.action"
fill_in 'account_loginNameField', :with => 'my_email@msn.com'
select '04', :from => 'dayDropDown'
select '1991', :from => 'yearDropDown'
select 'Month', :from => 'monthDropDown'
click_link 'mailTokenContinueBtn'
end
it "shows success message" do
page.should have_content('Unable to validate your e-mail address or date of birth. Please try again.')
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment