Feature: Organization Review

  [KFSQA-583] As a KFS Chart Administrator I want to copy an Organization without getting an error.

  [KFSQA-584] As a KFS Chart Manager, the Organization Review document should route to final.

  @KFSQA-583 @Bug @OrgMaint @KFSMI-9622 @hare @solid
  Scenario: Select an Organization Review to get to the Organization Review screen
    Given   I am logged in as a KFS Chart Manager
    And     I edit an Organization Review
    Then    the Organization Review document goes to SAVED

  @KFSQA-584 @Bug @Routing @OrgReview @KFSMI-10435 @sloth @solid
  Scenario: Create an Organization Review, Blanket Approve it, have it go to Final.
    Given   I am logged in as a KFS Chart Manager
    And     I save an Organization Review document
    When    I blanket approve the Organization Review document
    Then    the Organization Review document goes to FINAL

Feature: Organization Review

  [KFSQA-583] As a KFS Chart Manager, I want to edit, copy, or create delegation for an Organization Review
              without getting an Incident Report.

  [KFSQA-584] As a KFS Chart Manager, the Organization Review document should route to final.


  @KFSQA-583 @Bug @OrgMaint @KFSMI-9622 @hare @solid
  Scenario: When the KFS Chart Manager edits and submits an Organization Review, the document routes to Final.
    Given   I am logged in as a KFS Chart Manager
    And     I edit the Active To Date on a random Organization Review to today's date
    When    I submit the Organization Review document
    And     the document should have no errors
    Then    the Organization Review document goes to FINAL

  @KFSQA-583 @Bug @OrgMaint @KFSMI-9622 @hare @solid
  Scenario: When the KFS Chart Manager copies and submits an Organization Review, the document routes to Final.
    Given   I am logged in as a KFS Chart Manager
    And     I copy a random Organization Review changing Organization Code to a random value
    When    I submit the Organization Review document
    And     the document should have no errors
    Then    the Organization Review document goes to FINAL

  @KFSQA-583 @Bug @OrgMaint @KFSMI-9622 @hare @solid
  Scenario: When the KFS Chart Manager performs a create delegation for an Organization Review and submits
  the document, the document routes to Final.
    Given   I am logged in as a KFS Chart Manager
    And     I create a primary delegation for a random Organization Review
    And     I submit the Organization Review document changing the Principal Name to a random KFS User
    And     the document should have no errors
    Then    the Organization Review document goes to FINAL

  @KFSQA-584 @Bug @Routing @OrgReview @KFSMI-10435 @sloth @solid
  Scenario: Create an Organization Review, Blanket Approve it, have it go to Final.
    Given   I am logged in as a KFS Chart Manager
    And     I save an Organization Review document
    When    I blanket approve the Organization Review document
    Then    the Organization Review document goes to FINAL

Fix KFSQA-583 and KFSQA-584 false positive tests. Removed caching for global_config methods that looked up the first or a random principal name and continued to use that same value throughout the test even when a different value would be needed. Added fail for the AFT with a more descriptive error message when method KFSDataObject.view does not find an edoc when doc search by document id is performed. This more descriptive error message was need to address the confusing Watir error message that is presently being shown.
[KFSQA-1147] Fix KFSQA-583 and KFSQA-584 false positive tests. Removed caching for global_config methods that looked up the first or a random principal name and continued to use that same value throughout the test even when a different value would be needed. Added fail for the AFT with a more descriptive error message when method KFSDataObject.view does not find an edoc when doc search by document id is performed. This more descriptive error message was need to address the confusing Watir error message that is presently being shown.
