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 admin stock items spec #5701

Merged
merged 2 commits into from
Mar 18, 2024
Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Mar 18, 2024

Summary

This spec failed on me a number of times over the past week, so we spent some time hardening it. Super cool extra feature: We can now create a stock item with a desired on-hand quantity from within the stock item factory!

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

mamhoff added 2 commits March 18, 2024 16:00
We have to jump through all kinds of hoops to do this otherwise. Just
give the count on hand to the factory.
This spec was flaky, as it generated potentially multiple SKUs per
variant, and it generated them implicitly. These changes makes
everything very explicit, such that we get exactly one stock item per
variant with an identifiable name.
@mamhoff mamhoff requested a review from a team as a code owner March 18, 2024 15:03
@github-actions github-actions bot added changelog:solidus_core Changes to the solidus_core gem changelog:solidus_admin labels Mar 18, 2024
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.92%. Comparing base (1f42077) to head (755f381).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5701   +/-   ##
=======================================
  Coverage   88.92%   88.92%           
=======================================
  Files         700      700           
  Lines       16653    16655    +2     
=======================================
+ Hits        14808    14810    +2     
  Misses       1845     1845           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mamhoff mamhoff changed the title Fix flaky admin stoc items spec Fix flaky admin stock items spec Mar 18, 2024
@tvdeyen tvdeyen merged commit 9997bce into solidusio:main Mar 18, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants