Skip to content

Commit c3f5242

Browse files
Merge pull request #408 from Ecwid/ECWID-139883
ECWID-139883 java-api-library: CustomersTest testSearchFields failed
2 parents 5ab52a5 + b832176 commit c3f5242

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)