module OA
  class CheckPayableResultsPage < OA::BasePage
    page_url "/accounting/check_payable_results.php"

    CHECK_NO_COL ||= 0

    div(:results_header, id: "label-checks-payable-header")
    table(:results_table, id: "label-checks-payable-table")
    link(:next_link, class: "orange", text: /Next/i)

    h3(:no_results, text: "We didn't find any Release or Artist matching your criteria.")

    def most_recent_check
      results_table_element[1]
    end
  end
end
