File tree Expand file tree Collapse file tree
src/test/kotlin/com/ecwid/apiclient/v3/entity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ class CustomersTest : BaseEntityTest() {
119119 }
120120
121121 @Test
122- @Disabled(" Will be fixed in ECWID-75364" )
123122 fun testSearchFields () {
124123 // Creating new customer group
125124 val customerGroupCreateRequest = CustomerGroupCreateRequest (
@@ -130,12 +129,13 @@ class CustomersTest : BaseEntityTest() {
130129 val customerGroupCreateResult = apiClient.createCustomerGroup(customerGroupCreateRequest)
131130 assertTrue(customerGroupCreateResult.id > 0 )
132131
132+ val customerName = randomAlphanumeric(16 )
133133 // Creating new customer attached to this customer group
134134 val customerCreateRequest = CustomerCreateRequest (
135135 newCustomer = UpdatedCustomer (
136136 email = randomEmail(),
137137 billingPerson = UpdatedCustomer .BillingPerson (
138- name = randomAlphanumeric( 16 )
138+ name = customerName,
139139 ),
140140 customerGroupId = customerGroupCreateResult.id
141141 )
@@ -146,7 +146,10 @@ class CustomersTest : BaseEntityTest() {
146146 // Creating new order for this customer
147147 val orderCreateRequest = OrderCreateRequest (
148148 newOrder = UpdatedOrder (
149- email = customerCreateRequest.newCustomer.email
149+ email = customerCreateRequest.newCustomer.email,
150+ billingPerson = UpdatedOrder .PersonInfo (
151+ name = customerName,
152+ )
150153 )
151154 )
152155 val orderCreateResult = apiClient.createOrder(orderCreateRequest)
You can’t perform that action at this time.
0 commit comments