From c9201e61d9021d8c2f6c8f9e86cd8aaef7816220 Mon Sep 17 00:00:00 2001 From: Alexander Blake Date: Wed, 15 May 2024 00:37:28 +0400 Subject: [PATCH] ECWID-138355 refactored: search customer by keyword after searching by name and email --- .../com/ecwid/apiclient/v3/entity/CustomersTest.kt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt index 7754890fe..67d7f7b3c 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt @@ -152,13 +152,6 @@ class CustomersTest : BaseEntityTest() { assertTrue(orderCreateResult.id > 0) // Trying to search by different fields - - assertCustomersSearch( - positiveCustomerId = customerCreateResult.id, - positiveSearchRequest = CustomersSearchRequest(keyword = customerCreateRequest.newCustomer.billingPerson?.name), - negativeSearchRequest = CustomersSearchRequest(keyword = customerCreateRequest.newCustomer.billingPerson?.name + "foo") - ) - assertCustomersSearch( positiveCustomerId = customerCreateResult.id, positiveSearchRequest = CustomersSearchRequest(name = customerCreateRequest.newCustomer.billingPerson?.name), @@ -171,6 +164,12 @@ class CustomersTest : BaseEntityTest() { negativeSearchRequest = CustomersSearchRequest(email = customerCreateRequest.newCustomer.email + "foo") ) + assertCustomersSearch( + positiveCustomerId = customerCreateResult.id, + positiveSearchRequest = CustomersSearchRequest(keyword = customerCreateRequest.newCustomer.billingPerson?.name), + negativeSearchRequest = CustomersSearchRequest(keyword = customerCreateRequest.newCustomer.billingPerson?.name + "foo") + ) + assertCustomersSearch( positiveCustomerId = customerCreateResult.id, positiveSearchRequest = CustomersSearchRequest(customerGroupId = customerCreateRequest.newCustomer.customerGroupId),