Skip to content

Commit

Permalink
ENGCOM-6621: MFTF: Set of fixes for failing Functional Tests #26407
Browse files Browse the repository at this point in the history
  • Loading branch information
lenaorobei authored Jan 16, 2020
2 parents 6b4a82b + 9cc0bb8 commit f4bc355
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
<waitForPageLoad stepKey="waitForDeleteItemPopup" time="10"/>
<click stepKey="clickOnOk" selector="{{ProductsPageSection.ok}}"/>
<waitForElementVisible stepKey="waitForSuccessfullyDeletedMessage" selector="{{ProductsPageSection.deletedSuccessMessage}}" time="10"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<createData entity="_defaultProduct" stepKey="productTwo">
<requiredEntity createDataKey="simpleSubCategoryOne"/>
</createData>
<magentoCLI command="cron:run --group=index" stepKey="runIndexerCron"/>
</before>
<after>
<actionGroup ref="logout" stepKey="logoutAdminUserAfterTest"/>
Expand Down Expand Up @@ -119,4 +120,4 @@
<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$simpleSubCategoryOne.name$$" stepKey="seeSubCategoryWithParentInBreadcrumbsOnSubCategoryWithParent3"/>
<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$productOne.name$$" stepKey="seeProductInBreadcrumbsOnSubCategoryOne3"/>
</test>
</tests>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<arguments>
<argument name="lastName" defaultValue=""/>
</arguments>

<!--Clear filter if exist-->
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="navigateToCustomers"/>
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearExistingCustomerFilters"/>
Expand All @@ -28,16 +28,17 @@
<waitForPageLoad stepKey="waitForDeleteItemPopup" time="10"/>
<click stepKey="clickOnOk" selector="{{CustomersPageSection.ok}}"/>
<waitForElementVisible stepKey="waitForSuccessfullyDeletedMessage" selector="{{CustomersPageSection.deletedSuccessMessage}}" time="10"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear"/>
</actionGroup>

<actionGroup name="DeleteCustomerByEmailActionGroup">
<annotations>
<description>Goes to the Admin Customers grid page. Deletes a Customer based on the provided Email Address.</description>
</annotations>
<arguments>
<argument name="email" type="string"/>
</arguments>

<amOnPage url="{{AdminCustomerPage.url}}" stepKey="navigateToCustomers"/>
<waitForPageLoad stepKey="waitForAdminCustomerPageLoad"/>
<click selector="{{AdminCustomerFiltersSection.filtersButton}}" stepKey="clickFilterButton"/>
Expand All @@ -51,6 +52,7 @@
<click selector="{{CustomersPageSection.delete}}" stepKey="clickDelete"/>
<waitForElementVisible selector="{{CustomersPageSection.ok}}" stepKey="waitForOkToVisible"/>
<click selector="{{CustomersPageSection.ok}}" stepKey="clickOkConfirmationButton"/>
<waitForElementVisible stepKey="waitForSuccessfullyDeletedMessage" selector="{{CustomersPageSection.deletedSuccessMessage}}" time="30"/>
<waitForElementVisible stepKey="waitForSuccessfullyDeletedMessage" selector="{{CustomersPageSection.deletedSuccessMessage}}" time="10"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear"/>
</actionGroup>
</actionGroups>

0 comments on commit f4bc355

Please sign in to comment.