discourse/spec/system/page_objects/pages/activate_account.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
474 B
Ruby
Raw Normal View History

# 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