File tree Expand file tree Collapse file tree 2 files changed +23
-9
lines changed
app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontConfigurableProductViewTest Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 49
49
</after >
50
50
51
51
<!-- Verify the storefront category grid view -->
52
- <amOnPage url =" {{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey =" amOnCategoryPage1" />
53
- <waitForPageLoad stepKey =" wait1" />
52
+ <actionGroup ref =" StorefrontNavigateCategoryPageActionGroup" stepKey =" amOnCategoryPage1" >
53
+ <argument name =" category" value =" $$createCategory$$" />
54
+ </actionGroup >
55
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" wait1" />
54
56
<seeElement selector =" {{StorefrontCategoryMainSection.productImage}}" stepKey =" seePhoto" />
55
- <see selector =" {{StorefrontCategoryMainSection.productLink}}" userInput =" {{_defaultProduct.name}}" stepKey =" seeName" />
57
+ <actionGroup ref =" AssertStorefrontProductIsPresentOnCategoryPageActionGroup" stepKey =" seeName" >
58
+ <argument name =" productName" value =" {{_defaultProduct.name}}" />
59
+ </actionGroup >
56
60
<seeElement selector =" {{StorefrontCategoryMainSection.productLinkByHref(_defaultProduct.urlKey)}}" stepKey =" seeNameLink" />
57
- <see selector =" {{StorefrontCategoryMainSection.productPrice}}" userInput =" {{colorProductAttribute1.price}}" stepKey =" seePrice" />
61
+ <actionGroup ref =" StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey =" seePrice" >
62
+ <argument name =" productName" value =" {{_defaultProduct.name}}" />
63
+ <argument name =" productPrice" value =" {{colorProductAttribute1.price}}" />
64
+ </actionGroup >
58
65
</test >
59
66
</tests >
Original file line number Diff line number Diff line change 59
59
</after >
60
60
61
61
<!-- Verify storefront category list view -->
62
- <amOnPage url =" {{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey =" amOnCategoryPage1" />
63
- <waitForPageLoad stepKey =" wait1" />
64
- <click selector =" {{StorefrontCategoryMainSection.modeListButton}}" stepKey =" clickListView" />
62
+ <actionGroup ref =" StorefrontNavigateCategoryPageActionGroup" stepKey =" amOnCategoryPage1" >
63
+ <argument name =" category" value =" $$createCategory$$" />
64
+ </actionGroup >
65
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" wait1" />
66
+ <actionGroup ref =" StorefrontSwitchCategoryViewToListModeActionGroup" stepKey =" clickListView" />
65
67
<waitForPageLoad stepKey =" wait2" />
66
68
<seeElement selector =" {{StorefrontCategoryMainSection.productImage}}" stepKey =" seePhoto" />
67
- <see selector =" {{StorefrontCategoryMainSection.productLink}}" userInput =" {{_defaultProduct.name}}" stepKey =" seeName" />
69
+ <actionGroup ref =" AssertStorefrontProductIsPresentOnCategoryPageActionGroup" stepKey =" seeName" >
70
+ <argument name =" productName" value =" {{_defaultProduct.name}}" />
71
+ </actionGroup >
68
72
<seeElement selector =" {{StorefrontCategoryMainSection.productLinkByHref(_defaultProduct.urlKey)}}" stepKey =" seeNameLink" />
69
- <see selector =" {{StorefrontCategoryMainSection.productPrice}}" userInput =" {{colorProductAttribute1.price}}" stepKey =" seePrice" />
73
+ <actionGroup ref =" StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey =" seePrice" >
74
+ <argument name =" productName" value =" {{_defaultProduct.name}}" />
75
+ <argument name =" productPrice" value =" {{colorProductAttribute1.price}}" />
76
+ </actionGroup >
70
77
</test >
71
78
</tests >
You can’t perform that action at this time.
0 commit comments