<commit_before>Feature: deputy / report / account transactions

    @deputy
    Scenario: money in 
        Given I am logged in as "<EMAIL>" with password "<PASSWORD>"
        And I am on the accounts page of the "2016" report
        And I follow "account-moneyin"
        # check no data was previously saved 
        Then the following fields should have the corresponding values:
            | transactions_transactionsIn_0_amount        |  |
            | transactions_transactionsIn_26_amount       |  |
            | transactions_transactionsIn_26_moreDetails  |  |
        And I save the page as "report-account-transactions-empty"
        # wrong values (wrong amount types, amount without explanation, explanation without amount)
        When I fill in the following:
            | transactions_transactionsIn_0_amount        | in |
            | transactions_transactionsIn_4_amount        | 10000000001 |
        And I press "transactions_save"
        Then the following fields should have an error:
            | transactions_transactionsIn_0_amount  |
            | transactions_transactionsIn_4_amount  |
        And I save the page as "report-account-transactions-errors"
        # right values
        When I fill in the following:
            | transactions_transactionsIn_0_amount       | 1250 |
            | transactions_transactionsIn_1_amount       |  |
            | transactions_transactionsIn_2_amount       |  |
            | transactions_transactionsIn_3_amount       |  |
            | transactions_transactionsIn_4_amount       |  |
            | transactions_transactionsIn_26_amount      | 2000.0 |
            | transactions_transactionsIn_26_moreDetails | more-details-in-15  |
        And I press "transactions_save"
        Then the form should be valid
        # reload page<commit_msg>dd-1397-3 fix behat step<commit_after>Feature: deputy / report / account transactions

    @deputy
    Scenario: money in 
        Given I am logged in as "<EMAIL>" with password "<PASSWORD>"
        And I am on the accounts page of the "2016" report
        And I follow "account-moneyin"
        # check no data was previously saved 
        Then the following fields should have the corresponding values:
            | transactions_transactionsIn_0_amount        |  |
            | transactions_transactionsIn_26_amount       |  |
            | transactions_transactionsIn_26_moreDetails  |  |
        And I save the page as "report-account-transactions-empty"
        # wrong values (wrong amount types, amount without explanation, explanation without amount)
        When I fill in the following:
            | transactions_transactionsIn_0_amount        | in |
            | transactions_transactionsIn_5_amount        | 10000000001 |
        And I press "transactions_save"
        Then the following fields should have an error:
            | transactions_transactionsIn_0_amount  |
            | transactions_transactionsIn_5_amount  |
        And I save the page as "report-account-transactions-errors"
        # right values
        When I fill in the following:
            | transactions_transactionsIn_0_amount       | 1250 |
            | transactions_transactionsIn_1_amount       |  |
            | transactions_transactionsIn_2_amount       |  |
            | transactions_transactionsIn_3_amount       |  |
            | transactions_transactionsIn_5_amount       |  |
            | transactions_transactionsIn_26_amount      | 2000.0 |
            | transactions_transactionsIn_26_moreDetails | more-details-in-15  |
        And I press "transactions_save"
        Then the form should be valid
        # reload page
{'fraction_non_alphanumeric': 0.050259491942092324, 'fraction_numerical': 0.025402895383774923, 'mean_word_length': 2.2010489510489513, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4554039', 'n_tokens_mistral': 972, 'n_tokens_neox': 907, 'n_words': 264}