Skip to content

Commit 815b0a3

Browse files
committed
MC-18514: API functional test to cover filterable custom attributes in layered navigation
- fix relevance sorting fixtures
1 parent 9902f51 commit 815b0a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductSearchTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ public function testSearchAndSortByRelevance()
14861486
$this->assertEquals(3, $response['products']['total_count']);
14871487
$this->assertNotEmpty($response['products']['filters'], 'Filters should have the Category layer');
14881488
$this->assertEquals('Colorful Category', $response['products']['filters'][0]['filter_items'][0]['label']);
1489-
$productsInResponse = ['Blue briefs','Navy Striped Shoes','Grey shorts'];
1489+
$productsInResponse = ['Blue briefs','Navy Blue Striped Shoes','Grey shorts'];
14901490
$count = count($response['products']['items']);
14911491
for ($i = 0; $i < $count; $i++) {
14921492
$this->assertEquals($productsInResponse[$i], $response['products']['items'][$i]['name']);

dev/tests/integration/testsuite/Magento/Catalog/_files/products_for_relevance_sorting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
->setAttributeSetId($defaultAttributeSet)
6262
->setStoreId(1)
6363
->setWebsiteIds([1])
64-
->setName('Navy Striped Shoes')
64+
->setName('Navy Blue Striped Shoes')
6565
->setSku('navy-striped-shoes')
6666
->setPrice(40)
6767
->setWeight(8)

0 commit comments

Comments
 (0)