Skip to content

Commit

Permalink
ECWID-147482: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlecwid committed Aug 26, 2024
1 parent f1e707e commit 2b60dc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ 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(
cleanUrls = true
),
urlPattern = "https://.*.company.site.*/Category-.*-c.*"
urlPattern = "https://.*.company.site.*/products#!/Category-.*-c.*"
)
assertCategoryUrlMatchesRegex(
categorySearchRequest = CategoriesSearchRequest(
Expand Down Expand Up @@ -601,7 +601,8 @@ private fun generateTestCategory(
seoDescriptionTranslated = LocalizedValueMap(
"ru" to "",
"en" to ""
)
),
customSlug = ""
)
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/kotlin/com/ecwid/apiclient/v3/entity/ProductsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,14 @@ 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(
cleanUrls = true,
keyword = productCreateRequest.newProduct.sku
),
urlPattern = "https://.*.company.site.*/Product-.*-p.*"
urlPattern = "https://.*.company.site.*/products#!/Product-.*-p.*"
)
assertProductUrlMatchesRegex(
productSearchRequest = ByFilters(
Expand Down

0 comments on commit 2b60dc9

Please sign in to comment.