File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
app/code/Magento/GroupedProduct/Test/Mftf Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
3
/**
4
- * Copyright 2011 Adobe
4
+ * Copyright 2024 Adobe
5
5
* All Rights Reserved.
6
6
*/
7
7
-->
13
13
<description >Validates Child Products Quantities Input Error Messages are displaying</description >
14
14
</annotations >
15
15
<arguments >
16
- <argument name =" firstProductIndex " type =" string" defaultValue = " 1 " />
17
- <argument name =" secondProductIndex " type =" string" defaultValue = " 2 " />
18
- <argument name =" thirdProductIndex " type =" string" defaultValue = " 3 " />
16
+ <argument name =" firstProductId " type =" string" />
17
+ <argument name =" secondProductId " type =" string" />
18
+ <argument name =" thirdProductId " type =" string" />
19
19
</arguments >
20
- <dontSeeElement selector =" {{StorefrontProductInfoMainSection.groupedProductsAssociatedProductQuantityMageError(firstProductIndex )}}" stepKey =" checkingInputValidationErrorMessageForFirstProduct" />
21
- <seeElement selector =" {{StorefrontProductInfoMainSection.groupedProductsAssociatedProductQuantityMageError(secondProductIndex )}}" stepKey =" checkingInputValidationErrorMessageForSecondProduct" />
22
- <dontSeeElement selector =" {{StorefrontProductInfoMainSection.groupedProductsAssociatedProductQuantityMageError(thirdProductIndex )}}" stepKey =" checkingInputValidationErrorMessageForThirdProduct" />
20
+ <dontSeeElement selector =" {{StorefrontProductInfoMainSection.groupedProductOptionQtyError(firstProductId )}}" stepKey =" checkingInputValidationErrorMessageForFirstProduct" />
21
+ <seeElement selector =" {{StorefrontProductInfoMainSection.groupedProductOptionQtyError(secondProductId )}}" stepKey =" checkingInputValidationErrorMessageForSecondProduct" />
22
+ <dontSeeElement selector =" {{StorefrontProductInfoMainSection.groupedProductOptionQtyError(thirdProductId )}}" stepKey =" checkingInputValidationErrorMessageForThirdProduct" />
23
23
</actionGroup >
24
24
</actionGroups >
Original file line number Diff line number Diff line change 14
14
<element name =" groupedProductsAssociatedProductName" type =" text" parameterized =" true" selector =" #super-product-table tbody tr:nth-of-type({{index}}) .product-item-name" />
15
15
<element name =" groupedProductsAssociatedProductPrice" type =" text" parameterized =" true" selector =" #super-product-table tbody tr:nth-of-type({{index}}) .price" />
16
16
<element name =" groupedProductsAssociatedProductQuantity" type =" input" parameterized =" true" selector =" #super-product-table tbody tr:nth-of-type({{index}}) input.qty" />
17
- <element name =" groupedProductsAssociatedProductQuantityMageError" type =" input" parameterized =" true" selector =" #super-product-table tr:nth-of-type({{index}}) input.mage-error" />
18
17
<element name =" groupedProductOptions" type =" input" selector =" //td//strong[text()='{{productName}}']" parameterized =" true" />
19
18
<element name =" groupedProductOptionQtyError" type =" text" selector =" //*[@id='super_group[{{productId}}]-error']" parameterized =" true" />
20
19
</section >
Original file line number Diff line number Diff line change 35
35
<requiredEntity createDataKey =" product" />
36
36
<requiredEntity createDataKey =" simple3" />
37
37
</updateData >
38
- <actionGroup ref =" CliIndexerReindexActionGroup" stepKey =" runIndex" >
39
- <argument name =" indices" value =" " />
40
- </actionGroup >
41
38
</before >
42
39
<after >
40
+ <deleteData createDataKey =" product" stepKey =" deleteGroupedProduct" />
43
41
<deleteData createDataKey =" simple1" stepKey =" deleteSimple1" />
44
42
<deleteData createDataKey =" simple2" stepKey =" deleteSimple2" />
45
43
<deleteData createDataKey =" simple3" stepKey =" deleteSimple3" />
46
- <deleteData createDataKey =" product" stepKey =" deleteGroupedProduct" />
47
44
</after >
48
45
<actionGroup ref =" StorefrontAddThreeGroupedProductToTheCartActionGroup" stepKey =" enterSimpleProductsQty" >
49
46
<argument name =" urlKey" value =" $$product.custom_attributes[url_key]$$" />
54
51
<argument name =" qty2" value =" -10" />
55
52
<argument name =" qty3" value =" 5" />
56
53
</actionGroup >
57
- <actionGroup ref =" StorefrontValidateThreeGroupedProductQtyErrorMessageActionGroup" stepKey =" verifyQtyInputErrorMessage" />
54
+ <actionGroup ref =" StorefrontValidateThreeGroupedProductQtyErrorMessageActionGroup" stepKey =" verifyQtyInputErrorMessage" >
55
+ <argument name =" firstProductId" value =" $simple1.id$" />
56
+ <argument name =" secondProductId" value =" $simple2.id$" />
57
+ <argument name =" thirdProductId" value =" $simple3.id$" />
58
+ </actionGroup >
58
59
</test >
59
60
</tests >
You can’t perform that action at this time.
0 commit comments