From b8c802ac2ea89556e1dafb0a43be73561e0be9ca Mon Sep 17 00:00:00 2001 From: carl Date: Tue, 27 Aug 2024 10:49:28 +0400 Subject: [PATCH] ECWID-147482: fix unit tests --- .../kotlin/com/ecwid/apiclient/v3/entity/CategoriesTest.kt | 5 +++-- .../kotlin/com/ecwid/apiclient/v3/entity/ProductsTest.kt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CategoriesTest.kt b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CategoriesTest.kt index 32178d8ca..1dc0f3e35 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CategoriesTest.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CategoriesTest.kt @@ -179,7 +179,7 @@ class CategoriesTest : BaseEntityTest() { // Searching categories with different combinations of baseUrl and cleanUrls parameters assertCategoryUrlMatchesRegex( categorySearchRequest = CategoriesSearchRequest(), - urlPattern = "https://.*.company.site.*/Category-.*-c.*" + urlPattern = "https://.*.company.site.*/products/Category-.*-c.*" ) assertCategoryUrlMatchesRegex( categorySearchRequest = CategoriesSearchRequest( @@ -601,7 +601,8 @@ private fun generateTestCategory( seoDescriptionTranslated = LocalizedValueMap( "ru" to "", "en" to "" - ) + ), + customSlug = "" ) } diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/entity/ProductsTest.kt b/src/test/kotlin/com/ecwid/apiclient/v3/entity/ProductsTest.kt index fdb1ed5a8..1008f7e8c 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/entity/ProductsTest.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/entity/ProductsTest.kt @@ -242,7 +242,7 @@ class ProductsTest : BaseEntityTest() { // Searching products with different combinations of baseUrl and cleanUrls parameters assertProductUrlMatchesRegex( productSearchRequest = ByFilters(keyword = productCreateRequest.newProduct.sku), - urlPattern = "https://.*.company.site.*/Product-.*-p.*" + urlPattern = "https://.*.company.site.*/products/Product-.*-p.*" ) assertProductUrlMatchesRegex( productSearchRequest = ByFilters(