mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Remove /client
This commit is contained in:
parent
cf11f1aaf8
commit
5754bbe297
42 changed files with 6 additions and 1155 deletions
|
@ -15,7 +15,6 @@ feature 'Sessions', type: :feature do
|
|||
scenario 'Admin logs in' do
|
||||
visit root_path
|
||||
expect(page).to have_button('ID card (gitlab)')
|
||||
expect(page).to have_button('ID card (zone)')
|
||||
|
||||
click_on 'ID card (gitlab)'
|
||||
expect(page).to have_text('Welcome!')
|
||||
|
@ -26,22 +25,4 @@ feature 'Sessions', type: :feature do
|
|||
expect(page).to have_link('Elkdata', count: 2)
|
||||
expect(page).to have_link('Zone Media OÜ', count: 2)
|
||||
end
|
||||
|
||||
scenario 'Client logs in' do
|
||||
visit root_path
|
||||
|
||||
click_on 'ID card (zone)'
|
||||
expect(page).to have_text('Welcome!')
|
||||
|
||||
uri = URI.parse(current_url)
|
||||
expect(uri.path).to eq(client_root_path)
|
||||
|
||||
zone.domains.pluck(:name).each do |name|
|
||||
expect(page).to have_link(name)
|
||||
end
|
||||
|
||||
elkdata.domains.pluck(:name).each do |name|
|
||||
expect(page).to_not have_link(name)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue