@ -515,6 +515,7 @@ RSpec.describe "Lettings Log Features" do
expect ( page ) . to have_link ( " Back to Log #{ lettings_log . id } " , href : " /lettings-logs/ #{ lettings_log . id } " )
expect ( page ) . to have_link ( " Back to Log #{ lettings_log . id } " , href : " /lettings-logs/ #{ lettings_log . id } " )
expect ( page ) . to have_css ( " .govuk-notification-banner.govuk-notification-banner--success " )
expect ( page ) . to have_css ( " .govuk-notification-banner.govuk-notification-banner--success " )
expect ( page ) . to have_content ( " Log #{ duplicate_log . id } is no longer a duplicate and has been removed from the list " )
expect ( page ) . to have_content ( " Log #{ duplicate_log . id } is no longer a duplicate and has been removed from the list " )
expect ( page ) . to have_content ( " You changed the tenant code. " )
end
end
it " allows deduplicating logs by changing the answers on the original log " do
it " allows deduplicating logs by changing the answers on the original log " do
@ -525,6 +526,7 @@ RSpec.describe "Lettings Log Features" do
expect ( page ) . to have_link ( " Back to Log #{ lettings_log . id } " , href : " /lettings-logs/ #{ lettings_log . id } " )
expect ( page ) . to have_link ( " Back to Log #{ lettings_log . id } " , href : " /lettings-logs/ #{ lettings_log . id } " )
expect ( page ) . to have_css ( " .govuk-notification-banner.govuk-notification-banner--success " )
expect ( page ) . to have_css ( " .govuk-notification-banner.govuk-notification-banner--success " )
expect ( page ) . to have_content ( " Log #{ lettings_log . id } is no longer a duplicate and has been removed from the list " )
expect ( page ) . to have_content ( " Log #{ lettings_log . id } is no longer a duplicate and has been removed from the list " )
expect ( page ) . to have_content ( " You changed the tenant code. " )
end
end
end
end
end
end