Sha256: 58aa933366c66e12a610a9cfab9f381c66a29ec883c8e51a5dd334a689919087

Contents?: true

Size: 557 Bytes

Versions: 3

Compression:

Stored size: 557 Bytes

Contents

RSpec.feature 'Admin - Sign Out', type: :feature do
  given!(:user) do
   create :user, email: 'email@person.com'
  end

  background do
    visit spree.admin_login_path
    fill_in 'Email', with: user.email
    fill_in 'Password', with: 'secret'
    # Regression test for #1257
    check 'Remember me'
    click_button Spree.t(:login)
  end

  scenario 'allows a signed in user to logout', js: true do
    log_out
    visit spree.admin_login_path
    expect(page).to have_button Spree.t(:login)
    expect(page).not_to have_text Spree.t(:logout)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_auth_devise-4.4.1 spec/features/admin/sign_out_spec.rb
spree_auth_devise-4.4.0 spec/features/admin/sign_out_spec.rb
spree_auth_devise-4.3.4 spec/features/admin/sign_out_spec.rb