Skip to content

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

Add test for dashboar/products/ with filter and pagination

michalc8f6515fa31c
diff --git a/tests/dashboard/test_product.py b/tests/dashboard/test_product.py
index 9e68cfb993..5f7e071301 100644
--- a/tests/dashboard/test_product.py
+++ b/tests/dashboard/test_product.py
@@ -586,3 +586,10 @@ def test_product_list_filters_no_results(admin_client, product_list):
response = admin_client.get(url, data)
assert response.status_code == 200
assert list(response.context['filter'].qs) == []
+
+
+def tets_product_list_filters_with_pagination(admin_client, product_list):
+ data = {'page': '1'}
+ url = reverse('dashboard:product-list')
+ response = admin_client.get(url, data)
+ assert response.status_code == 200