Closed DanielWright closed 8 years ago
I would vote for option #2 at this point.
@DanielWright
Changing the Shopify shop or if the "state" of the shop changes all the tests should still be green.
Hm. When I ran the suite without the "correct" shop credentials, my spec suite failed.
I have removed VCR due to multiple issues I was hitting, those issues are detailed in their respective commit messages, I needed some help in order to figure out the best way to solve those issues.
But yes, if no cassettes were saved, we are required to have a valid shop in order to correctly create the items on Shopify else I am unsure how we'll be able to retrieve them (if we put VCR aside).
Once the VCR problems are resolved then we'll be good to go.
The issue is this line, which cites a specific line-item ID in the Shopify store. If I use any other store, that line-item won't exist.
I'll have it double-checked then! :)
@DanielWright Actually the line-item ID specified is not relevant, it will correctly assign the variant to the product without creating it. It acts like "stub" if you want.
It doesn't look for that line-item anywhere with how the Shopify API is made. I am unsure what the problem you were hitting was, but I can't seem to reproduce it.
This issue can now be closed.
The test suite relies on the Shopify shop being in a specific state. This is exceedingly brittle, even as a "private" integration. If the state of the shop changes, or we use a different shop, the tests break. Some ideas:
Thoughts?