Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flaky] spec/system/consumer/checkout/tax_not_incl_spec.rb #12645

Open
Tracked by #8293
mkllnk opened this issue Jul 5, 2024 · 0 comments
Open
Tracked by #8293

[Flaky] spec/system/consumer/checkout/tax_not_incl_spec.rb #12645

mkllnk opened this issue Jul 5, 2024 · 0 comments

Comments

@mkllnk
Copy link
Member

mkllnk commented Jul 5, 2024

What we should change and why (this is tech debt)

Failures:

  1) As a consumer, I want to see adjustment breakdown a not-included tax for a customer with shipping address within the tax zone will be charged tax on the order
     Failure/Error: expect(order_within_zone.reload.additional_tax_total).to eq(1.3)
     
       expected: 1.3
            got: 0.0
     
       (compared using ==)
     
     [Screenshot Image]: /home/runner/work/openfoodnetwork/openfoodnetwork/tmp/capybara/screenshots/failures_r_spec_example_groups_as_a_consumer_i_want_to_see_adjustment_breakdown_a_not_included_tax_for_a_customer_with_shipping_address_within_the_tax_zone_will_be_charged_tax_on_the_order_905.png

     
     # ./spec/system/consumer/checkout/tax_not_incl_spec.rb:107:in `block (4 levels) in <top (required)>'
     # ./spec/system/support/cuprite_setup.rb:39:in `block (2 levels) in <top (required)>'
     # ./spec/base_spec_helper.rb:144:in `block (3 levels) in <main>'
     # ./spec/base_spec_helper.rb:144:in `block (2 levels) in <main>'

Finished in 1 minute 27.79 seconds (files took 3.71 seconds to load)
6 examples, 1 failure

Failed examples:

rspec ./spec/system/consumer/checkout/tax_not_incl_spec.rb:99 # As a consumer, I want to see adjustment breakdown a not-included tax for a customer with shipping address within the tax zone will be charged tax on the order

Context

Impact and timeline

Locally it failed only in one of ten runs:

$ ./script/rspec-slow-repeat 10 spec/system/consumer/checkout/tax_not_incl_spec.rb:99
...
9 of 10 passed (90%)
@sigmundpetersen sigmundpetersen mentioned this issue Jul 5, 2024
26 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: All the things 💤
Development

No branches or pull requests

1 participant