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 16
16
<argument name =" image" defaultValue =" ProductImage" />
17
17
</arguments >
18
18
19
+ <waitForElementVisible selector =" {{AdminProductImagesSection.productImagesToggle}}" stepKey =" waitForImagesSection" />
19
20
<conditionalClick selector =" {{AdminProductImagesSection.productImagesToggle}}" dependentSelector =" {{AdminProductImagesSection.imageUploadButton}}" visible =" false" stepKey =" openProductImagesSection" />
20
- <waitForPageLoad time = " 30 " stepKey =" waitForPageRefresh" />
21
+ <waitForPageLoad stepKey =" waitForPageRefresh" />
21
22
<waitForElementVisible selector =" {{AdminProductImagesSection.imageUploadButton}}" stepKey =" seeImageSectionIsReady" />
22
23
<attachFile selector =" {{AdminProductImagesSection.imageFileUpload}}" userInput =" {{image.file}}" stepKey =" uploadFile" />
24
+ <waitForPageLoad stepKey =" waitForImageUpload" />
23
25
<waitForElementNotVisible selector =" {{AdminProductImagesSection.uploadProgressBar}}" stepKey =" waitForUpload" />
24
26
<waitForElementVisible selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" waitForThumbnail" />
25
27
</actionGroup >
Original file line number Diff line number Diff line change 15
15
<arguments >
16
16
<argument name =" image" defaultValue =" {{MagentoLogo.filename}}" type =" string" />
17
17
</arguments >
18
+ <waitForElementVisible selector =" {{AdminProductImagesSection.productImagesToggle}}" stepKey =" waitForProductImagesSection" />
18
19
<conditionalClick selector =" {{AdminProductImagesSection.productImagesToggle}}" dependentSelector =" {{AdminProductImagesSection.imageUploadButton}}" visible =" false" stepKey =" openProductImagesSection" />
19
20
<waitForPageLoad stepKey =" waitForPageLoad" />
20
21
<waitForElementVisible selector =" {{AdminProductImagesSection.imageFile(image)}}" stepKey =" seeImage" />
Original file line number Diff line number Diff line change 16
16
<argument name =" image" defaultValue =" ProductImage" />
17
17
<argument name =" altText" defaultValue =" {{ProductImage.title}}" type =" string" />
18
18
</arguments >
19
+ <waitForElementVisible selector =" {{AdminProductImagesSection.productImagesToggle}}" stepKey =" waitForImagesSection" />
19
20
<conditionalClick selector =" {{AdminProductImagesSection.productImagesToggle}}" dependentSelector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" visible =" false" stepKey =" expandImages" />
21
+ <waitForPageLoad stepKey =" waitForImages" />
20
22
<waitForElementVisible selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" seeProductImageName" />
21
23
<click selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" clickProductImage" />
24
+ <waitForPageLoad stepKey =" waitForImageDetails" />
22
25
<waitForElementVisible selector =" {{AdminProductImagesSection.altText}}" stepKey =" seeAltTextSection" />
23
26
<grabValueFrom selector =" {{AdminProductImagesSection.altText}}" stepKey =" actualAltText" />
24
27
<assertEquals stepKey =" assertAltText" >
25
28
<expectedResult type =" string" >{{altText}}</expectedResult >
26
29
<actualResult type =" variable" >actualAltText</actualResult >
27
30
</assertEquals >
28
31
<click selector =" {{AdminSlideOutDialogSection.closeButton}}" stepKey =" clickCloseButton" />
32
+ <waitForPageLoad stepKey =" waitForClose" />
33
+ <waitForElementNotVisible selector =" {{AdminProductImagesSection.altText}}" stepKey =" waitForDetailsGone" />
29
34
</actionGroup >
30
35
</actionGroups >
Original file line number Diff line number Diff line change 16
16
<argument name =" image" defaultValue =" ProductImage" />
17
17
<argument name =" altText" defaultValue =" {{ProductImage.title}}" type =" string" />
18
18
</arguments >
19
+ <waitForElementVisible selector =" {{AdminProductImagesSection.productImagesToggle}}" stepKey =" waitForImagesSection" />
19
20
<conditionalClick selector =" {{AdminProductImagesSection.productImagesToggle}}" dependentSelector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" visible =" false" stepKey =" expandImages" />
21
+ <waitForPageLoad stepKey =" waitForImages" />
20
22
<waitForElementVisible selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" seeProductImageName" />
21
23
<click selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" clickProductImage" />
24
+ <waitForPageLoad stepKey =" waitForImageDetails" />
22
25
<waitForElementVisible selector =" {{AdminProductImagesSection.altText}}" stepKey =" seeAltTextSection" />
23
26
<fillField selector =" {{AdminProductImagesSection.altText}}" userInput =" {{altText}}" stepKey =" fillAltTextSection" />
24
27
<click selector =" {{AdminSlideOutDialogSection.closeButton}}" stepKey =" clickCloseButton" />
28
+ <waitForPageLoad stepKey =" waitForClose" />
29
+ <waitForElementNotVisible selector =" {{AdminProductImagesSection.altText}}" stepKey =" waitForDetailsGone" />
25
30
</actionGroup >
26
31
</actionGroups >
You can’t perform that action at this time.
0 commit comments