Skip to content

Commit e368a35

Browse files
remove steps
1 parent f3fa158 commit e368a35

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

features/step_definitions/image_steps.rb

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -209,22 +209,6 @@ def upload_file(width, height, type = "govspeak_embed")
209209
end
210210
end
211211

212-
And(/^I select the image to be lead image$/) do
213-
select("minister-of-funk.960x640.jpg", from: "edition[block_content][image]")
214-
click_on "Save"
215-
end
216-
217-
And(/^I select image (\d+) to be lead image$/) do |index|
218-
image = @edition.images[index - 1]
219-
select(image.filename, from: "edition[block_content][image]")
220-
click_on "Save"
221-
end
222-
223-
Then(/^the lead image should be set to image (\d+)$/) do |index|
224-
image = @edition.images[index - 1]
225-
expect(@edition.reload.lead_image).to eq(image.image_data.id)
226-
end
227-
228212
Then(/^I should get the error message "(.*?)"$/) do |error_message|
229213
expect(page).to have_content(error_message)
230214
end
@@ -258,17 +242,6 @@ def upload_file(width, height, type = "govspeak_embed")
258242
end
259243
end
260244

261-
Then(/^I should see not the organisations default news image$/) do
262-
within ".app-c-edition-images-lead-image-component__default_lead_image" do
263-
assert_selector "img", count: 1
264-
end
265-
end
266-
267-
Then(/^the lead image should be set to the image I selected$/) do
268-
image = @edition.images.first
269-
expect(@edition.reload.lead_image).to eq(image.image_data.id)
270-
end
271-
272245
Then(/^I should see the title for uploading (?:a|an) (.*) image$/) do |image_kind|
273246
expect(page).to have_content "Upload #{image_kind.titleize} image"
274247
end

0 commit comments

Comments
 (0)