Skip to content

Commit 41a2e82

Browse files
MC-18527: Merge release branch into 2.3-develop
- fix MFTF and integration tests
1 parent d5605e8 commit 41a2e82

File tree

9 files changed

+36
-7
lines changed

9 files changed

+36
-7
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@
2020
<group value="catalog"/>
2121
</annotations>
2222
<before>
23+
<!-- Add downloadable domains -->
24+
<magentoCLI stepKey="addDownloadableDomain" command="downloadable:domains:add example.com static.magento.com"/>
2325
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2426
<!--Create product-->
2527
<comment userInput="Create product" stepKey="commentCreateProduct"/>
2628
<createData entity="VirtualProduct" stepKey="createProduct"/>
2729
</before>
2830
<after>
31+
<!-- Remove downloadable domains -->
32+
<magentoCLI stepKey="removeDownloadableDomain" command="downloadable:domains:remove example.com static.magento.com"/>
2933
<!--Delete product-->
3034
<comment userInput="Delete product" stepKey="commentDeleteProduct"/>
3135
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>

app/code/Magento/CatalogImportExport/Test/Mftf/Test/AdminExportImportConfigurableProductWithImagesTest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<group value="configurable_product"/>
2020
</annotations>
2121
<before>
22+
<!-- Add downloadable domains -->
23+
<magentoCLI stepKey="addDownloadableDomain" command="downloadable:domains:add example.com static.magento.com"/>
24+
2225
<!-- Create sample data:
2326
1. Create simple products -->
2427
<createData entity="ApiCategory" stepKey="createCategory"/>
@@ -128,6 +131,9 @@
128131
<actionGroup ref="deleteAllExportedFiles" stepKey="clearExportedFilesList"/>
129132
</before>
130133
<after>
134+
<!-- Remove downloadable domains -->
135+
<magentoCLI stepKey="removeDownloadableDomain" command="downloadable:domains:remove example.com static.magento.com"/>
136+
131137
<!-- Delete created data -->
132138
<deleteData createDataKey="createFirstSimpleProduct" stepKey="deleteFisrtSimpleProduct"/>
133139
<deleteData createDataKey="createSecondSimpleProduct" stepKey="deleteSecondSimpleProduct"/>

app/code/Magento/Downloadable/Test/Mftf/Test/AdminProductTypeSwitchingOnEditingTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@
3737
<group value="catalog"/>
3838
</annotations>
3939
<before>
40+
<!-- Add downloadable domains -->
41+
<magentoCLI stepKey="addDownloadableDomain" command="downloadable:domains:add example.com static.magento.com"/>
4042
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
4143
<!--Create product-->
4244
<comment userInput="Create product" stepKey="commentCreateProduct"/>
4345
<createData entity="SimpleProduct2" stepKey="createProduct"/>
4446
</before>
4547
<after>
48+
<!-- Remove downloadable domains -->
49+
<magentoCLI stepKey="removeDownloadableDomain" command="downloadable:domains:remove example.com static.magento.com"/>
4650
<!--Delete product-->
4751
<comment userInput="Delete product" stepKey="commentDeleteProduct"/>
4852
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>

app/code/Magento/Downloadable/Test/Mftf/Test/EditDownloadableProductWithSeparateLinksFromCartTest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
<group value="Downloadable"/>
1919
</annotations>
2020
<before>
21+
<!-- Add downloadable domains -->
22+
<magentoCLI stepKey="addDownloadableDomain" command="downloadable:domains:add example.com static.magento.com"/>
23+
2124
<!-- Create category -->
2225
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
2326

@@ -61,6 +64,9 @@
6164
<actionGroup ref="saveProductForm" stepKey="saveProduct"/>
6265
</before>
6366
<after>
67+
<!-- Remove downloadable domains -->
68+
<magentoCLI stepKey="removeDownloadableDomain" command="downloadable:domains:remove example.com static.magento.com"/>
69+
6470
<!-- Delete category -->
6571
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
6672

