Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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