Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aleskarova committed Jan 6, 2025
1 parent dd2bdd8 commit 5b2b0a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.*/products#!/Category-.*c.*"
urlPattern = "https://.*.company.site.*/products/Category-.*c.*"
)
assertCategoryUrlMatchesRegex(
categorySearchRequest = CategoriesSearchRequest(
Expand All @@ -191,7 +191,7 @@ class CategoriesTest : BaseEntityTest() {
categorySearchRequest = CategoriesSearchRequest(
cleanUrls = false
),
urlPattern = "https://.*.company.site.*/products#!/Category-.*/c/.*"
urlPattern = "https://.*.company.site.*/products/Category-.*/c/.*"
)
assertCategoryUrlMatchesRegex(
categorySearchRequest = CategoriesSearchRequest(
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,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.*/products#!/Product-.*p.*"
urlPattern = "https://.*.company.site.*/products/Product-.*p.*"
)
assertProductUrlMatchesRegex(
productSearchRequest = ByFilters(
Expand All @@ -256,7 +256,7 @@ class ProductsTest : BaseEntityTest() {
cleanUrls = false,
keyword = productCreateRequest.newProduct.sku
),
urlPattern = "https://.*.company.site.*/products#!/Product-.*/p/.*"
urlPattern = "https://.*.company.site.*/products/Product-.*/p/.*"
)
assertProductUrlMatchesRegex(
productSearchRequest = ByFilters(
Expand Down

0 comments on commit 5b2b0a8

Please sign in to comment.