Closed TomashKhamlai closed 5 years ago
The same problem in #657. Look to the actual result section of the mentioned issue
Still reproducible
Added a functional test reproducing https://github.com/pmclain/graphql-ce/commit/d4d9fae9bb085aca91745b3163676fac5780e593 and am working on a fix. It only reproduces when setting the region via mutation and doesn't reproduce when using a quote address set via test data fixture. I'm assuming the issue is somewhere in how the set address resolver is setting the region.
Preconditions (*)
Steps to reproduce (*)
Step 1: No headers. No variables
Step 2: Add simple product to cart. Simplify the query. Custom options do not cause the problem here.
Variables:
Step 3:
Variables:
Step 4: Set shipping method. I believe that only Payment Method cannon be set at the moment.
Variables:
Step 5: Pay attention to
shipping_addresses
. It looks great despite of the fact that we already have "The payment method you requested is not available." even not trying to do this.Pay attention to
"selected_payment_method": null
Get information by using
query { cart ...
or repeat "Step 4"Expected result (*)
shipping_addresses[0].region.code
is equal toCA
Actual result (*)
shipping_addresses[0].region.code
is equal tonull