Skip to content

Commit

Permalink
Merge pull request #7516 from magento-arcticfoxes/foxes-pr
Browse files Browse the repository at this point in the history
Foxes pr
  • Loading branch information
rganin committed Apr 4, 2022
2 parents 2a774fc + 39cc656 commit 5c3867e
Show file tree
Hide file tree
Showing 505 changed files with 1,405 additions and 545 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function publish($topicName, $data)
{
Expand All @@ -91,6 +91,7 @@ public function publish($topicName, $data)
[
'body' => $message,
'properties' => [
'topic_name' => $topicName,
'delivery_mode' => 2,
'message_id' => $this->messageIdGenerator->generate($topicName),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="deleteDirectory" stepKey="deleteImportImagesFilesDirectoryS3" after="deleteImportFilesDirectoryS3">
<argument name="path">var/import/images/{{ImportProduct_Bundle.name}}</argument>
</helper>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache" after="deleteImportImagesFilesDirectoryS3">
<argument name="tags" value=""/>
</actionGroup>

<!-- Disable AWS S3 Remote Storage & Delete Local Data -->
<magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.disable_options}}" stepKey="disableRemoteStorage" after="logoutFromAdmin"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
<helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="deleteDirectory" stepKey="deleteImportImagesFilesDirectoryS3" after="deleteImportFilesDirectoryS3">
<argument name="path">var/import/images/{{ImportProduct_Downloadable_FileLinks.name}}</argument>
</helper>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache" after="deleteImportImagesFilesDirectoryS3">
<argument name="tags" value=""/>
</actionGroup>

<!-- Disable AWS S3 Remote Storage & Delete Local Data -->
<magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.disable_options}}" stepKey="disableRemoteStorage" after="logoutFromAdmin"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="deleteDirectory" stepKey="deleteImportImagesFilesDirectoryS3" after="deleteImportFilesDirectoryS3">
<argument name="path">var/import/images/{{ImportProduct_Downloadable_UrlLinks.name}}</argument>
</helper>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache" after="deleteImportImagesFilesDirectoryS3">
<argument name="tags" value=""/>
</actionGroup>

<!-- Disable AWS S3 Remote Storage & Delete Local Data -->
<magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.disable_options}}" stepKey="disableRemoteStorage" after="logoutFromAdmin"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="deleteDirectory" stepKey="deleteImportImagesFilesDirectoryS3" after="deleteImportFilesDirectoryS3">
<argument name="path">var/import/images/{{ImportProduct_Grouped.name}}</argument>
</helper>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache" after="deleteImportImagesFilesDirectoryS3">
<argument name="tags" value=""/>
</actionGroup>

<!-- Disable AWS S3 Remote Storage & Delete Local Data -->
<magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.disable_options}}" stepKey="disableRemoteStorage" after="logoutFromAdmin"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
<helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="deleteDirectory" stepKey="deleteImportImagesFilesDirectoryS3" after="deleteImportFilesDirectoryS3">
<argument name="path">var/import/images/{{ImportProduct_Configurable.name}}</argument>
</helper>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache" after="deleteImportImagesFilesDirectoryS3">
<argument name="tags" value=""/>
</actionGroup>

<!-- Disable AWS S3 Remote Storage & Delete Local Data -->
<magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.disable_options}}" stepKey="disableRemoteStorage" after="logoutFromAdmin"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
<helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="deleteDirectory" stepKey="deleteImportImagesFilesDirectoryS3" after="deleteImportFilesDirectoryS3">
<argument name="path">var/import/images/test_image_duplication</argument>
</helper>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache" after="deleteImportImagesFilesDirectoryS3">
<argument name="tags" value=""/>
</actionGroup>

<!-- Disable AWS S3 Remote Storage & Delete Local Data -->
<magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.disable_options}}" stepKey="disableRemoteStorage" after="logoutFromAdmin"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<actionGroup ref="DeleteProductUsingProductGridActionGroup" stepKey="deleteProduct">
<argument name="product" value="DownloadableProduct"/>
</actionGroup>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>

<!-- Log out -->
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<description>Click the Clear filters on the grid.</description>
</annotations>

<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters"/>
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/>
<waitForPageLoad stepKey="waitForPageLoaded"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
<element name="title" type="text" selector="aside.confirm .modal-title"/>
<element name="message" type="text" selector="aside.confirm .modal-content"/>
<element name="cancel" type="button" selector="aside.confirm .modal-footer button.action-dismiss" timeout="30"/>
<element name="ok" type="button" selector="aside.confirm .modal-footer button.action-accept" timeout="60"/>
<element name="ok" type="button" selector="aside.confirm .modal-footer button.action-accept" timeout="120"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreView10">
<argument name="customStore" value="storeViewData7"/>
</actionGroup>
<magentoCron groups="index" stepKey="reindex"/>

