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 27, 2024
1 parent f1e707e commit b8c802a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -601,7 +601,8 @@ private fun generateTestCategory(
seoDescriptionTranslated = LocalizedValueMap(
"ru" to "",
"en" to ""
)
),
customSlug = ""
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b8c802a

Please sign in to comment.