mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 22:04:43 +08:00
20 lines
396 B
Ruby
20 lines
396 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Modals
|
||
|
class PenalizeUser < PageObjects::Modals::Base
|
||
|
def initialize(penalty_type)
|
||
|
@penalty_type = penalty_type
|
||
|
end
|
||
|
|
||
|
def similar_users
|
||
|
modal.all("table tbody tr td:nth-child(2)").map(&:text)
|
||
|
end
|
||
|
|
||
|
def modal
|
||
|
find(".d-modal.#{@penalty_type}-user-modal")
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|