Skip to content

Commit

Permalink
Adds specs to test Select All checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
torresga committed Oct 18, 2024
1 parent d8dc43e commit de007bb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/features/stories_manage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,21 @@
expect(page).to have_content "Story updated!"
end

it "allows me to select all stories" do
visit project_path(id: project.id)
check("Select All")

expect(page).to have_checked_field(name: "stories[]")
end

it "allows me to unselect all stories" do
visit project_path(id: project.id)
check("Select All")
uncheck("Select All")

expect(page).to have_unchecked_field(name: "stories[]")
end

it "allows me to delete a story" do
visit project_path(id: project.id)

Expand Down

0 comments on commit de007bb

Please sign in to comment.