From 38db9526e784021102f28c749567edc282d7e8d2 Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Tue, 14 Nov 2023 08:27:45 +0200 Subject: [PATCH] uncomment spec --- spec/system/avo/select_all_spec.rb | 92 +++++++++++++++--------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/spec/system/avo/select_all_spec.rb b/spec/system/avo/select_all_spec.rb index bf090f4c74..683626065d 100644 --- a/spec/system/avo/select_all_spec.rb +++ b/spec/system/avo/select_all_spec.rb @@ -10,71 +10,71 @@ let!(:salmon) { create_list :fish, spec_salmon_number, name: "Spec Salmon" } let!(:url) { "/admin/resources/fish?per_page=#{per_page}" } - # describe "without applyed filters" do - # context "select first page" do - # it "releases the fish from the selected page" do - # visit url + describe "without applyed filters" do + context "select first page" do + it "releases the fish from the selected page" do + visit url - # check_select_all + check_select_all - # release_fish + release_fish - # expect(page).to have_text "#{per_page} fish released with message '' by ." - # end - # end + expect(page).to have_text "#{per_page} fish released with message '' by ." + end + end - # context "select all records" do - # it "releases all fishes" do - # visit url + context "select all records" do + it "releases all fishes" do + visit url - # check_select_all - # expect_all_message + check_select_all + expect_all_message - # click_on "Select all matching" - # expect_all_matching_message + click_on "Select all matching" + expect_all_matching_message - # release_fish + release_fish - # expect(page).to have_text "#{total_fish} fish released with message '' by ." - # end - # end + expect(page).to have_text "#{total_fish} fish released with message '' by ." + end + end - # context "press undo" do - # it "releases the fish from the selected page" do - # visit url + context "press undo" do + it "releases the fish from the selected page" do + visit url - # check_select_all - # expect_all_message + check_select_all + expect_all_message - # click_on "Select all matching" - # expect_all_matching_message + click_on "Select all matching" + expect_all_matching_message - # click_on "Undo" - # expect_all_message + click_on "Undo" + expect_all_message - # release_fish + release_fish - # expect(page).to have_text "#{per_page} fish released with message '' by ." - # end - # end + expect(page).to have_text "#{per_page} fish released with message '' by ." + end + end - # context "uncheck one of them" do - # it "releases the fish from the selected page - 1" do - # visit url + context "uncheck one of them" do + it "releases the fish from the selected page - 1" do + visit url - # check_select_all - # expect_all_message + check_select_all + expect_all_message - # click_on "Select all matching" - # expect_all_matching_message + click_on "Select all matching" + expect_all_matching_message - # uncheck_first_record - # release_fish + uncheck_first_record + release_fish - # expect(page).to have_text "#{per_page - 1} fish released with message '' by ." - # end - # end - # end + expect(page).to have_text "#{per_page - 1} fish released with message '' by ." + end + end + end describe "with applyed filters" do context "select all" do