-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add feature spec for checkout #127
Add feature spec for checkout #127
Conversation
Something is up with the Capybara configuration for CI:
And I'd be curious to learn why this happened! Very interesting. |
9133ba9
to
b164f78
Compare
b7d3be0
to
869e851
Compare
These tests are failing due to a circle CI problem :( We are just gonna wait a couple days to see if circle CI fixes it. |
869e851
to
0cee167
Compare
Just a rebase on master to try and get the tests passing. |
75e6259
to
f793e8d
Compare
f793e8d
to
b3edd9f
Compare
Alex and I rebased against |
332e87a
to
45cdfcc
Compare
This is the command to reproduce the error on CI (with rails 6.1 and solidus 2.11)
|
I figured the test error out and I hate it
See the passing tests and last commit of this draft PR #147 |
cc: @benjaminwil |
@Noah-Silvera Can we use VCR request matchers and tell them to ignore the ID part of the request? I think if all other parts of the request are the same, that's still reasonable. |
@benjaminwil it's actually matching ok! The problem is that the body of the request that is returned contains a line item with One (brittle) fix is to update the response in the cassette to have the Another would be to intercept the VCR response, and modify it to match whatever the order line item ID is, but I don't know how you'd go about that. |
A feature test that calls out to the real TaxJar api will be added in a future commit, so we should configure VCR to allow us to record that request. Co-authored-by: Nick Van Doorn <nick@super.gd>
45cdfcc
to
025f182
Compare
I fixed the ID in the spec and cassette as discussed in slack. |
025f182
to
198d7b0
Compare
Added a comment to the change. |
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.
Thanks Noah, Nick and Co.
The most basic test of this extension is "does it calculate tax for orders" Since the testing application now automatically configures the extension, we can just test whether a basic checkout will calculate tax with Taxjar. Solidus will try and load the google apis font on a CI where no default fonts are available, so we should tell VCR to ignore this request. Co-authored-by: Nick Van Doorn <nick@super.gd>
Now that an acceptance test exists to ensure basic tax can be calculated, we can remove this manual testing step. Co-authored-by: Nick Van Doorn <nick@super.gd>
Solidus 2.11 introduces a single name field for the customer's billing and shipping contact information. Solidus < 2.11 used `firstname` and `lastname` fields. Now, this test passes on all the versions of Solidus this extension supports. Co-Authored-By: Alex Blackie <alex@super.gd>
198d7b0
to
d52a41a
Compare
Just changed the |
What is the goal of this PR?
Add a basic acceptance test for the extension so you no longer have to run the painful manual testing step before merging a PR.
Merge Checklist
- [ ] Run a sandbox app and verify taxes are being calculated