Sha256: b34b3e62b121a7629f055ab34f26cf2cb79344ac36c02da16642c46c977a2f50

Contents?: true

Size: 710 Bytes

Versions: 12

Compression:

Stored size: 710 Bytes

Contents

RSpec.feature 'Change email', type: :feature do

  background do
    Spree::Auth::Config.set(signout_after_password_change: false)

    user = create(:user)
    visit spree.root_path
    click_link 'Login'

    fill_in 'spree_user[email]', with: user.email
    fill_in 'spree_user[password]', with: 'secret'
    click_button 'Login'

    visit spree.edit_account_path
  end

  scenario 'work with correct password' do
    fill_in 'user_email', with: 'tests@example.com'
    fill_in 'user_password', with: 'password'
    fill_in 'user_password_confirmation', with: 'password'
    click_button 'Update'

    expect(page).to have_text 'Account updated'
    expect(page).to have_text 'tests@example.com'
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
solidus_auth_devise-2.2.0 spec/features/change_email_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0.5 spec/features/change_email_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0.4 spec/features/change_email_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0.3 spec/features/change_email_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0.2 spec/features/change_email_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0.1 spec/features/change_email_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0 spec/features/change_email_spec.rb
solidus_auth_devise-2.1.0 spec/features/change_email_spec.rb
solidus_auth_devise-2.0.0 spec/features/change_email_spec.rb
solidus_auth_devise-1.6.4 spec/features/change_email_spec.rb
solidus_auth_devise-1.6.3 spec/features/change_email_spec.rb
solidus_auth_devise-1.6.2 spec/features/change_email_spec.rb