File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
app/code/Magento/CatalogImportExport/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 64
64
65
65
<actionGroup name =" deleteAllExportedFiles" >
66
66
<amOnPage url =" {{AdminExportIndexPage.url}}" stepKey =" goToExportIndexPage" />
67
-
68
- <!-- This is better one sive it use selectors substitutions. But for now we cant use it because of bug in MFTF.-->
69
- <!-- It makes double quotes escaping and brake code. I will provide fix for this in nearest future.-->
70
- <!-- <executeInSelenium-->
71
- <!-- function="-->
72
- <!-- function ($webdriver) use ($I) {-->
73
- <!-- $buttons = $webdriver->findElements(\Facebook\WebDriver\WebDriverBy::xpath("{{AdminExportAttributeSection.selectByIndex('0')}}"));-->
74
- <!-- while(!empty($buttons)) {-->
75
- <!-- $buttons[0]->click();-->
76
- <!-- $I->waitForElementVisible("{{AdminExportAttributeSection.delete('0')}}", 10);-->
77
- <!-- $deleteButton = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath("{{AdminExportAttributeSection.delete('0')}}"));-->
78
- <!-- $deleteButton->click();-->
79
- <!-- $I->waitForElementVisible("{{AdminProductGridConfirmActionSection.ok}}", 10);-->
80
- <!-- $I->click("{{AdminProductGridConfirmActionSection.ok}}");-->
81
- <!-- $I->waitForPageLoad(60);-->
82
- <!-- $buttons = $webdriver->findElements(\Facebook\WebDriver\WebDriverBy::xpath("{{AdminExportAttributeSection.selectByIndex('0')}}"));-->
83
- <!-- }-->
84
- <!-- }"-->
85
- <!-- stepKey="deleteAllExportedFilesOneByOne"/>-->
86
-
87
67
<executeInSelenium
88
68
function ="
89
69
function ($webdriver) use ($I) {
100
80
}
101
81
}"
102
82
stepKey =" deleteAllExportedFilesOneByOne" />
103
-
104
83
<waitForElementVisible selector =" {{AdminDataGridTableSection.dataGridEmpty}}" stepKey =" waitDataGridEmptyMessageAppears" />
105
84
<see selector =" {{AdminDataGridTableSection.dataGridEmpty}}" userInput =" We couldn't find any records." stepKey =" assertDataGridEmptyMessage" />
106
85
</actionGroup >
You can’t perform that action at this time.
0 commit comments