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