@legacy
@oa
Feature: Generate Checks
  In order to ensure the accuracy and reliability of accounting data
  As an OA User
  I want to generate checks

  # run features/scripts/delete_most_recent_check if this fails before the new check is deleted.
  # Feb 6, 2019: Temporarily disable while acc squad tests a lot of generations
  Scenario: Generate check
    Given an OA Technology_manager user
    Given A label with an outstanding balance for the current quarter
    When I generate a check for that label
    And I process the check
    And I cut the check
    And I search for the check
    Then I should see the check
    # delete new check
    Given I have an up-to-date UploadCheckDeletion template
    When I delete the check
    And I search for the check
    Then I should see the Check Payable Results page with no results
