module Workstation
  class AdminPage < Workstation::BasePage
    include PageObject

    page_url "/account/admin"

    div(:manage_users_table, id: "manage_users")
    link(:create_new_user, text: "Create New User")
    table(:vendor_contact_table, class: "ClickableTable")
    link(:confirm_disable_user_button, id: "DeleteUser_button")
    link(:next_page_link) { div_element(class: "Pagination").list_item_elements[-1].link_element }
    button(:confirm_disable, class: ["UsersAlertModal-button", "btn", "btn-warning"])
  end
end
