mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Merge pull request #1202 from internetee/improve-registrar-area-account-view
Improve registrar area account view
This commit is contained in:
commit
7b7a87348b
18 changed files with 137 additions and 56 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue