DEV: lint against Layout/EmptyLineBetweenDefs (#24914)

This commit is contained in:
Kelv
2023-12-15 23:46:04 +08:00
committed by GitHub
parent 15fc2a289a
commit 2477bcc32e
49 changed files with 124 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -8,6 +8,7 @@ module PageObjects
def modal
find(".change-ownership-modal")
end
def select_new_owner(user)
within(modal) do
users_dropdown.expand