diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 91ee69738..e9cb23770 100644 --- a/spec/features/schemes_spec.rb +++ b/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