module Royalties
  class PaymentPage < RoyaltiesPage
    page_url "/payment/<%=params[:payee_id]%>"

    link(:payee_tab, id: "PaymentGroup-tabs-tab-payees")
    link(:payment_overview_tab, id: "PaymentGroup-tabs-tab-payment-overview")
    div(:payees_section, class: "PaymentGroupDetails-payees-table")
    div(:overview_section, class: "PaymentGroup-overview")
    span(:trash_icon, "data-testid": "payment-payee-delete-glyph")
    button(:confirm_delete, text: "YES")
    div(:payment_options, class: "paymentOptions")
    a(:delete_payment, "data-testid": "delete-payment-item-testid")
    button(:confirm_delete_payment, text: "Delete Payment")
    button(:add_note, text: "Add Note")
    text_area(:note_text, "data-testid": "payment-payee-textarea-testid")
    button(:save_note, text: "Add")
    button(:send_for_approval, text: "Send For Approval")
    button(:approve, text: "Approve")
    span(:approvals_count, class: "PaymentGroupDetails-approval-count")
    span(:post_payment, class: "PaymentGroupDetails-approval-button")
    div(:payment_group_details, class: "PaymentGroupDetails-top-header-right")
  end
end
