discourse/spec/system/page_objects/modals/penalize_user.rb

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