@documents
@lambda_documents_payee
Feature: Check documents domain

  @id_ffc455af0adf98f57c0279cbbb6ff310e8ec1621a35f8e9052c45343cd8a455b
  Scenario: Documents page smoke test
    Given an orchard employee label_6971 for documents
    When I log in to documents
    Then I am successfully logged in to documents
    Then I can see that documents Banking & Tax Settings page works with orchard-us account name TEST GDA - USA
    Then I log out of documents

  @id_045d8b350c367c44336d7b7eb08f29c983fbab2229952325f200a9822863f81a
  Scenario Outline: Edit VAT details
    Given an orchard employee label_6971 for documents
    When I log in to documents
    Then I am successfully logged in to documents
    Then I can see that documents Banking & Tax Settings page works with orchard-us account name TEST GDA - USA
    Then I should be able to edit VAT details as <business_case> registered business
    Then I log out of documents

    Examples:
      | business_case |
      | UK            |
      | not UK        |

  @id_38e815e8927232af02ef7f208dead98463336c0215ee3dc777e3ead7495852ee
  Scenario Outline: Edit VAT details for whitelabel UK account ORCHARD-UK-TEST_ACCOUNT
    Given an orchard employee label_6971 for documents
    When I log in to documents
    Then I am successfully logged in to documents
    Then I can see that documents Banking & Tax Settings page works with whitelabel UK account name ORCHARD-UK-TEST_ACCOUNT
    Then I should be able to edit VAT details as <business_case> registered business
    Then I log out of documents

    Examples:
      | business_case |
      | UK            |
      | not UK        |

  @id_045d8b350c367c44336d7b7eb08f29c983fbab2229952325f200a9822863f81a
  Scenario Outline: Edit VAT details for whitelabel NO account ORCHARD-NO-TEST_ACCOUNT
    Given an orchard employee label_6971 for documents
    When I log in to documents
    Then I am successfully logged in to documents
    Then I can see that documents Banking & Tax Settings page works with whitelabel Norway account name ORCHARD-NO-TEST_ACCOUNT
    Then I should be able to edit VAT details as <business_case> registered business
    Then I log out of documents

    Examples:
      | business_case |
      | NO            |
      | not NO        |

  @id_c9b209febd5f3ab178443125a09465a5ba3eb7eaf490986636d6589c56be22dc
  Scenario: Change country of tax residence and Tax Information form changes depending on country
    Given an orchard employee label_6971 for documents
    When I log in to documents
    Then I am successfully logged in to documents
    Then I can see that documents Banking & Tax Settings page works with orchard-us account name TEST GDA - USA
    And I should be able to change country of tax residence
    Then Tax Information form should change it's fields depending on the country chosen
    Then I log out of documents
