Skip to content

Saleor Core: the high performance, composable, headless commerce API.

CR fixes

Pacu28c54796fd250
diff --git a/docs/architecture/gdpr.rst b/docs/architecture/gdpr.rst
index 93471a6717..d1ad8d60cc 100644
--- a/docs/architecture/gdpr.rst
+++ b/docs/architecture/gdpr.rst
@@ -15,7 +15,7 @@ sent to the email address associated with the account.
Deleting a user will delete his account instance, but will leave all the data
used for the checkout process untouched, for the financial record.
-This behavior in accordance with the GDPR regulations.
+This behavior is in accordance with the GDPR regulations.
Cookies
-------
diff --git a/templates/account/account_delete.html b/templates/account/account_delete.html
index bbe1548353..b357407dc4 100644
--- a/templates/account/account_delete.html
+++ b/templates/account/account_delete.html
@@ -14,10 +14,11 @@
data-src="{% static 'images/login-bg.png' %}"
data-srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x">
<h1>{% trans "Sorry to see you go!" context "Message displayed to the user after his account was deleted" %}</h1>
- <p>{% blocktrans trimmed context "Message displayed to the user after his account was deleted" %}
+ <p>
+ {% blocktrans trimmed context "Message displayed to the user after his account was deleted" %}
Your account was deleted successfully.
- If any problems or questions contact us.
- {% endblocktrans %}
+ In case of any problems or questions please contact us.
+ {% endblocktrans %}
</p>
</div>
</div>
diff --git a/templates/order/checkout_success.html b/templates/order/checkout_success.html
index 2c2b05097c..4d5c7373a1 100644
--- a/templates/order/checkout_success.html
+++ b/templates/order/checkout_success.html
@@ -19,7 +19,7 @@
<p>{% blocktrans trimmed with order_url=order.get_absolute_url context "Checkout text" %}
We've sent a confirmation email with details to <span>{{ email }}</span>.<br>
- If any problems or questions contact us.
+ In case of any problems or questions please contact us.
{% endblocktrans %}</p>
</div>
<div class="m-auto">
diff --git a/templates/order/checkout_success_anonymous.html b/templates/order/checkout_success_anonymous.html
index 02daa021d0..5cf8bd5a06 100644
--- a/templates/order/checkout_success_anonymous.html
+++ b/templates/order/checkout_success_anonymous.html
@@ -19,7 +19,7 @@
<p>{% blocktrans trimmed with order_url=order.get_absolute_url context "Checkout text" %}
We've sent a confirmation email with details to <span>{{ email }}</span>.<br>
- If any problems or questions contact us.
+ In case of any problems or questions please contact us.
{% endblocktrans %}</p>
<div class="row checkout__thankyoupage__form">
<div class="col-md-6 push-md-6">
diff --git a/tests/dashboard/test_permissions.py b/tests/dashboard/test_permissions.py
index 2161e5c2ff..8b026eca3f 100644
--- a/tests/dashboard/test_permissions.py
+++ b/tests/dashboard/test_permissions.py
@@ -1277,4 +1277,14 @@ def test_staff_group_member_can_edit_menu_items(
def test_staff_group_member_can_remove_user(
staff_client, staff_user, staff_group, permission_edit_user):
- pass
+ url = reverse('dashboard:customer-delete', args=[staff_user.pk])
+
+ response = staff_client.get(url)
+ assert response.status_code == 302
+
+ staff_group.permissions.add(permission_edit_user)
+ staff_user.groups.add(staff_group)
+ staff_user = User.objects.get(pk=staff_user.pk)
+
+ response = staff_client.get(url)
+ assert response.status_code == 200