|
|
@ -1,6 +1,8 @@ |
|
|
|
require "rails_helper" |
|
|
|
require "rails_helper" |
|
|
|
require_relative "schemes_helpers" |
|
|
|
require_relative "schemes_helpers" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using RefinementTest |
|
|
|
|
|
|
|
|
|
|
|
RSpec.describe "Schemes scheme Features" do |
|
|
|
RSpec.describe "Schemes scheme Features" do |
|
|
|
include SchemesHelpers |
|
|
|
include SchemesHelpers |
|
|
|
context "when viewing list of schemes" do |
|
|
|
context "when viewing list of schemes" do |
|
|
@ -203,7 +205,7 @@ RSpec.describe "Schemes scheme Features" do |
|
|
|
it "shows details of those locations" do |
|
|
|
it "shows details of those locations" do |
|
|
|
locations.each do |location| |
|
|
|
locations.each do |location| |
|
|
|
expect(page).to have_content(location.id) |
|
|
|
expect(page).to have_content(location.id) |
|
|
|
expect(page).to have_content(location.postcode) |
|
|
|
expect(page).to have_content(location.postcode.formatted_postcode) |
|
|
|
expect(page).to have_content(location.units) |
|
|
|
expect(page).to have_content(location.units) |
|
|
|
expect(page).to have_content(location.type_of_unit) |
|
|
|
expect(page).to have_content(location.type_of_unit) |
|
|
|
expect(page).to have_content(location.startdate&.to_formatted_s(:govuk_date)) |
|
|
|
expect(page).to have_content(location.startdate&.to_formatted_s(:govuk_date)) |
|
|
@ -723,7 +725,7 @@ RSpec.describe "Schemes scheme Features" do |
|
|
|
|
|
|
|
|
|
|
|
context "when I click to change location name" do |
|
|
|
context "when I click to change location name" do |
|
|
|
before do |
|
|
|
before do |
|
|
|
click_link(location.postcode) |
|
|
|
click_link(location.postcode.formatted_postcode) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "shows available fields to edit" do |
|
|
|
it "shows available fields to edit" do |
|
|
|