app/code/Magento/Downloadable/Test/Mftf/Test/SelectAllDownloadableLinksDownloadableProductTest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
<group value="Downloadable"/>
1919
</annotations>
2020
<before>
21+
<!-- Add downloadable domains -->
22+
<magentoCLI stepKey="addDownloadableDomain" command="downloadable:domains:add example.com static.magento.com"/>
23+
2124
<!-- Create category -->
2225
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
2326

@@ -61,6 +64,9 @@
6164
<actionGroup ref="saveProductForm" stepKey="saveProduct"/>
6265
</before>
6366
<after>
67+
<!-- Remove downloadable domains -->
68+
<magentoCLI stepKey="removeDownloadableDomain" command="downloadable:domains:remove example.com static.magento.com"/>
69+
6470
<!-- Delete category -->
6571
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
6672

app/code/Magento/Downloadable/Test/Mftf/Test/VerifyDisableDownloadableProductSamplesAreNotAccessibleTest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
<group value="catalog"/>
2222
</annotations>
2323
<before>
24+
<!-- Add downloadable domains -->
25+
<magentoCLI stepKey="addDownloadableDomain" command="downloadable:domains:add example.com static.magento.com"/>
26+
2427
<!-- Create category -->
2528
<createData entity="_defaultCategory" stepKey="createCategory"/>
2629

@@ -40,6 +43,9 @@
4043
</createData>
4144
</before>
4245
<after>
46+
<!-- Remove downloadable domains -->
47+
<magentoCLI stepKey="removeDownloadableDomain" command="downloadable:domains:remove example.com static.magento.com"/>
48+
4349
<!-- Delete product -->
4450
<deleteData createDataKey="createProduct" stepKey="deleteDownloadableProduct"/>
4551

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOpenAndFillCreditMemoRefundActionGroup.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
<fillField userInput="{{adjustmentRefund}}" selector="{{AdminCreditMemoTotalSection.adjustmentRefund}}" stepKey="fillAdjustmentRefund"/>
3636
<fillField userInput="{{adjustmentFee}}" selector="{{AdminCreditMemoTotalSection.adjustmentFee}}" stepKey="fillAdjustmentFee"/>
3737
<checkOption selector="{{AdminCreditMemoTotalSection.emailCopy}}" stepKey="checkSendEmailCopy"/>
38-
<conditionalClick selector="{{AdminCreditMemoTotalSection.updateTotals}}" dependentSelector="{{AdminCreditMemoTotalSection.disabledUpdateTotals}}" visible="false" stepKey="clickUpdateTotalsButton"/>
3938
</actionGroup>
4039

4140
<!-- Open and fill CreditMemo refund with back to stock -->

dev/tests/integration/testsuite/Magento/Sales/_files/quotes.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
/** @var QuoteRepository $quoteRepository */
2020
$quoteRepository = $objectManager->get(QuoteRepository::class);
2121

22-
/** @var Magento\Store\Model\Store $store */
23-
$store = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Store\Model\Store::class);
24-
$store->load('fixture_second_store');
25-
$storeId = $store->getId();
26-
2722
$quotes = [
2823
'quote for first store' => [
2924
'store' => 1,

dev/tests/integration/testsuite/Magento/Store/_files/second_store.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
/** @var \Magento\Store\Model\Store $store */
1010
$store = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Store\Model\Store::class);
11-
if (!$store->load('fixture_second_store', 'code')->getId()) {
11+
$storeId = $store->load('fixture_second_store', 'code')->getId();
12+
if (!$storeId) {
1213
$websiteId = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
1314
\Magento\Store\Model\StoreManagerInterface::class
1415
)->getWebsite()
@@ -30,4 +31,6 @@
3031
1
3132
);
3233
$store->save();
34+
35+
$storeId = $store->getId();
3336
}

0 commit comments

Comments
 (0)