File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed
app/code/Magento/Catalog/Test/Mftf/ActionGroup Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!--
33 /**
4- * Copyright © Magento, Inc. All rights reserved.
5- * See COPYING.txt for license details .
4+ * Copyright 2024 Adobe
5+ * All Rights Reserved .
66 */
77-->
88
9- <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1010 xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
1111 <!-- Add custom option, title and type -->
1212 <actionGroup name =" AdminAddProductCustomOptionActionGroup" >
1717 <argument name =" customOptionTitle" type =" string" />
1818 <argument name =" customOptionType" type =" string" />
1919 </arguments >
20-
20+
2121 <scrollTo selector =" {{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey =" scrollToCustomizableOptionsSection" />
2222 <waitForPageLoad stepKey =" waitForScrolling" />
23+ <conditionalClick selector =" {{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector =" {{AdminProductCustomizableOptionsSection.addOptionBtn}}" visible =" false" stepKey =" openCustomOptionSection" />
2324 <click stepKey =" clickAddOptions" selector =" {{AdminProductCustomizableOptionsSection.addOptionBtn}}" />
2425 <waitForPageLoad stepKey =" waitForAddProductPageLoad" />
2526 <fillField stepKey =" fillInOptionTitle" selector =" {{AdminProductCustomizableOptionsSection.lastOptionTitle}}" userInput =" {{customOptionTitle}}" />
2829 <click stepKey =" clickOptionType" selector =" {{AdminProductCustomizableOptionsSection.optionType(customOptionType)}}" />
2930 </actionGroup >
3031</actionGroups >
32+
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!--
3+ /**
4+ * Copyright 2024 Adobe
5+ * All Rights Reserved.
6+ */
7+ -->
8+
9+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11+ <actionGroup name =" AssertProductImageOnStoreFrontActionGroup" >
12+ <annotations >
13+ <description >Validates that the provided Product Image is present.</description >
14+ </annotations >
15+ <arguments >
16+ <argument name =" image" defaultValue =" MagentoLogo" />
17+ </arguments >
18+ <waitForElement selector =" {{StorefrontProductMediaSection.imageFileInGallery(image.filename)}}" stepKey =" waitForImage" />
19+ <seeElement selector =" {{StorefrontProductMediaSection.imageFileInGallery(image.filename)}}" stepKey =" seeImage" />
20+ </actionGroup >
21+ </actionGroups >
You can’t perform that action at this time.
0 commit comments