diff --git a/app/views/admin/homepage/_setting.html.erb b/app/views/admin/homepage/_setting.html.erb index 15040f685..f875e3e7d 100644 --- a/app/views/admin/homepage/_setting.html.erb +++ b/app/views/admin/homepage/_setting.html.erb @@ -5,7 +5,6 @@ value: (setting.enabled? ? "" : "active") %> <%= f.submit(t("admin.settings.index.features.#{setting.enabled? ? "disable" : "enable"}"), - class: "button #{setting.enabled? ? "hollow alert" : "success"}", - data: { confirm: t("admin.actions.confirm") }) %> + class: "button #{setting.enabled? ? "hollow alert" : "success"}") %> <% end %> diff --git a/spec/system/admin/homepage/homepage_spec.rb b/spec/system/admin/homepage/homepage_spec.rb index 94703b3e7..e2ba36f7a 100644 --- a/spec/system/admin/homepage/homepage_spec.rb +++ b/spec/system/admin/homepage/homepage_spec.rb @@ -36,7 +36,7 @@ describe "Homepage" do within("#widget_feed_#{proposals_feed.id}") do select "1", from: "widget_feed_limit" - accept_confirm { click_button "Enable" } + click_button "Enable" end visit root_path @@ -55,7 +55,7 @@ describe "Homepage" do visit admin_homepage_path within("#widget_feed_#{debates_feed.id}") do select "2", from: "widget_feed_limit" - accept_confirm { click_button "Enable" } + click_button "Enable" end visit root_path @@ -76,12 +76,12 @@ describe "Homepage" do within("#widget_feed_#{proposals_feed.id}") do select "3", from: "widget_feed_limit" - accept_confirm { click_button "Enable" } + click_button "Enable" end within("#widget_feed_#{debates_feed.id}") do select "3", from: "widget_feed_limit" - accept_confirm { click_button "Enable" } + click_button "Enable" end visit root_path @@ -106,7 +106,7 @@ describe "Homepage" do visit admin_homepage_path within("#widget_feed_#{processes_feed.id}") do select "3", from: "widget_feed_limit" - accept_confirm { click_button "Enable" } + click_button "Enable" end visit root_path