mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: lint against Layout/EmptyLineBetweenDefs (#24914)
This commit is contained in:
@@ -11,6 +11,7 @@ module PageObjects
|
||||
def user_badges_table
|
||||
page.find(:table, id: "user-badges", visible: true)
|
||||
end
|
||||
|
||||
def find_badge_row_by_granter(granter)
|
||||
user_badges_table.find(:table_row, { "Granted By" => "#{granter.username}" })
|
||||
end
|
||||
|
||||
@@ -8,6 +8,7 @@ module PageObjects
|
||||
def modal
|
||||
find(".grant-badge-modal")
|
||||
end
|
||||
|
||||
def select_badge(badge_name)
|
||||
within(modal) do
|
||||
grantable_badges_dropdown.expand
|
||||
|
||||
@@ -8,6 +8,7 @@ module PageObjects
|
||||
def modal
|
||||
find(".change-ownership-modal")
|
||||
end
|
||||
|
||||
def select_new_owner(user)
|
||||
within(modal) do
|
||||
users_dropdown.expand
|
||||
|
||||
Reference in New Issue
Block a user