-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 redirectUrl to staff and user create mutations #4717
Add redirectUrl to staff and user create mutations #4717
Conversation
Here is the report for 5ccd99a (mirumee/saleor @ 4716/redirect_url_in_staff_create_mutation) No differences were found. (click me)
# api.benchmark checkout
test name left count right count duplicate count
------------------------------------ ----------- ----------- ---------------
add billing address to checkout 34 34 20
add shipping to checkout 7 7 0
checkout payment charge 14 14 0
complete checkout 6 6 0
create checkout 48 48 24
# api.benchmark homepage
test name left count right count duplicate count
------------------------------------ ----------- ----------- ---------------
retrieve main menu 5 5 0
retrieve product list 4 4 0
retrieve secondary menu 5 5 0
retrieve shop 2 2 0
# api.benchmark product
test name left count right count duplicate count
------------------------------------ ----------- ----------- ---------------
product details 13 13 3
# api.benchmark variant
test name left count right count duplicate count
------------------------------------ ----------- ----------- ---------------
retrieve variant list 15 15 8 |
Codecov Report
@@ Coverage Diff @@
## master #4717 +/- ##
==========================================
+ Coverage 91.63% 91.66% +0.02%
==========================================
Files 310 310
Lines 18633 18659 +26
Branches 1843 1847 +4
==========================================
+ Hits 17075 17104 +29
+ Misses 1045 1042 -3
Partials 513 513
Continue to review full report at Codecov.
|
cee764d
to
d509906
Compare
d509906
to
c249b97
Compare
) | ||
content = get_graphql_content(response) | ||
data = content["data"]["customerCreate"] | ||
assert data["errors"][0]["field"] == "redirectUrl" |
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.
Comparing the message as well would be better to ensure that's actually the error we were expecting, and to allow developers to search for the associated test
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.
I hope that today we'll merge #4676 which would allow us to check the error codes in cases like this. Relying on error messages comparisons in tests always feels a little bit clunky to me ;)
) | ||
content = get_graphql_content(response) | ||
data = content["data"]["customerCreate"] | ||
assert data["errors"][0]["field"] == "redirectUrl" |
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.
Same
) | ||
content = get_graphql_content(response) | ||
data = content["data"]["customerCreate"] | ||
assert data["errors"][0]["field"] == "redirectUrl" |
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.
Ditto
c112349
to
5ccd99a
Compare
I want to merge this change because resolve #4716
TODO:
Screenshots
Pull Request Checklist