@ -112,12 +112,12 @@ RSpec.describe "User Features" do
end
end
it " shows a create button for that organisation " do
it " shows a create button for that organisation " do
expect ( page ) . to have_button ( " Create a new lettings log for #{ org_name } " )
expect ( page ) . to have_button ( " Create a new lettings log for this organisation " )
end
end
context " when creating a log for that organisation " do
context " when creating a log for that organisation " do
it " pre-fills the value for owning organisation for that log " do
it " pre-fills the value for owning organisation for that log " do
click_button ( " Create a new lettings log for #{ org_name } " )
click_button ( " Create a new lettings log for this organisation " )
click_link ( " Set up this lettings log " )
click_link ( " Set up this lettings log " )
expect ( page ) . to have_content ( org_name )
expect ( page ) . to have_content ( org_name )
end
end
@ -201,7 +201,7 @@ RSpec.describe "User Features" do
end
end
end
end
it " shows submenu for selected orgnisation " do
it " shows submenu for selected orga nisation " do
expect ( page ) . to have_css ( '[aria-current="page"]' , text : " Users " )
expect ( page ) . to have_css ( '[aria-current="page"]' , text : " Users " )
expect ( page ) . to have_current_path ( " /organisations/ #{ org_id } /users " )
expect ( page ) . to have_current_path ( " /organisations/ #{ org_id } /users " )
expect ( page ) . to have_link ( " Logs " )
expect ( page ) . to have_link ( " Logs " )