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

Fix flaky checkout auth spec #8318

Merged

Conversation

filipefurtad0
Copy link
Contributor

What? Why?

Closes #8281

Updates this feature spec into system spec, as a first approach to mitigate flakyness.

What should we test?

Green build.

Release notes

Updates /consumer/shopping/shopping_spec.rb into system spec.

Changelog Category: Technical changes

@@ -620,7 +620,7 @@ def shows_products_without_customer_warning
def expect_out_of_stock_behavior
# Shows an "out of stock" modal, with helpful user feedback
within(".out-of-stock-modal") do
expect(page).to have_content I18n.t('js.out_of_stock.out_of_stock_text')
expect(page).to have_content I18n.t('js.out_of_stock.out_of_stock_text').strip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@filipefurtad0 filipefurtad0 Oct 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, sorry seems I have mixed up files?! I actually wanted to address a checkout_auth_spec.rb file - my mistake. I'll nuke these commits to work start over 👍

@filipefurtad0 filipefurtad0 force-pushed the fix_flaky_checkout_auth_spec branch from 74d7b0b to 8640404 Compare October 8, 2021 12:47
@filipefurtad0 filipefurtad0 reopened this Oct 8, 2021
@filipefurtad0
Copy link
Contributor Author

Ok, updated with the correct file 👍 sorry for the mix-up! 🤯

@jibees
Copy link
Contributor

jibees commented Oct 8, 2021

Already approved then ;)

@filipefurtad0
Copy link
Contributor Author

filipefurtad0 commented Oct 8, 2021

I guess updating it into system is not really changing much in terms of flakyness :-)

https://github.com/openfoodfoundation/openfoodnetwork/pull/8318/checks?check_run_id=3838837172

rspec ./spec/system/consumer/shopping/checkout_auth_spec.rb:49 # As a consumer I want to check out my cart using the checkout populates user details once logged in


 Failures:

  1) As a consumer I want to check out my cart using the checkout populates user details once logged in
     Failure/Error: expect(page).to have_field 'First Name', with: 'Foo'
       expected to find visible field "First Name" that is not disabled but there were no matches. Also found "", which matched the selector but not all filters. 
     

Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞

@mkllnk mkllnk merged commit dcc8dc7 into openfoodfoundation:master Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Flaky] spec/features/consumer/shopping/checkout_auth_spec.rb
3 participants