-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AO3-5977 Hide "Approve All Unreviewed Comments" button from admins on…
… works Also hides "Approve All Unreviewed Comments" when there are no unreviewed comments.
- Loading branch information
1 parent
5ea268b
commit c96ba24
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -257,6 +257,12 @@ def with_scope(locator) | |
end | ||
end | ||
|
||
Then /^(?:|I )should not see button "([^"]*)"(?: within "([^"]*)")?$/ do |text, selector| | ||
Check warning on line 260 in features/step_definitions/web_steps.rb GitHub Actions / Rubocop
|
||
with_scope(selector) do | ||
page.body.should_not have_button(text) | ||
end | ||
end | ||
|
||
Then /^(?:|I )should be on (.+)$/ do |page_name| | ||
current_path = URI.parse(current_url).path | ||
if current_path.respond_to? :should | ||
|