<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>
Expand Down Expand Up @@ -92,6 +93,7 @@
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createStoreView10">
<argument name="customStore" value="storeViewData7"/>
</actionGroup>
<magentoCron groups="index" stepKey="reindex"/>

<!--Navigate to Product attribute page-->
<actionGroup ref="AdminNavigateToNewProductAttributePageActionGroup" stepKey="navigateToNewProductAttributePage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@
<argument name="backup"/>
</arguments>

<see selector="{{AdminGridTableSection.backupNameColumn}}" userInput="{{backup.name}}" stepKey="seeBackupInGrid"/>
<waitForElementVisible selector="{{AdminGridTableSection.backupTypeByName(backup.name)}}" stepKey="seeBackupInGrid"/>
<executeJS function="return document.evaluate(&quot;{{AdminGridTableSection.backupTypeByName(backup.name)}}&quot;, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotLength-1" stepKey="expectedDatabaseBackupCount"/>
<click selector="{{AdminGridTableSection.backupRowCheckbox(backup.name)}}" stepKey="selectBackupRow"/>
<selectOption selector="{{AdminGridActionSection.actionSelect}}" userInput="Delete" stepKey="selectDeleteAction"/>
<click selector="{{AdminGridActionSection.submitButton}}" stepKey="clickSubmit"/>
<waitForPageLoad stepKey="waitForConfirmWindowToAppear"/>
<see selector="{{AdminConfirmationModalSection.message}}" userInput="Are you sure you want to delete the selected backup(s)?" stepKey="seeConfirmationModal"/>
<waitForPageLoad stepKey="waitForSubmitAction"/>
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="clickOkConfirmDelete"/>
<dontSee selector="{{AdminGridTableSection.backupNameColumn}}" userInput="{{backup.name}}" stepKey="dontSeeBackupInGrid"/>
<executeJS function="return document.evaluate(&quot;{{AdminGridTableSection.backupTypeByName(backup.name)}}&quot;, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotLength" stepKey="resultingDatabaseBackupCount"/>
<assertEquals stepKey="assertDatabaseBackupDeleted">
<actualResult type="variable">$resultingDatabaseBackupCount</actualResult>
<expectedResult type="variable">$expectedDatabaseBackupCount</expectedResult>
</assertEquals>
<comment userInput="BIC workaround" stepKey="dontSeeBackupInGrid"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteBundleProductBySku">
<argument name="sku" value="{{BundleProduct.sku}}"/>
</actionGroup>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<argument name="StoreGroup" value="SecondStoreGroupUnique"/>
<argument name="customStore" value="SecondStoreUnique"/>
</actionGroup>
<magentoCron groups="index" stepKey="reindex2"/>
</before>
<after>
<!-- Disabled Store URLs -->
Expand All @@ -77,6 +78,7 @@
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
<argument name="websiteName" value="{{secondCustomWebsite.name}}"/>
</actionGroup>
<magentoCron groups="index" stepKey="reindex"/>

<actionGroup ref="NavigateToAndResetProductGridToDefaultViewActionGroup" stepKey="resetProductGridFilter"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<actionGroup ref="DeleteAttributeSetByLabelActionGroup" stepKey="deleteAttributeSet2">
<argument name="label" value="{{ProductAttributeFrontendLabelTwo.label}}"/>
</actionGroup>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<actionGroup ref="AdminClearGridFiltersActionGroup" stepKey="clearGridFilters"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
</after>
Expand All @@ -39,7 +42,7 @@
<!--Go to product creation page-->
<actionGroup ref="AdminOpenCreateBundleProductPageActionGroup" stepKey="goToBundleProductCreationPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForBundleProductCreationPage"/>

<!--Enable/Disable Toggle-->
<checkOption selector="{{AdminProductFormBundleSection.enableDisableToggle}}" stepKey="clickOnEnableDisableToggle"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<before>
<!-- Create a Website -->
<createData entity="customWebsite" stepKey="createWebsite"/>
<magentoCron groups="index" stepKey="reindex"/>

<!-- Create first simple product for a bundle option -->
<createData entity="SimpleProduct2" stepKey="createFirstSimpleProduct"/>
Expand All @@ -46,6 +47,7 @@
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
<argument name="websiteName" value="Second Website"/>
</actionGroup>
<magentoCron groups="index" stepKey="reindex"/>

<!-- Log out -->
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
Expand Down Expand Up @@ -119,5 +121,6 @@
<actionGroup ref="DeleteProductUsingProductGridActionGroup" stepKey="deleteProduct">
<argument name="product" value="BundleProduct"/>
</actionGroup>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<before>
<!-- Create a Website -->
<createData entity="customWebsite" stepKey="createWebsite"/>
<magentoCron groups="index" stepKey="reindex"/>

