Skip to content

Commit

Permalink
add Backward Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Oct 24, 2020
1 parent 80f2463 commit ad78f70
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<!-- Create a product to appear in the widget, fill in basic info first -->

<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductList"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductToggle"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddBundleProduct">
<argument name="productType" value="bundle"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

<!-- Assert attribute can be used in product creation -->
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToCatalogProductGrid"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductDropdown"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddSimpleProduct">
<argument name="productType" value="simple"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndex"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductDropdown"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddSimpleProduct">
<argument name="productType" value="simple"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
</after>

<actionGroup ref="AdminProductCatalogPageOpenActionGroup" stepKey="openProductCatalogPage"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductToggle"/>
<comment userInput="StepKey Backward Compatibility" stepKey="waitForProductToggleToSelectSimpleProduct"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickSimpleProductFromDropDownList">
<argument name="productType" value="simple"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
</after>

<actionGroup ref="AdminProductCatalogPageOpenActionGroup" stepKey="openProductCatalogPage"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductToggle"/>
<comment userInput="StepKey Backward Compatibility" stepKey="waitForProductToggleToSelectProduct"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickVirtualProduct">
<argument name="productType" value="virtual"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
</after>

<actionGroup ref="AdminProductCatalogPageOpenActionGroup" stepKey="openProductCatalogPage"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductToggle"/>
<comment userInput="StepKey Backward Compatibility" stepKey="waitForProductToggleToSelectProduct"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickVirtualProduct">
<argument name="productType" value="virtual"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
</after>

<actionGroup ref="AdminProductCatalogPageOpenActionGroup" stepKey="openProductCatalogPage"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductToggle"/>
<comment userInput="StepKey Backward Compatibility" stepKey="waitForProductToggleToSelectProduct"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickVirtualProduct">
<argument name="productType" value="virtual"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
</after>

<actionGroup ref="AdminProductCatalogPageOpenActionGroup" stepKey="openProductCatalogPage"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductToggle"/>
<comment userInput="StepKey Backward Compatibility" stepKey="waitForProductToggleToSelectProduct"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickVirtualProduct">
<argument name="productType" value="virtual"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
</after>

<actionGroup ref="AdminProductCatalogPageOpenActionGroup" stepKey="openProductCatalogPage"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductToggle"/>
<comment userInput="StepKey Backward Compatibility" stepKey="waitForProductToggleToSelectProduct"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickVirtualProduct">
<argument name="productType" value="virtual"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@
<see selector="{{AdminDataGridTableSection.dataGridEmpty}}" userInput="We couldn't find any records." stepKey="assertDataGridEmptyMessage2"/>
<!--Go to the Catalog > Products page and create Simple Product -->
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductList"/>
<comment userInput="StepKey Backward Compatibility" stepKey="toggleAddProductBtn"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="chooseAddSimpleProduct">
<argument name="productType" value="simple"/>
</actionGroup>
<comment userInput="StepKey Backward Compatibility" stepKey="waitForProductAdded"/>
<!-- Press Add Attribute button -->
<click selector="{{AdminProductFormSection.addAttributeBtn}}" stepKey="clickAddAttributeBtn"/>
<waitForPageLoad stepKey="waitForAttributeAdded"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

<!--Create a Simple Product -->
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToCatalogProductGrid"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductDropdown"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddSimpleProduct">
<argument name="productType" value="simple"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
<waitForPageLoad stepKey="waitForAttributeToSave"/>
<actionGroup ref="ClearCacheActionGroup" stepKey="clearCache"/>
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndex"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickOnAddProductDropdown"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickOnAddSimpleProduct">
<argument name="productType" value="simple"/>
</actionGroup>
<comment userInput="StepKey Backward Compatibility" stepKey="waitForProductEditToLoad"/>
<dontSeeCheckboxIsChecked selector="{{AdminProductFormSection.productStatus}}" stepKey="dontSeeCheckboxEnableProductIsChecked"/>

</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
</assertEquals>

<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndexPage"/>
<comment userInput="StepKey Backward Compatibility" stepKey="addProductDropdown"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="addSimpleProduct">
<argument name="productType" value="simple"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<!-- Create a Virtual Product to appear in the widget -->

<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductList"/>
<comment userInput="StepKey Backward Compatibility" stepKey="toggleAddProductButton"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddVirtualProduct">
<argument name="productType" value="virtual"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

<!--Create a Simple Product with Custom Options -->
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToCatalogProductGrid"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProductDropdown"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddSimpleProduct">
<argument name="productType" value="simple"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<!-- Create a Downloadable product to appear in the widget -->

<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductList"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickAddProduct"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddDownloadableProduct">
<argument name="productType" value="downloadable"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<!-- Create a grouped product to appear in the widget -->

<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductList"/>
<comment userInput="StepKey Backward Compatibility" stepKey="toggleAddProductButton"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddGroupedProduct">
<argument name="productType" value="grouped"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@

<!-- Create a configurable product to verify the storefront with -->
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductGridPage"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickOnAddProductToggle"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickOnAddConfigurableProduct">
<argument name="productType" value="configurable"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@

<!-- Create a configurable product to verify the storefront with -->
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductGridPage"/>
<comment userInput="StepKey Backward Compatibility" stepKey="clickOnAddProductToggle"/>
<actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickOnAddConfigurableProduct">
<argument name="productType" value="configurable"/>
</actionGroup>
Expand Down

0 comments on commit ad78f70

Please sign in to comment.