Sha256: 42b4ccfd903eb2416fa98dcb80d72fece37b9af358e030a52e83d0c036524f44

Contents?: true

Size: 652 Bytes

Versions: 5

Compression:

Stored size: 652 Bytes

Contents

RSpec.feature 'Change email', type: :feature do
  background do
    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', 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

5 entries across 5 versions & 1 rubygems

Version Path
spree_auth_devise-3.3.3 spec/features/change_email_spec.rb
spree_auth_devise-3.3.1 spec/features/change_email_spec.rb
spree_auth_devise-3.3.0 spec/features/change_email_spec.rb
spree_auth_devise-3.3.0.rc1 spec/features/change_email_spec.rb
spree_auth_devise-3.2.0 spec/features/change_email_spec.rb