Merge pull request #1202 from internetee/improve-registrar-area-account-view

Improve registrar area account view
This commit is contained in:
Timo Võhmar 2019-06-07 13:48:48 +03:00 committed by GitHub
commit 7b7a87348b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 137 additions and 56 deletions

View file

@ -10,7 +10,7 @@ RSpec.feature 'Registrar area linked users', settings: false do
end
scenario 'switches current user to a linked one' do
visit registrar_profile_path
visit registrar_account_path
click_link_or_button 'switch-current-user-2-btn'
expect(page).to have_text('You are now signed in as a user "new-user-name"')
end

View file

@ -1,13 +0,0 @@
require 'rails_helper'
RSpec.feature 'Registrar area profile', settings: false do
background do
sign_in_to_registrar_area(user: create(:api_user_with_unlimited_balance))
end
scenario 'shows profile' do
visit registrar_root_path
click_on 'registrar-profile-btn'
expect(page).to have_text(t('registrar.profile.show.header'))
end
end