Skip to content

Commit 17a1c3a

Browse files
author
Viktor Sevch
committed
MC-23536: CatalogProductListWidgetOrderTest is flaky and fails randomly
1 parent 3e15d23 commit 17a1c3a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

app/code/Magento/CatalogWidget/Test/Mftf/Test/CatalogProductListCheckWidgetOrderTest.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<title value="Checking order of products in the 'catalog Products List' widget"/>
1616
<description value="Check that products are ordered with recently added products first"/>
1717
<severity value="MAJOR"/>
18-
<testCaseId value="MC-13794"/>
18+
<testCaseId value="MC-27616"/>
1919
<useCaseId value="MC-5905"/>
2020
<group value="catalogWidget"/>
2121
<group value="catalog"/>
@@ -46,7 +46,7 @@
4646
<deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/>
4747
<deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/>
4848
<deleteData createDataKey="createThirdProduct" stepKey="deleteThirdProduct"/>
49-
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
49+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
5050
</after>
5151
<!--Open created cms page-->
5252
<actionGroup ref="AdminOpenCmsPageActionGroup" stepKey="openEditPage">
@@ -57,10 +57,8 @@
5757
<!--Add widget to cms page-->
5858
<waitForElementVisible selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="waitInsertWidgetIconVisible"/>
5959
<click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickInsertWidgetIcon" />
60-
<waitForPageLoad stepKey="waitForPageLoad1" />
6160
<waitForElementVisible selector="{{WidgetSection.WidgetType}}" stepKey="waitForWidgetTypeSelectorVisible"/>
6261
<selectOption selector="{{WidgetSection.WidgetType}}" userInput="Catalog Products List" stepKey="selectCatalogProductsList" />
63-
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear1" />
6462
<waitForElementVisible selector="{{WidgetSection.AddParam}}" stepKey="waitForAddParamBtnVisible"/>
6563
<click selector="{{WidgetSection.AddParam}}" stepKey="clickAddParamBtn" />
6664
<waitForElementVisible selector="{{WidgetSection.ConditionsDropdown}}" stepKey="waitForDropdownVisible"/>
@@ -70,11 +68,9 @@
7068
<click selector="{{WidgetSection.RuleParam}}" stepKey="clickRuleParam" />
7169
<waitForElementVisible selector="{{WidgetSection.Chooser}}" stepKey="waitForElement" />
7270
<click selector="{{WidgetSection.Chooser}}" stepKey="clickChooser" />
73-
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear3" />
7471
<waitForElementVisible selector="{{WidgetSection.PreCreateCategory('$simplecategory.name$')}}" stepKey="waitForCategoryVisible" />
7572
<click selector="{{WidgetSection.PreCreateCategory('$simplecategory.name$')}}" stepKey="selectCategory" />
7673
<click selector="{{WidgetSection.InsertWidget}}" stepKey="clickInsertWidget" />
77-
<waitForPageLoad stepKey="waitForPageLoad2" />
7874
<!--Save cms page and go to Storefront-->
7975
<actionGroup ref="SaveCmsPageActionGroup" stepKey="saveCmsPage"/>
8076
<actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToTheStoreFront1">
@@ -83,9 +79,7 @@
8379
<!--Check order of products: recently added first-->
8480
<waitForElementVisible selector="{{InsertWidgetSection.checkElementStorefrontByName('1','$createThirdProduct.name$')}}" stepKey="waitForThirdProductVisible"/>
8581
<seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('1','$createThirdProduct.name$')}}" stepKey="seeElementByName1"/>
86-
<waitForElementVisible selector="{{InsertWidgetSection.checkElementStorefrontByName('2','$createSecondProduct.name$')}}" stepKey="waitForSecondProductVisible"/>
8782
<seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('2','$createSecondProduct.name$')}}" stepKey="seeElementByName2"/>
88-
<waitForElementVisible selector="{{InsertWidgetSection.checkElementStorefrontByName('3','$createFirstProduct.name$')}}" stepKey="waitForFirstProductVisible"/>
8983
<seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('3','$createFirstProduct.name$')}}" stepKey="seeElementByName3"/>
9084
</test>
9185
</tests>

app/code/Magento/Cms/Test/Mftf/Section/TinyMCESection/TinyMCESection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<element name="CheckIfTabExpand" type="button" selector="//div[@data-state-collapsible='closed']//span[text()='Content']"/>
1313
<element name="TinyMCE4" type="text" selector=".mce-branding"/>
1414
<element name="InsertWidgetBtn" type="button" selector=".action-add-widget"/>
15-
<element name="InsertWidgetIcon" type="button" selector="div[aria-label='Insert Widget']"/>
15+
<element name="InsertWidgetIcon" type="button" selector="div[aria-label='Insert Widget']" timeout="30"/>
1616
<element name="InsertVariableBtn" type="button" selector=".scalable.add-variable.plugin"/>
1717
<element name="InsertVariableIcon" type="button" selector="div[aria-label='Insert Variable']"/>
1818
<element name="InsertImageBtn" type="button" selector=".scalable.action-add-image.plugin"/>

0 commit comments

Comments
 (0)