Skip to content

Commit

Permalink
Merge pull request #408 from Ecwid/ECWID-139883
Browse files Browse the repository at this point in the history
ECWID-139883 java-api-library: CustomersTest testSearchFields failed
  • Loading branch information
renat-ayzyatullen authored May 20, 2024
2 parents 5ab52a5 + b832176 commit c3f5242
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ class CustomersTest : BaseEntityTest() {
}

@Test
@Disabled("Will be fixed in ECWID-75364")
fun testSearchFields() {
// Creating new customer group
val customerGroupCreateRequest = CustomerGroupCreateRequest(
Expand All @@ -130,12 +129,13 @@ class CustomersTest : BaseEntityTest() {
val customerGroupCreateResult = apiClient.createCustomerGroup(customerGroupCreateRequest)
assertTrue(customerGroupCreateResult.id > 0)

val customerName = randomAlphanumeric(16)
// Creating new customer attached to this customer group
val customerCreateRequest = CustomerCreateRequest(
newCustomer = UpdatedCustomer(
email = randomEmail(),
billingPerson = UpdatedCustomer.BillingPerson(
name = randomAlphanumeric(16)
name = customerName,
),
customerGroupId = customerGroupCreateResult.id
)
Expand All @@ -146,7 +146,10 @@ class CustomersTest : BaseEntityTest() {
// Creating new order for this customer
val orderCreateRequest = OrderCreateRequest(
newOrder = UpdatedOrder(
email = customerCreateRequest.newCustomer.email
email = customerCreateRequest.newCustomer.email,
billingPerson = UpdatedOrder.PersonInfo(
name = customerName,
)
)
)
val orderCreateResult = apiClient.createOrder(orderCreateRequest)
Expand Down

0 comments on commit c3f5242

Please sign in to comment.