|
63 | 63 | </actionGroup>
|
64 | 64 |
|
65 | 65 | <!--Veriy the breadcrumbs on Product Display page-->
|
66 |
| - <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="Home" stepKey="seeHomePageInBreadcrumbs1"/> |
67 |
| - <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$createCategoryOne.name$$" stepKey="seeCorrectBreadCrumbCategory"/> |
68 |
| - <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$productOne.name$$" stepKey="seeCorrectBreadCrumbProduct"/> |
| 66 | + <actionGroup ref="AssertStorefrontBreadcrubmsAreShownActionGroup" stepKey="seeHomePageInBreadcrumbs1"> |
| 67 | + <argument name="breadcrumbs" value="Home"/> |
| 68 | + </actionGroup> |
| 69 | + <actionGroup ref="AssertStorefrontBreadcrubmsAreShownActionGroup" stepKey="seeCorrectBreadCrumbCategory"> |
| 70 | + <argument name="breadcrumbs" value="$$createCategoryOne.name$$"/> |
| 71 | + </actionGroup> |
| 72 | + <actionGroup ref="AssertStorefrontBreadcrubmsAreShownActionGroup" stepKey="seeCorrectBreadCrumbProduct"> |
| 73 | + <argument name="breadcrumbs" value="$$productOne.name$$"/> |
| 74 | + </actionGroup> |
69 | 75 |
|
70 |
| - <click selector="{{StorefrontNavigationSection.topCategory($$createCategoryOne.name$$)}}" stepKey="goBackToCategoryPage"/> |
71 |
| - <waitForPageLoad stepKey="waitforCategoryPageToLoad2"/> |
| 76 | + <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="goBackToCategoryPage"> |
| 77 | + <argument name="category" value="$createCategoryOne$"/> |
| 78 | + </actionGroup> |
| 79 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitforCategoryPageToLoad2"/> |
72 | 80 |
|
73 | 81 | <!--Open product display page-->
|
74 |
| - <click selector="{{StorefrontCategoryProductSection.ProductTitleByName(productWithHTMLEntityTwo.name)}}" stepKey="clickProductToGoSecondProductPage"/> |
75 |
| - <waitForPageLoad stepKey="waitForProductDisplayPageLoad3"/> |
| 82 | + <actionGroup ref="StorefrontOpenProductFromCategoryPageActionGroup" stepKey="clickProductToGoSecondProductPage"> |
| 83 | + <argument name="productName" value="{{productWithHTMLEntityTwo.name}}"/> |
| 84 | + </actionGroup> |
| 85 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductDisplayPageLoad3"/> |
76 | 86 |
|
77 | 87 | <!--Verify the breadcrumbs on Product Display page-->
|
78 |
| - <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="Home" stepKey="seeHomePageInBreadcrumbs2"/> |
79 |
| - <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$createCategoryOne.name$$" stepKey="seeCorrectBreadCrumbCategory2"/> |
80 |
| - <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$productTwo.name$$" stepKey="seeCorrectBreadCrumbProduct2"/> |
81 |
| - |
| 88 | + <actionGroup ref="AssertStorefrontBreadcrubmsAreShownActionGroup" stepKey="seeHomePageInBreadcrumbs2"> |
| 89 | + <argument name="breadcrumbs" value="Home"/> |
| 90 | + </actionGroup> |
| 91 | + <actionGroup ref="AssertStorefrontBreadcrubmsAreShownActionGroup" stepKey="seeCorrectBreadCrumbCategory2"> |
| 92 | + <argument name="breadcrumbs" value="$$createCategoryOne.name$$"/> |
| 93 | + </actionGroup> |
| 94 | + <actionGroup ref="AssertStorefrontBreadcrubmsAreShownActionGroup" stepKey="seeCorrectBreadCrumbProduct2"> |
| 95 | + <argument name="breadcrumbs" value="$$productTwo.name$$"/> |
| 96 | + </actionGroup> |
82 | 97 | </test>
|
83 | 98 | </tests>
|
0 commit comments