Sha256: 4c1308e89d5775636a4b0441d97885def1aab640a592ebd656b7d72b7d6af4e8
Contents?: true
Size: 722 Bytes
Versions: 10
Compression:
Stored size: 722 Bytes
Contents
RSpec.feature 'Change email', type: :feature do background do allow_bypass_sign_in user = create(:user, email: 'old@spree.com', password: 'secret') 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
10 entries across 10 versions & 1 rubygems