<!-- Create a simple product for a bundle option -->
<createData entity="SimpleProduct2" stepKey="createSimpleProduct"/>
Expand All @@ -36,6 +37,7 @@
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
<argument name="websiteName" value="Second Website"/>
</actionGroup>
<magentoCron groups="index" stepKey="reindex"/>

<!-- Log out -->
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
Expand Down Expand Up @@ -140,6 +142,7 @@
<actionGroup ref="DeleteProductUsingProductGridActionGroup" stepKey="deleteProduct">
<argument name="product" value="BundleProduct"/>
</actionGroup>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>
</test>
</tests>

Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteBundleProductBySku">
<argument name="sku" value="$createDynamicBundleProduct.sku$"/>
</actionGroup>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>
<!-- Verify product on Product Page -->
<amOnPage url="{{StorefrontProductPage.url($createDynamicBundleProduct.custom_attributes[url_key]$)}}" stepKey="openBundleProductPage"/>
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openBundleProductPage">
<argument name="productUrl" value="$$createDynamicBundleProduct.custom_attributes[url_key]$$"/>
</actionGroup>
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="seeWhoopsMessage">
<argument name="value" value="Whoops, our bad..."/>
</actionGroup>
Expand All @@ -59,7 +62,9 @@
</actionGroup>
<!-- Should not see bundle product -->
<dontSee userInput="$createDynamicBundleProduct.sku$" selector="{{StorefrontCatalogSearchMainSection.searchResults}}" stepKey="dontSeeProduct"/>
<amOnPage url="{{StorefrontCategoryPage.url($createCategory.custom_attributes[url_key]$)}}" stepKey="openCategoryPage"/>
<actionGroup ref="StorefrontNavigateToCategoryUrlActionGroup" stepKey="openCategoryPage">
<argument name="categoryUrl" value="$$createCategory.custom_attributes[url_key]$$"/>
</actionGroup>
<!-- Should not see any products in category -->
<dontSee userInput="$createDynamicBundleProduct.name$" selector="{{StorefrontCategoryMainSection.productsList}}" stepKey="dontSeeProductInCategory"/>
<see selector="{{StorefrontCategoryMainSection.emptyProductMessage}}" userInput="We can't find products matching the selection." stepKey="seeEmptyProductMessage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<argument name="product" value="$$createDynamicBundleProduct$$"/>
</actionGroup>
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="A total of 1 record(s) have been deleted." stepKey="deleteMessage"/>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>
<!-- Verify product on Product Page -->
<amOnPage url="{{StorefrontProductPage.url($$createDynamicBundleProduct.custom_attributes[url_key]$$)}}" stepKey="amOnBundleProductPage"/>
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="seeWhoops">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<argument name="product" value="$$createFixedBundleProduct$$"/>
</actionGroup>
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="A total of 1 record(s) have been deleted." stepKey="deleteMessage"/>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>
<!-- Verify product on Product Page -->
<amOnPage url="{{StorefrontProductPage.url($$createFixedBundleProduct.custom_attributes[url_key]$$)}}" stepKey="amOnBundleProductPage"/>
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="seeWhoops">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<actionGroup stepKey="deleteBundle" ref="DeleteProductUsingProductGridActionGroup">
<argument name="product" value="BundleProduct"/>
</actionGroup>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>
<!--Logging out-->
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
<deleteData createDataKey="simpleProduct0" stepKey="deleteSimpleProduct0"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteBundleProduct">
<argument name="sku" value="{{BundleProduct.sku}}"/>
</actionGroup>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>
<deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteBundleProduct">
<argument name="sku" value="{{BundleProduct.sku}}"/>
</actionGroup>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>
<!--Go to bundle product creation page-->
<actionGroup ref="AdminOpenCreateBundleProductPageActionGroup" stepKey="goToBundleProductCreationPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForBundleProductCreatePageToLoad"/>

<!-- Add two bundle items -->
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/>
<click selector="{{AdminProductFormBundleSection.addOption}}" stepKey="clickAddOption3"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
<after>
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>
<deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/>
<actionGroup ref="StorefrontSignOutActionGroup" stepKey="StorefrontSignOutActionGroup"/>
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="StorefrontSignOutActionGroup"/>
<actionGroup stepKey="deleteBundle" ref="DeleteProductUsingProductGridActionGroup">
<argument name="product" value="BundleProduct"/>
</actionGroup>
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearFiltersAfter"/>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFiltersAfter"/>
<actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer">
<argument name="customerEmail" value="CustomerEntityOne.email"/>
</actionGroup>
Expand Down

0 comments on commit 5c3867e

Please sign in to comment.