Skip to content

Commit

Permalink
adjust behat to verify ledger table: Scenario: Cashier cancel purchas…
Browse files Browse the repository at this point in the history
…e when rounding of discounts disabled but consumption enabled (#74)
  • Loading branch information
semteacher committed Nov 8, 2024
1 parent de66b1c commit fbd9558
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/behat/shopping_cart_cashier_consumption.feature
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,33 @@ Feature: Cashier actions in shopping cart with consumption enabled
And the field "Cancelation fee" matches value "0"
And I press "Save changes"
And I should see "23.6" in the "ul.cashier-history-items span.credit_total" "css_element"
## Verify records in the ledger table.
And I follow "Cash report"
And I wait until the page is ready
And I should see "10.00" in the "#cash_report_table_r6" "css_element"
And I should see "Test item 1" in the "#cash_report_table_r6" "css_element"
And I should see "Cashier (Cash)" in the "#cash_report_table_r6" "css_element"
And I should see "Success" in the "#cash_report_table_r6" "css_element"
And I should see "20.30" in the "#cash_report_table_r5" "css_element"
And I should see "Test item 2" in the "#cash_report_table_r5" "css_element"
And I should see "Cashier (Cash)" in the "#cash_report_table_r5" "css_element"
And I should see "Success" in the "#cash_report_table_r5" "css_element"
And I should see "13.80" in the "#cash_report_table_r4" "css_element"
And I should see "Test item 3" in the "#cash_report_table_r4" "css_element"
And I should see "Cashier (Cash)" in the "#cash_report_table_r4" "css_element"
And I should see "Success" in the "#cash_report_table_r4" "css_element"
And I should see "3.30" in the "#cash_report_table_r3" "css_element"
And I should see "Canceled - Test item 1" in the "#cash_report_table_r3" "css_element"
And I should see "Credits" in the "#cash_report_table_r3" "css_element"
And I should see "Canceled" in the "#cash_report_table_r3" "css_element"
And I should see "20.30" in the "#cash_report_table_r2" "css_element"
And I should see "Canceled - Test item 2" in the "#cash_report_table_r2" "css_element"
And I should see "Credits" in the "#cash_report_table_r2" "css_element"
And I should see "Canceled" in the "#cash_report_table_r2" "css_element"
And I should see "0.00" in the "#cash_report_table_r1" "css_element"
And I should see "Canceled - Test item 3" in the "#cash_report_table_r1" "css_element"
And I should see "Credits" in the "#cash_report_table_r1" "css_element"
And I should see "Canceled" in the "#cash_report_table_r1" "css_element"

@javascript
Scenario: Cashier cancel purchase when consumption and rounding of discounts enabled
Expand Down

0 comments on commit fbd9558

Please sign in to comment.