Skip to content

Commit 1024838

Browse files
committed
MC-32871: [MFTF] 21 Failing MFTF Tests in Page Builder Develop Branch
- add secondary sort by entity to mimic behavior of Page Builder category page and products to show newest entity first
1 parent 9f5d25a commit 1024838

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ public function testQueryCategoryWithDisabledChildren()
278278
//Check base category products
279279
$expectedBaseCategoryProducts = [
280280
['sku' => 'simple', 'name' => 'Simple Product'],
281-
['sku' => '12345', 'name' => 'Simple Product Two'],
282-
['sku' => 'simple-4', 'name' => 'Simple Product Three']
281+
['sku' => 'simple-4', 'name' => 'Simple Product Three'],
282+
['sku' => '12345', 'name' => 'Simple Product Two']
283283
];
284284
$this->assertCategoryProducts($baseCategory, $expectedBaseCategoryProducts);
285285
//Check base category children
@@ -294,8 +294,8 @@ public function testQueryCategoryWithDisabledChildren()
294294
$this->assertEquals('Its a description of Test Category 1.2', $firstChildCategory['description']);
295295

296296
$firstChildCategoryExpectedProducts = [
297-
['sku' => 'simple', 'name' => 'Simple Product'],
298-
['sku' => 'simple-4', 'name' => 'Simple Product Three']
297+
['sku' => 'simple-4', 'name' => 'Simple Product Three'],
298+
['sku' => 'simple', 'name' => 'Simple Product']
299299
];
300300
$this->assertCategoryProducts($firstChildCategory, $firstChildCategoryExpectedProducts);
301301
$firstChildCategoryChildren = [];

0 commit comments

Comments
 (0)