This commit is contained in:
Martin Lensment 2015-09-15 12:22:31 +03:00
parent 0a73f77130
commit cc32312328
3 changed files with 5 additions and 2 deletions

View file

@ -20,7 +20,7 @@ feature 'Account activity', type: :feature do
end
it 'should navigate to account activities page' do
current_path.should == '/registrar'
current_path.should == '/registrar/poll'
click_link 'Billing'
click_link 'Account activity'

View file

@ -54,6 +54,8 @@ feature 'Domains', type: :feature do
click_link "#{user2} (#{user2.roles.first}) - #{user2.registrar}"
visit '/registrar/domains'
page.should_not have_text(d1.name)
page.should have_text(d2.name)
end

View file

@ -20,7 +20,7 @@ feature 'Invoices', type: :feature do
end
it 'should navigate to the domains index page' do
current_path.should == '/registrar'
current_path.should == '/registrar/poll'
click_link 'Billing'
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('Buyer')
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.')
visit "/registrar/invoices/#{@invoice.id}/forward"