Browse Source

CLDC-3501: Reinstate skipped schemes test

Can be made non specific to the year
pull/3127/head
Samuel Young 3 weeks ago
parent
commit
cd55e56450
  1. 4
      spec/features/schemes_spec.rb

4
spec/features/schemes_spec.rb

@ -833,12 +833,12 @@ RSpec.describe "Schemes scheme Features" do
expect(page).to have_content("Deactivated")
end
xit "allows to reactivate a location" do
it "allows to reactivate a location" do
click_link("Reactivate this location")
expect(page).to have_current_path("/schemes/#{scheme.id}/locations/#{deactivated_location.id}/new-reactivation")
expect(page).to have_content("Reactivate #{deactivated_location.name}")
expect(page).to have_content("You’ll be able to add logs with this location if their tenancy start date is on or after the date you enter.")
expect(page).to have_content("If the date is before 1 April 2022, select ‘From the start of the open collection period’ because the previous period has now closed.")
expect(page).to have_content(/If the date is before 1 April \d{4}, select ‘From the start of the open collection period’ because the previous period has now closed./)
end
context "when I press the back button" do

Loading…
Cancel
Save