Skip to content

Commit f187765

Browse files
committed
MC-4409: Convert UpdateProductAttributeEntityTest to MFTF
- Adding "waitForPageLoad" timeout value to the Action Group. - Replacing "waitForElementVisible" with "waitForPageLoad" action.
1 parent c84054f commit f187765

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateDropdownProductAttributeVisibleInStorefrontAdvancedSearchFormTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
<!-- Change attribute property: Use in Search >Yes -->
6767
<scrollToTopOfPage stepKey="scrollToTabs"/>
6868
<click selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="clickStorefrontPropertiesTab"/>
69-
<waitForElementVisible selector="{{AdvancedAttributePropertiesSection.UseInSearch}}" stepKey="waitTabLoad"/>
69+
<waitForPageLoad stepKey="waitForPageLoad1"/>
7070
<selectOption selector="{{AdvancedAttributePropertiesSection.UseInSearch}}" userInput="Yes" stepKey="seeInSearch"/>
7171

7272
<!-- Change attribute property: Visible In Advanced Search >No -->
73-
<waitForElementVisible selector="{{AdvancedAttributePropertiesSection.VisibleInAdvancedSearch}}" stepKey="waitTabLoad2"/>
73+
<waitForPageLoad stepKey="waitForPageLoad2"/>
7474
<selectOption selector="{{AdvancedAttributePropertiesSection.VisibleInAdvancedSearch}}" userInput="No" stepKey="dontSeeInAdvancedSearch"/>
7575

7676
<!-- Save the new product attributes -->

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateMultipleSelectProductAttributeVisibleInStorefrontAdvancedSearchFormTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
<!-- Change attribute property: Use in Search >Yes -->
6767
<scrollToTopOfPage stepKey="scrollToTabs"/>
6868
<click selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="clickStorefrontPropertiesTab"/>
69-
<waitForElementVisible selector="{{AdvancedAttributePropertiesSection.UseInSearch}}" stepKey="waitTabLoad"/>
69+
<waitForPageLoad stepKey="waitForPageLoad1"/>
7070
<selectOption selector="{{AdvancedAttributePropertiesSection.UseInSearch}}" userInput="Yes" stepKey="seeInSearch"/>
7171

7272
<!-- Change attribute property: Visible In Advanced Search >No -->
73-
<waitForElementVisible selector="{{AdvancedAttributePropertiesSection.VisibleInAdvancedSearch}}" stepKey="waitTabLoad2"/>
73+
<waitForPageLoad stepKey="waitForPageLoad2"/>
7474
<selectOption selector="{{AdvancedAttributePropertiesSection.VisibleInAdvancedSearch}}" userInput="No" stepKey="dontSeeInAdvancedSearch"/>
7575

7676
<!-- Save the new product attributes -->

app/code/Magento/CatalogSearch/Test/Mftf/ActionGroup/StorefrontCatalogSearchActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<!-- Go to store's advanced catalog search page -->
4949
<actionGroup name="GoToStoreViewAdvancedCatalogSearchActionGroup">
5050
<amOnPage url="{{StorefrontCatalogSearchAdvancedFormPage.url}}" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
51-
<waitForPageLoad stepKey="waitForPageLoad"/>
51+
<waitForPageLoad time="90" stepKey="waitForPageLoad"/>
5252
</actionGroup>
5353

5454
<!-- Storefront advanced catalog search by product name -->

0 commit comments

Comments
 (0)