Skip to content

Commit 151e830

Browse files
committed
B2B-2116: [AWS S3] Test Fails: StorefrontCustomerCustomAttributesTest
- Reindexing in tests after deleting product attributes
1 parent 3658ebd commit 151e830

File tree

32 files changed

+134
-1
lines changed

32 files changed

+134
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
<actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteCreatedAttribute">
3333
<argument name="productAttributeLabel" value="{{ProductAttributeFrontendLabel.label}}"/>
3434
</actionGroup>
35+
<!-- Reindex after deleting product attribute -->
36+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
37+
<argument name="indices" value=""/>
38+
</actionGroup>
3539
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdminPanel"/>
3640
</after>
3741
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="navigateToProductPage">

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
<actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteCreatedAttribute">
3333
<argument name="productAttributeLabel" value="{{ProductAttributeFrontendLabel.label}}"/>
3434
</actionGroup>
35+
<!-- Reindex after deleting product attribute -->
36+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
37+
<argument name="indices" value=""/>
38+
</actionGroup>
3539
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdminPanel"/>
3640
</after>
3741
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="navigateToProductPage">

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
<actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteAttribute">
2626
<argument name="productAttributeLabel" value="{{colorProductAttribute.default_label}}" />
2727
</actionGroup>
28+
<!-- Reindex after deleting product attribute -->
29+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
30+
<argument name="indices" value=""/>
31+
</actionGroup>
2832
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
2933
</after>
3034

app/code/Magento/CatalogRule/Test/Mftf/Test/AdminDeleteCatalogPriceRuleTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
<argument name="successMessageContainer">{{AdminMessagesSection.success}}</argument>
6060
<argument name="successMessage">You deleted the rule.</argument>
6161
</helper>
62+
<!-- Reindex after deleting product attribute -->
63+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
64+
<argument name="indices" value=""/>
65+
</actionGroup>
6266
<comment userInput="BIC workaround" stepKey="waitForCatalogRuleGridPageLoaded"/>
6367
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearCatalogRuleGridFilters"/>
6468
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>

app/code/Magento/CatalogSearch/Test/Mftf/Test/SearchEntityResultsTest/QuickSearchAndAddToCartConfigurableTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
<actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteProductAttribute">
4747
<argument name="productAttributeLabel" value="{{colorProductAttribute.default_label}}"/>
4848
</actionGroup>
49+
<!-- Reindex after deleting product attribute -->
50+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
51+
<argument name="indices" value=""/>
52+
</actionGroup>
4953
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
5054
</after>
5155
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>

app/code/Magento/ConfigurableImportExport/Test/Mftf/Test/AdminImportSimpleAndConfigurableProductsWithAssignedImagesTest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
<argument name="productAttributeLabel" value="{{ProductAttributeFrontendLabelImport1.label}}" />
8383
</actionGroup>
8484
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
85+
86+
<!-- Reindex after deleting product attribute -->
87+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
88+
<argument name="indices" value=""/>
89+
</actionGroup>
8590
<helper class="Magento\Catalog\Test\Mftf\Helper\LocalFileAssertions" method="deleteDirectory" stepKey="deleteProductImageDirectory">
8691
<argument name="path">var/import/images/{{ImportProduct_Configurable.name}}</argument>
8792
</helper>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminAssertNoticeThatExistingSkuAutomaticallyChangedWhenSavingProductWithSameSkuTest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
<argument name="productAttributeLabel" value="{{colorProductAttribute.default_label}}"/>
3232
</actionGroup>
3333

34+
<!-- Reindex after deleting product attribute -->
35+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
36+
<argument name="indices" value=""/>
37+
</actionGroup>
38+
3439
<!-- Log out -->
3540
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3641
</after>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductCreateTest/AdminConfigurableProductCreateTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
<actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteProductAttribute">
5353
<argument name="productAttributeLabel" value="{{colorProductAttribute.default_label}}"/>
5454
</actionGroup>
55+
<!-- Reindex after deleting product attribute -->
56+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
57+
<argument name="indices" value=""/>
58+
</actionGroup>
5559
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
5660
</after>
5761

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductUpdateTest/AdminConfigurableProductAddConfigurationTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
<actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteProductAttribute">
5353
<argument name="productAttributeLabel" value="{{colorProductAttribute.default_label}}"/>
5454
</actionGroup>
55+
<!-- Reindex after deleting product attribute -->
56+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
57+
<argument name="indices" value=""/>
58+
</actionGroup>
5559
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
5660
</after>
5761

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductUpdateTest/AdminConfigurableProductRemoveConfigurationTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
<actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteProductAttribute">
4242
<argument name="productAttributeLabel" value="{{colorProductAttribute.default_label}}"/>
4343
</actionGroup>
44+
<!-- Reindex after deleting product attribute -->
45+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
46+
<argument name="indices" value=""/>
47+
</actionGroup>
4448
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
4549
<!-- Reindex invalidated indices after product attribute has been created/deleted -->
4650
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>

0 commit comments

Comments
 (0)