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/admin/products_v3/actions_spec.rb: #12804

Open
filipefurtad0 opened this issue Aug 22, 2024 · 0 comments
Open

[Flaky] ./spec/system/admin/products_v3/actions_spec.rb: #12804

filipefurtad0 opened this issue Aug 22, 2024 · 0 comments

Comments

@filipefurtad0
Copy link
Contributor

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


Failures:

  1) As an enterprise user, I can manage my products Changing producers, category and tax category when they are over 11 should display search input, change the producer
     Failure/Error: expect(page).to have_selector(search_selector)
       expected to find visible css "input[placeholder=\"Search for tax categories\"]" within #<Capybara::Node::Element tag="tr" path="//HTML[1]/BODY[1]/DIV[1]/DIV[4]/DIV[1]/DIV[1]/DIV[1]/DIV[1]/TURBO-FRAME[1]/DIV[3]/DIV[1]/FORM[1]/TABLE[1]/TBODY[1]/TR[2]"> but there were no matches. Also found "", "", which matched the selector but not all filters. 
     
     [Screenshot Image]: /home/runner/work/openfoodnetwork/openfoodnetwork/tmp/capybara/screenshots/failures_r_spec_example_groups_as_an_enterprise_user_i_can_manage_my_products_changing_producers_category_and_tax_category_when_they_are_over11_should_display_search_input__change_the_producer_697.png

     
     # ./spec/support/products_helper.rb:75:in `block in validate_tomselect_with_search!'
     # ./spec/support/request/tomselect_helper.rb:37:in `open_tomselect_to_validate!'
     # ./spec/support/products_helper.rb:74:in `validate_tomselect_with_search!'
     # ./spec/system/admin/products_v3/actions_spec.rb:166:in `block (5 levels) in <top (required)>'
     # ./spec/system/admin/products_v3/actions_spec.rb:151: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:146:in `block (3 levels) in <main>'
     # ./spec/base_spec_helper.rb:146:in `block (2 levels) in <main>'

Finished in 3 minutes 20 seconds (files took 3.5 seconds to load)
73 examples, 1 failure

Failed examples:

rspec ./spec/system/admin/products_v3/actions_spec.rb:146 # As an enterprise user, I can manage my products Changing producers, category and tax category when they are over 11 should display search input, change the producer

Context

https://github.com/openfoodfoundation/openfoodnetwork/actions/runs/10517028864/job/29140386419?pr=12790

Impact and timeline

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