Merge pull request #4200 from rockandror/banners_collection_check_boxes_fix

Use labels for web_section_ids checkboxes texts
This commit is contained in:
Javi Martín
2020-10-28 17:49:54 +01:00
committed by GitHub
2 changed files with 8 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ describe "Admin banners magement" do
end
scenario "Publish a banner" do
section = create(:web_section, name: "proposals")
section = WebSection.find_by(name: "proposals")
visit admin_root_path
@@ -92,7 +92,7 @@ describe "Admin banners magement" do
fill_in "post_ended_at", with: next_week.strftime("%d/%m/%Y")
fill_in "banner_background_color", with: "#850000"
fill_in "banner_font_color", with: "#ffb2b2"
check "banner_web_section_ids_#{section.id}"
check section.name.titleize
click_button "Save changes"