Skip to content

Commit

Permalink
Update filter_by_status method to uncheck checkboxes before checkin…
Browse files Browse the repository at this point in the history
…g selected one
  • Loading branch information
davidtrussler committed Sep 9, 2024
1 parent 1412735 commit ec71432
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integration_test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ def filter_by_content(substring)

def filter_by_status(option)
within ".publications-filter form" do
all('input[type=checkbox]').each do |checkbox|

Check failure on line 49 in test/integration_test_helper.rb

View workflow job for this annotation

GitHub Actions / Lint Ruby / Run RuboCop

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://rubystyle.guide#consistent-string-literals)
if checkbox.checked? then

Check failure on line 50 in test/integration_test_helper.rb

View workflow job for this annotation

GitHub Actions / Lint Ruby / Run RuboCop

Style/MultilineIfThen: Do not use `then` for multi-line `if`. (https://rubystyle.guide#no-then)
checkbox.click
end
end
check(option)
click_on "Update filter"
end
Expand Down

0 comments on commit ec71432

Please sign in to comment.