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 customer return spec #5757

Merged
merged 1 commit into from
May 17, 2024

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented May 17, 2024

Summary

This spec tests behavior from the backend gem, and it relies on the ordering of return items to be consistent. However, it appears to not be consistent, so sometimes this spec fails, because the receivable return item is in line 1 of the table, not in line 2.

I expect the new admin to get this functionality at some point in time, so I'm not bothering with fixing the order of return items, just making sure that the remaining item is received.

See https://output.circle-artifacts.com/output/job/886635ab-de5f-4926-8d31-b3a11e631479/artifacts/0/test-artifacts/screenshot_2024-05-17-13-05-16.279.html for an HTML screenshot of the failing spec.

This spec tests behavior from the backend gem, and it relies on the
ordering of return items to be consistent. However, it appears to not be
consistent, so sometimes this spec fails, because the receivable return
item is in line 1 of the table, not in line 2.

I expect the new admin to get this functionality at some point in time,
so I'm not bothering with fixing the order of return items, just making
sure that the remaining item is received.

See https://output.circle-artifacts.com/output/job/886635ab-de5f-4926-8d31-b3a11e631479/artifacts/0/test-artifacts/screenshot_2024-05-17-13-05-16.279.html
for an HTML screenshot of the failing spec.
@mamhoff mamhoff requested a review from a team as a code owner May 17, 2024 13:20
@github-actions github-actions bot added the changelog:solidus_backend Changes to the solidus_backend gem label May 17, 2024
Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.87%. Comparing base (ae2be1f) to head (ce08e35).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5757   +/-   ##
=======================================
  Coverage   88.87%   88.87%           
=======================================
  Files         707      707           
  Lines       16814    16814           
=======================================
  Hits        14943    14943           
  Misses       1871     1871           

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

@tvdeyen tvdeyen merged commit ce509de into solidusio:main May 17, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_backend Changes to the solidus_backend gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants