mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Fix tests #2713
This commit is contained in:
parent
0a73f77130
commit
cc32312328
3 changed files with 5 additions and 2 deletions
|
@ -20,7 +20,7 @@ feature 'Account activity', type: :feature do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should navigate to account activities page' do
|
it 'should navigate to account activities page' do
|
||||||
current_path.should == '/registrar'
|
current_path.should == '/registrar/poll'
|
||||||
click_link 'Billing'
|
click_link 'Billing'
|
||||||
click_link 'Account activity'
|
click_link 'Account activity'
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,8 @@ feature 'Domains', type: :feature do
|
||||||
|
|
||||||
click_link "#{user2} (#{user2.roles.first}) - #{user2.registrar}"
|
click_link "#{user2} (#{user2.roles.first}) - #{user2.registrar}"
|
||||||
|
|
||||||
|
visit '/registrar/domains'
|
||||||
|
|
||||||
page.should_not have_text(d1.name)
|
page.should_not have_text(d1.name)
|
||||||
page.should have_text(d2.name)
|
page.should have_text(d2.name)
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,7 @@ feature 'Invoices', type: :feature do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should navigate to the domains index page' do
|
it 'should navigate to the domains index page' do
|
||||||
current_path.should == '/registrar'
|
current_path.should == '/registrar/poll'
|
||||||
click_link 'Billing'
|
click_link 'Billing'
|
||||||
|
|
||||||
current_path.should == '/registrar/invoices'
|
current_path.should == '/registrar/invoices'
|
||||||
|
@ -58,6 +58,7 @@ feature 'Invoices', type: :feature do
|
||||||
page.should have_text(@invoice.to_s)
|
page.should have_text(@invoice.to_s)
|
||||||
page.should have_text('Buyer')
|
page.should have_text('Buyer')
|
||||||
click_link "#{user2} (#{user2.roles.first}) - #{user2.registrar}"
|
click_link "#{user2} (#{user2.roles.first}) - #{user2.registrar}"
|
||||||
|
visit "/registrar/invoices/#{@invoice.id}"
|
||||||
page.should have_text('You are not authorized to access this page.')
|
page.should have_text('You are not authorized to access this page.')
|
||||||
|
|
||||||
visit "/registrar/invoices/#{@invoice.id}/forward"
|
visit "/registrar/invoices/#{@invoice.id}/forward"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue