File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed
app/code/Magento/Catalog/Test/Mftf/ActionGroup Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1616 <argument name =" image" defaultValue =" ProductImage" />
1717 </arguments >
1818
19+ <waitForElementVisible selector =" {{AdminProductImagesSection.productImagesToggle}}" stepKey =" waitForImagesSection" />
1920 <conditionalClick selector =" {{AdminProductImagesSection.productImagesToggle}}" dependentSelector =" {{AdminProductImagesSection.imageUploadButton}}" visible =" false" stepKey =" openProductImagesSection" />
20- <waitForPageLoad time = " 30 " stepKey =" waitForPageRefresh" />
21+ <waitForPageLoad stepKey =" waitForPageRefresh" />
2122 <waitForElementVisible selector =" {{AdminProductImagesSection.imageUploadButton}}" stepKey =" seeImageSectionIsReady" />
2223 <attachFile selector =" {{AdminProductImagesSection.imageFileUpload}}" userInput =" {{image.file}}" stepKey =" uploadFile" />
24+ <waitForPageLoad stepKey =" waitForImageUpload" />
2325 <waitForElementNotVisible selector =" {{AdminProductImagesSection.uploadProgressBar}}" stepKey =" waitForUpload" />
2426 <waitForElementVisible selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" waitForThumbnail" />
2527 </actionGroup >
Original file line number Diff line number Diff line change 1515 <arguments >
1616 <argument name =" image" defaultValue =" {{MagentoLogo.filename}}" type =" string" />
1717 </arguments >
18+ <waitForElementVisible selector =" {{AdminProductImagesSection.productImagesToggle}}" stepKey =" waitForProductImagesSection" />
1819 <conditionalClick selector =" {{AdminProductImagesSection.productImagesToggle}}" dependentSelector =" {{AdminProductImagesSection.imageUploadButton}}" visible =" false" stepKey =" openProductImagesSection" />
1920 <waitForPageLoad stepKey =" waitForPageLoad" />
2021 <waitForElementVisible selector =" {{AdminProductImagesSection.imageFile(image)}}" stepKey =" seeImage" />
Original file line number Diff line number Diff line change 1616 <argument name =" image" defaultValue =" ProductImage" />
1717 <argument name =" altText" defaultValue =" {{ProductImage.title}}" type =" string" />
1818 </arguments >
19+ <waitForElementVisible selector =" {{AdminProductImagesSection.productImagesToggle}}" stepKey =" waitForImagesSection" />
1920 <conditionalClick selector =" {{AdminProductImagesSection.productImagesToggle}}" dependentSelector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" visible =" false" stepKey =" expandImages" />
21+ <waitForPageLoad stepKey =" waitForImages" />
2022 <waitForElementVisible selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" seeProductImageName" />
2123 <click selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" clickProductImage" />
24+ <waitForPageLoad stepKey =" waitForImageDetails" />
2225 <waitForElementVisible selector =" {{AdminProductImagesSection.altText}}" stepKey =" seeAltTextSection" />
2326 <grabValueFrom selector =" {{AdminProductImagesSection.altText}}" stepKey =" actualAltText" />
2427 <assertEquals stepKey =" assertAltText" >
2528 <expectedResult type =" string" >{{altText}}</expectedResult >
2629 <actualResult type =" variable" >actualAltText</actualResult >
2730 </assertEquals >
2831 <click selector =" {{AdminSlideOutDialogSection.closeButton}}" stepKey =" clickCloseButton" />
32+ <waitForPageLoad stepKey =" waitForClose" />
33+ <waitForElementNotVisible selector =" {{AdminProductImagesSection.altText}}" stepKey =" waitForDetailsGone" />
2934 </actionGroup >
3035</actionGroups >
Original file line number Diff line number Diff line change 1616 <argument name =" image" defaultValue =" ProductImage" />
1717 <argument name =" altText" defaultValue =" {{ProductImage.title}}" type =" string" />
1818 </arguments >
19+ <waitForElementVisible selector =" {{AdminProductImagesSection.productImagesToggle}}" stepKey =" waitForImagesSection" />
1920 <conditionalClick selector =" {{AdminProductImagesSection.productImagesToggle}}" dependentSelector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" visible =" false" stepKey =" expandImages" />
21+ <waitForPageLoad stepKey =" waitForImages" />
2022 <waitForElementVisible selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" seeProductImageName" />
2123 <click selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" clickProductImage" />
24+ <waitForPageLoad stepKey =" waitForImageDetails" />
2225 <waitForElementVisible selector =" {{AdminProductImagesSection.altText}}" stepKey =" seeAltTextSection" />
2326 <fillField selector =" {{AdminProductImagesSection.altText}}" userInput =" {{altText}}" stepKey =" fillAltTextSection" />
2427 <click selector =" {{AdminSlideOutDialogSection.closeButton}}" stepKey =" clickCloseButton" />
28+ <waitForPageLoad stepKey =" waitForClose" />
29+ <waitForElementNotVisible selector =" {{AdminProductImagesSection.altText}}" stepKey =" waitForDetailsGone" />
2530 </actionGroup >
2631</actionGroups >
You can’t perform that action at this time.
0 commit comments