Skip to content

Commit 5951f68

Browse files
committed
MAGETWO-51459: [FT] CreateCategoryEntityTest fail when system message about indexers update is displayed
- Fixed MFT test;
1 parent 2f77c8f commit 5951f68

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Category/Tree.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ public function assignCategory($parentCategoryName, $childCategoryName)
187187
*/
188188
public function expandAllCategories()
189189
{
190+
$this->getTemplateBlock()->waitLoader();
190191
$this->_rootElement->find($this->expandAll)->click();
192+
$this->getTemplateBlock()->waitLoader();
191193
}
192194
}

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/ProductList/TopToolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getSelectSortType()
4848
public function getSortType()
4949
{
5050
$content = $this->_rootElement->find($this->sorter)->getText();
51-
return explode("\n", $content);
51+
return array_values(array_filter(array_map('trim', explode("\n", $content))));
5252
}
5353

5454
/**

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Category/CreateCategoryEntityTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
<constraint name="Magento\Catalog\Test\Constraint\AssertCategoryForAssignedProducts" />
9797
</variation>
9898
<variation name="CreateCategoryEntityTestVariation5_Anchor_MostOfFields">
99+
<data name="tag" xsi:type="string">test_type:acceptance_test</data>
99100
<data name="description" xsi:type="string">Create anchor subcategory with all fields</data>
100101
<data name="addCategory" xsi:type="string">addSubcategory</data>
101102
<data name="category/data/parent_id/dataset" xsi:type="string">default_category</data>

0 commit comments

Comments
 (0)