rubyforgood / human-essentials

Human Essentials is an inventory management system for diaper, incontinence, and period-supply banks. It supports them in distributing to partners, tracking inventory, and reporting stats and analytics.
https://humanessentials.app
MIT License
436 stars 449 forks source link

Flaky distribution test #4381

Open dorner opened 1 month ago

dorner commented 1 month ago

Summary

The following test fails only sometimes:

https://github.com/rubyforgood/human-essentials/actions/runs/9218854440/job/25363083070?pr=4378

Failures:

  1) Distributions When creating a distribution from a donation when editing that distribution User creates duplicate line items
     Failure/Error: click_on "Distributions", match: :first

     Capybara::ElementNotFound:
       Unable to find visible link or button "Distributions"

     # ./spec/system/distribution_system_spec.rb:397:in `block (4 levels) in <top (required)>'

Seed 50836 with tests "spec/requests/adjustments_requests_spec.rb" "spec/requests/admin/organizations_requests_spec.rb" "spec/requests/audits_requests_spec.rb" "spec/requests/donation_sites_requests_spec.rb" "spec/requests/organization_requests_spec.rb" "spec/requests/partners/individuals_requests_controller_spec.rb" "spec/requests/product_drive_participants_requests_spec.rb" "spec/requests/reports/distributions_summary_requests_spec.rb" "spec/requests/reports/purchases_summary_requests_spec.rb" "spec/requests/users/omniauth_callbacks_requests_spec.rb" "spec/system/admin/account_requests_system_spec.rb" "spec/system/admin/users_system_spec.rb" "spec/system/distribution_system_spec.rb" "spec/system/layout_system_spec.rb" "spec/system/partner_system_spec.rb" "spec/system/partners/partner_distribution_system_spec.rb" "spec/system/question_system_spec.rb"

Things to consider

No response

Criteria for Completion

No response