@documents
@lambda_documents_payee
Feature: Documents Login

  @id_fc950fe68170265a972272bac8961b4aaf231abb18202522004c120111e3e187
  Scenario: Documents page smoke test
    Given an orchard employee label_6971 for documents
    When I log in
    Then I see that documents page loads
    Then I can see that documents Banking & Tax Settings page works with awal-uk account name TEST GDA - USA
    Then I log out

  @id_fe66b5ccec5ba4ec29bd2196d5a5f72c0ab3e5b70874df88f5afc5eda8085def
  Scenario Outline: Edit VAT details
    Given an orchard employee label_6971 for documents
    When I log in
    Then I can see that documents Banking & Tax Settings page works with awal-uk account name TEST GDA - USA
    And I should be able to pick country of tax residence - Angola
    Then I should be able to edit VAT details as <business_case> registered business

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

  @id_fb435165cecb179c89cb8ef3ecb36a6b4aca4d3c074185f36aa793b7cbb8a72c
  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
    Then I can see that documents Banking & Tax Settings page works with whitelabel UK account name ORCHARD-UK-TEST_ACCOUNT
    And I should be able to pick country of tax residence - Angola
    Then I should be able to edit VAT details as <business_case> registered business

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

  @id_82cbda2b2a5d2a8fe5e236fd5ccd74908654f5bd4c14d32506579d56ae3463cf
  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
    Then I can see that documents Banking & Tax Settings page works with whitelabel Norway account name ORCHARD-NO-TEST_ACCOUNT
    And I should be able to pick country of tax residence - Angola
    Then I should be able to edit VAT details as <business_case> registered business

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

  @id_05571a0fa031ea58f6b1119f9e505911ede59361bdff69fc05d62dc9fccb233c
  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
    Then I can see that documents Banking & Tax Settings page works with awal-uk 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
