mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 14:26:18 +08:00
21 lines
474 B
Ruby
21 lines
474 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Pages
|
|
class ActivateAccount < PageObjects::Pages::Base
|
|
def click_activate_account
|
|
find("#activate-account-button").click
|
|
end
|
|
|
|
def click_continue
|
|
find(".perform-activation .continue-button").click
|
|
end
|
|
|
|
def has_error?
|
|
has_css?("#simple-container .alert-error")
|
|
has_content?(I18n.t("js.user.activate_account.already_done"))
|
|
end
|
|
end
|
|
end
|
|
end
|