@accounting_run_sanity_check
Feature: Statements
  In order to sanity check the accounting run
  As a Workstation end user
  I need the statements page to look correct

  @accounting_run_monthly
  Scenario: GBP currency, US number format, Monthly label (19405)
    Given a Workstation label_19405 user
    When I visit the Workstation::AccountingStatementsPage
    Then the statement for the current period should be visible
    When I request a custom report for the last period
    Then the last report should be displayed on the requested reports history page
    When I visit the Workstation::AccountingBreakdownPage
    Then the Revenue listed should match that of the BreakdownPage

  @accounting_run_monthly
  Scenario: Distributor (18072)
    Given a Workstation label_18072 user
    When I visit the Workstation::AccountingStatementsPage
    Then the statement for the current period should be visible
    When I request a custom report for the last period
    Then the last report should be displayed on the requested reports history page
    When I visit the Workstation::AccountingBreakdownPage
    Then the Revenue listed should match that of the BreakdownPage

  @accounting_run_monthly
  Scenario: Euro currency, European number format, French language (20329)
    Given a Workstation label_20329 user
    When I visit the Workstation::AccountingStatementsPage
    Then the statement for the current period should be visible
    When I request a custom report for the last period
    Then the last report should be displayed on the requested reports history page
    When I visit the Workstation::AccountingBreakdownPage
    Then the Revenue listed should match that of the BreakdownPage

  @accounting_run_quarterly
  Scenario: USD currency, Quarterly label (17901)
    Given a Workstation label_17901 user
    When I visit the Workstation::AccountingStatementsPage
    Then the statement for the current period should be visible
    When I request a custom report for the last period
    Then the last report should be displayed on the requested reports history page
    When I visit the Workstation::AccountingBreakdownPage
    Then the Revenue listed should match that of the BreakdownPage

  @accounting_run_quarterly
  Scenario: Euro currency, European number format (11678)
    Given a Workstation label_11678 user
    When I visit the Workstation::AccountingStatementsPage
    Then the statement for the current period should be visible
    When I request a custom report for the last period
    Then the last report should be displayed on the requested reports history page
    When I visit the Workstation::AccountingBreakdownPage
    Then the Revenue listed should match that of the BreakdownPage

  @accounting_run_quarterly
  Scenario: Yen currency, Distributor (22264)
    Given a Workstation label_22264 user
    When I visit the Workstation::AccountingStatementsPage
    Then the statement for the current period should be visible
    When I request a custom report for the last period
    Then the last report should be displayed on the requested reports history page
    When I visit the Workstation::AccountingBreakdownPage
    Then the Revenue listed should match that of the BreakdownPage
