fix spec
This commit is contained in:
@@ -149,7 +149,7 @@ feature "User managing location releases" do
|
|||||||
fill_in filming_hours_field, with: "04:00 - 22:00"
|
fill_in filming_hours_field, with: "04:00 - 22:00"
|
||||||
click_button create_release_button
|
click_button create_release_button
|
||||||
expect(page).to have_content(create_release_notice)
|
expect(page).to have_content(create_release_notice)
|
||||||
expect(page).to have_photo("location_photo.png")
|
expect(page).to have_photo("location_photo.png", visible: :all)
|
||||||
|
|
||||||
click_on manage_button
|
click_on manage_button
|
||||||
expect(page).to have_link("Download")
|
expect(page).to have_link("Download")
|
||||||
@@ -223,7 +223,7 @@ feature "User managing location releases" do
|
|||||||
click_on "Save Changes"
|
click_on "Save Changes"
|
||||||
|
|
||||||
expect(page).to have_content("The release has been updated")
|
expect(page).to have_content("The release has been updated")
|
||||||
expect(page).to have_photo("location_photo.png")
|
expect(page).to have_photo("location_photo.png", visible: :all)
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario "signing amendment for a not-signed amendment release", js: true do
|
scenario "signing amendment for a not-signed amendment release", js: true do
|
||||||
@@ -579,8 +579,8 @@ feature "User managing location releases" do
|
|||||||
"location_release[filming_hours]"
|
"location_release[filming_hours]"
|
||||||
end
|
end
|
||||||
|
|
||||||
def have_photo(filename, attr: "src")
|
def have_photo(filename, attr: "src", visible: true)
|
||||||
have_selector("img[#{attr}*='#{filename}']")
|
have_selector("img[#{attr}*='#{filename}']", visible: visible)
|
||||||
end
|
end
|
||||||
|
|
||||||
def import_location_release_link(project)
|
def import_location_release_link(project)
|
||||||
|
|||||||
Reference in New Issue
Block a user