2024-08-12 17:02:00 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module PageObjects
|
|
|
|
module Pages
|
|
|
|
class ActivateAccount < PageObjects::Pages::Base
|
|
|
|
def click_activate_account
|
2024-08-28 07:43:39 -04:00
|
|
|
find(".activate-account-button").click
|
2024-08-12 17:02:00 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def click_continue
|
2024-08-28 07:43:39 -04:00
|
|
|
find(".account-activated .continue-button").click
|
2024-08-12 17:02:00 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def has_error?
|
2024-08-28 07:43:39 -04:00
|
|
|
has_css?(".alert-error")
|
2024-08-12 17:02:00 -04:00
|
|
|
has_content?(I18n.t("js.user.activate_account.already_done"))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|