<commit_before>Feature: deputy / report / asset with variations

    @deputy
    Scenario: add asset
        Given I am logged in as "<EMAIL>" with password "<PASSWORD>"
        And I click on "reports,report-2016-open, edit-assets"
        And I save the page as "report-assets-empty"
        # wrong form
        When I follow "add-assets-button"
        And I press "asset_title_next"
        And I save the page as "report-assets-title-add-error-empty"
        Then the following fields should have an error:
            | asset_title_title |
        Then I fill in "asset_title_title" with "Vehicles"
        And I press "asset_title_next"
        Then the form should be valid
        And I save the page as "report-assets-title-added"
        # rest of the form
        When I press "asset_save"
          Then the following fields should have an error:
            | asset_value |
            | asset_description |
        When I fill in the following:
            | asset_value       | 1000000000001 |
            | asset_description | Alfa Romeo 156 JTD |
            | asset_valuationDate_day | 99 |
            | asset_valuationDate_month |  |
            | asset_valuationDate_year | 2016 |
        And I press "asset_save"
        And I save the page as "report-assets-add-error-date"
        Then the following fields should have an error:
            | asset_value |
            | asset_valuationDate_day |
            | asset_valuationDate_month |
            | asset_valuationDate_year |
        # first asset (empty date)
        Then the "asset_description" field should be expandable
        When I add the following assets:
          | title        | value       |  description        | valuationDate |
          | Artwork    | 250000.00   |  Impressionist painting  |               |
          | Vehicles    | 13000.00   |  Alfa Romeo 156 JTD |    10/11/2016  |
        And I should see " Impressionist painting" in the "list-assets" region
        And I should see "£250,000.00" in the "list-assets" region
        Then I should see "Alfa Romeo 156 JTD" in the "list-assets" region
        And I should see "£13,000.00" in the "list-assets" region
        And I save the page as "report-assets-list"
    
    @deputy
    Scenario: add asset property
        Given I am logged in as "<EMAIL>" with password "<PASSWORD>"
        And I follow "edit-assets"
        And I save the page as "report-assets-empty"
        # wrong form
        When I follow "add-assets-button"
        Then I fill in "asset_title_title" with "Property"
        And I press "asset_title_next"
        Then the form should be valid
        And I save the page as "report-assets-property-title-added"
        # rest of the form
        When I press "asset_save"
        Then the following fields should have an error:
            | asset_address |
            | asset_postcode |
            | asset_occupants |
            | asset_owned_0 |
            | asset_owned_1 |
            | asset_isSubjectToEquityRelease_0 |<commit_msg>dd-377-debts test more stable<commit_after>Feature: deputy / report / asset with variations

    @deputy
    Scenario: add asset
        Given I am logged in as "<EMAIL>" with password "<PASSWORD>"
        And I click on "reports,report-2016-open, edit-assets, assets-tab"
        And I save the page as "report-assets-empty"
        # wrong form
        When I follow "add-assets-button"
        And I press "asset_title_next"
        And I save the page as "report-assets-title-add-error-empty"
        Then the following fields should have an error:
            | asset_title_title |
        Then I fill in "asset_title_title" with "Vehicles"
        And I press "asset_title_next"
        Then the form should be valid
        And I save the page as "report-assets-title-added"
        # rest of the form
        When I press "asset_save"
          Then the following fields should have an error:
            | asset_value |
            | asset_description |
        When I fill in the following:
            | asset_value       | 1000000000001 |
            | asset_description | Alfa Romeo 156 JTD |
            | asset_valuationDate_day | 99 |
            | asset_valuationDate_month |  |
            | asset_valuationDate_year | 2016 |
        And I press "asset_save"
        And I save the page as "report-assets-add-error-date"
        Then the following fields should have an error:
            | asset_value |
            | asset_valuationDate_day |
            | asset_valuationDate_month |
            | asset_valuationDate_year |
        # first asset (empty date)
        Then the "asset_description" field should be expandable
        When I add the following assets:
          | title        | value       |  description        | valuationDate |
          | Artwork    | 250000.00   |  Impressionist painting  |               |
          | Vehicles    | 13000.00   |  Alfa Romeo 156 JTD |    10/11/2016  |
        And I should see " Impressionist painting" in the "list-assets" region
        And I should see "£250,000.00" in the "list-assets" region
        Then I should see "Alfa Romeo 156 JTD" in the "list-assets" region
        And I should see "£13,000.00" in the "list-assets" region
        And I save the page as "report-assets-list"
    
    @deputy
    Scenario: add asset property
        Given I am logged in as "<EMAIL>" with password "Abcd1234"
        And I click on "reports,report-2016-open, edit-assets, assets-tab"
        And I save the page as "report-assets-empty"
        # wrong form
        When I follow "add-assets-button"
        Then I fill in "asset_title_title" with "Property"
        And I press "asset_title_next"
        Then the form should be valid
        And I save the page as "report-assets-property-title-added"
        # rest of the form
        When I press "asset_save"
        Then the following fields should have an error:
            | asset_address |
            | asset_postcode |
            | asset_occupants |
            | asset_owned_0 |
            | asset_owned_1 |
            | asset_isSubjectToEquityRelease_0 |
{'fraction_non_alphanumeric': 0.06697157791571381, 'fraction_numerical': 0.025645213982358705, 'mean_word_length': 1.910171102661597, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1885308', 'n_tokens_mistral': 1797, 'n_tokens_neox': 1666, 'n_words': 605}