Skip to content

Commit e52d8ad

Browse files
Merge remote-tracking branch 'remotes/github/MAGETWO-70803' into EPAM-PR-73
2 parents 3b7f0bb + 518312b commit e52d8ad

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

app/code/Magento/ImportExport/Test/Mftf/ActionGroup/AdminImportProductsActionGroup.xml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,18 @@
4646
<see selector="{{AdminImportValidationMessagesSection.notice}}" userInput="{{validationNoticeMessage}}" after="waitForValidationNoticeMessage" stepKey="seeValidationNoticeMessage"/>
4747
<see selector="{{AdminImportValidationMessagesSection.success}}" userInput="{{validationMessage}}" after="seeValidationNoticeMessage" stepKey="seeValidationMessage"/>
4848
</actionGroup>
49-
<actionGroup name="checkDataForImportProductActionGroup" extends="AdminImportProductsActionGroup">
50-
<remove keyForRemoval="clickImportButton"/>
51-
<remove keyForRemoval="AdminImportMainSectionLoad2"/>
52-
<remove keyForRemoval="assertSuccessMessage"/>
53-
<remove keyForRemoval="AdminMessagesSection"/>
54-
<remove keyForRemoval="seeImportMessage"/>
49+
<actionGroup name="AdminCheckDataForImportProductActionGroup">
50+
<arguments>
51+
<argument name="behavior" type="string" defaultValue="Add/Update"/>
52+
<argument name="importFile" type="string"/>
53+
</arguments>
54+
<amOnPage url="{{AdminImportIndexPage.url}}" stepKey="goToImportIndexPage"/>
55+
<waitForPageLoad stepKey="adminImportMainSectionLoad"/>
56+
<selectOption selector="{{AdminImportMainSection.entityType}}" userInput="Products" stepKey="selectProductsOption"/>
57+
<waitForElementVisible selector="{{AdminImportMainSection.importBehavior}}" stepKey="waitForImportBehaviorElementVisible"/>
58+
<selectOption selector="{{AdminImportMainSection.importBehavior}}" userInput="{{behavior}}" stepKey="selectImportBehaviorOption"/>
59+
<attachFile selector="{{AdminImportMainSection.selectFileToImport}}" userInput="{{importFile}}" stepKey="attachFileForImport"/>
60+
<click selector="{{AdminImportHeaderSection.checkDataButton}}" stepKey="clickCheckDataButton"/>
61+
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
5562
</actionGroup>
5663
</actionGroups>

app/code/Magento/ImportExport/Test/Mftf/Test/AdminProductImportCSVFileCorrectDifferentFilesTest.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,21 @@
2020
</annotations>
2121
<before>
2222
<!--Login as Admin-->
23-
<comment userInput="Login as Admin" stepKey="commentLogin"/>
2423
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2524
</before>
2625
<after>
2726
<!--Logout from Admin-->
28-
<comment userInput="Logout from Admin" stepKey="commentLogout"/>
2927
<actionGroup ref="logout" stepKey="logoutFromAdmin"/>
3028
</after>
3129
<!--Check data products with add/update behavior-->
32-
<comment userInput="Check data products with add/update behavior" stepKey="commentCheckData"/>
33-
<actionGroup ref="checkDataForImportProductActionGroup" stepKey="adminImportProducts">
30+
<actionGroup ref="AdminCheckDataForImportProductActionGroup" stepKey="adminImportProducts">
3431
<argument name="behavior" value="Add/Update"/>
3532
<argument name="importFile" value="BB-ProductsWorking.csv"/>
36-
<argument name="importMessage" value="Checked rows: 28, checked entities: 28, invalid rows: 0, total errors: 0"/>
3733
</actionGroup>
3834
<see selector="{{AdminImportMainSection.messageSuccess}}" userInput='File is valid! To start import process press "Import" button' stepKey="seeSuccessMessage"/>
39-
<actionGroup ref="checkDataForImportProductActionGroup" stepKey="adminImportProducts1">
35+
<actionGroup ref="AdminCheckDataForImportProductActionGroup" stepKey="adminImportProducts1">
4036
<argument name="behavior" value="Add/Update"/>
4137
<argument name="importFile" value="BB-Products.csv"/>
42-
<argument name="importMessage" value="Checked rows: 117, checked entities: 115, invalid rows: 2, total errors: 2"/>
43-
<argument name="checkMessage" value='Curly quotes used instead of straight quotes in row(s): 84, 85'/>
4438
</actionGroup>
4539
<see selector="{{AdminImportMainSection.messageError}}" userInput='Curly quotes used instead of straight quotes in row(s): 84, 85' stepKey="seeErrorMessage"/>
4640
</test>

0 commit comments

Comments
 (0)