<commit_before>Feature: Match Existing Ledger Items
  In order to keep the company in order
  As a user
  I want to be able to reconcile by matching existing ledger items
  
  Background:
    Given I am logged in
      And I have a default ledger set up
      And an account "Bank A/C" exists with parent: account "Assets"
      And an account "Coffee" exists with parent: account "Expenses"
      And a person "Self" exists with name: "Self"
      And a person "Starbucks" exists with name: "Other"
    
  Scenario: View matched ledger items    
    Given a match exists
      And a ledger_item exists with total_amount: "-2.99", currency: "USD", account: account "Bank A/C", sender: person "Self", recipient: person "Other", match: the match
      And a ledger_item exists with total_amount: "2.99", currency: "USD", account: account "Coffee", sender: person "Other", recipient: person "Self", match: the match
    When I go to path "/ledger_items"
    Then I should see "View matches"
    When I follow "View matches"
    Then I should see "$2.99"
      And I should see "- $2.99"
      And I should see "Expenses"
      And I should see "Assets"
      And I should see "Self"
      And I should see "Other"
      
    
  Scenario: Match two ledger items and reconcile
    Given a ledger_item exists with id: 1, total_amount: "-2.99", currency: "USD", account: account "Bank A/C", sender: person "Self", recipient: person "Other"
      And a ledger_item exists with id: 2, total_amount: "2.99", currency: "USD", account: account "Coffee", sender: person "Other", recipient: person "Self"
    When I go to path "/ledger_items"
      And I press "Match" within "#ledger_item_1"
    Then I should see "$2.99" within "#cart"
      And I should see "Expenses" within "#cart"
      And I should not see "Save match"
      And I should not see a button called "Match" within "#ledger_item_1"<commit_msg>Fixing mistake in previous commit<commit_after>Feature: Match Existing Ledger Items
  In order to keep the company in order
  As a user
  I want to be able to reconcile by matching existing ledger items
  
  Background:
    Given I am logged in
      And I have a default ledger set up
      And an account "Bank A/C" exists with parent: account "Assets"
      And an account "Coffee" exists with parent: account "Expenses"
      And a person "Self" exists with name: "Self"
      And a person "Starbucks" exists with name: "Starbucks"
    
  Scenario: View matched ledger items    
    Given a match exists
      And a ledger_item exists with total_amount: "-2.99", currency: "USD", account: account "Bank A/C", sender: person "Self", recipient: person "Starbucks", match: the match
      And a ledger_item exists with total_amount: "2.99", currency: "USD", account: account "Coffee", sender: person "Starbucks", recipient: person "Self", match: the match
    When I go to path "/ledger_items"
    Then I should see "View matches"
    When I follow "View matches"
    Then I should see "$2.99"
      And I should see "- $2.99"
      And I should see "Expenses"
      And I should see "Assets"
      And I should see "Self"
      And I should see "Other"
      
    
  Scenario: Match two ledger items and reconcile
    Given a ledger_item exists with id: 1, total_amount: "-2.99", currency: "USD", account: account "Bank A/C", sender: person "Self", recipient: person "Starbucks"
      And a ledger_item exists with id: 2, total_amount: "2.99", currency: "USD", account: account "Coffee", sender: person "Starbucks", recipient: person "Self"
    When I go to path "/ledger_items"
      And I press "Match" within "#ledger_item_1"
    Then I should see "$2.99" within "#cart"
      And I should see "Expenses" within "#cart"
      And I should not see "Save match"
      And I should not see a button called "Match" within "#ledger_item_1"
{'fraction_non_alphanumeric': 0.0891089108910891, 'fraction_numerical': 0.013027618551328817, 'mean_word_length': 3.177366702937976, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '6713337', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1112, 'n_words': 539}