-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
Fix flaky checkout auth spec #8318
Conversation
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did the same modification here:
3d87485#diff-5c1d6c796b83b24b53a26a2ade65fc6db38bbcb755d1cf4babe613b5718d2843R623 :)
There was a problem hiding this comment.
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 👍
74d7b0b
to
8640404
Compare
Ok, updated with the correct file 👍 sorry for the mix-up! 🤯 |
Already approved then ;) |
I guess updating it into system is not really changing much in terms of flakyness :-) 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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤞
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