Sha256: ea793fd5a864a98702f7e4dc8ce8b784fd9ffa90b8d9cf7b9bd4f5e1234b1d2d

Contents?: true

Size: 595 Bytes

Versions: 18

Compression:

Stored size: 595 Bytes

Contents

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

    user = create(:user, email: 'old@spree.com', password: 'secret')
    log_in(email: user.email, password: 'secret')
    visit spree.edit_account_path
  end

  scenario 'work with correct password', js: true 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

18 entries across 18 versions & 1 rubygems

Version Path
spree_auth_devise-4.6.3 spec/features/change_email_spec.rb
spree_auth_devise-4.6.2 spec/features/change_email_spec.rb
spree_auth_devise-4.6.1 spec/features/change_email_spec.rb
spree_auth_devise-4.6.0 spec/features/change_email_spec.rb
spree_auth_devise-4.5.0 spec/features/change_email_spec.rb
spree_auth_devise-4.4.2 spec/features/change_email_spec.rb
spree_auth_devise-4.1.1 spec/features/change_email_spec.rb
spree_auth_devise-4.2.1 spec/features/change_email_spec.rb
spree_auth_devise-4.4.1 spec/features/change_email_spec.rb
spree_auth_devise-4.4.0 spec/features/change_email_spec.rb
spree_auth_devise-4.3.4 spec/features/change_email_spec.rb
spree_auth_devise-4.3.3 spec/features/change_email_spec.rb
spree_auth_devise-4.3.2 spec/features/change_email_spec.rb
spree_auth_devise-4.3.1 spec/features/change_email_spec.rb
spree_auth_devise-4.3.0 spec/features/change_email_spec.rb
spree_auth_devise-4.2.0 spec/features/change_email_spec.rb
spree_auth_devise-4.1.0 spec/features/change_email_spec.rb
spree_auth_devise-4.1.0.rc1 spec/features/change_email_spec.rb