Skip to content

Commit

Permalink
uncomment spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Nov 14, 2023
1 parent 613530f commit 38db952
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions spec/system/avo/select_all_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38db952

Please sign in to comment.