|
22 | 22 | <!--Login to Admin Panel-->
|
23 | 23 | <actionGroup ref="AdminLoginActionGroup" stepKey="logInAsAdmin"/>
|
24 | 24 | <!-- Create tax rate for CA -->
|
25 |
| - <createData entity="US_CA_Rate_1" stepKey="CATaxRate"/> |
| 25 | + <createData entity="US_CA_Rate_1" stepKey="createTaxRateCA"/> |
26 | 26 | <!-- Create tax rate for TX -->
|
27 | 27 | <createData entity="ThirdTaxRateTexas" stepKey="createTaxRateTX"/>
|
28 | 28 | <!-- Create Tax Rules -->
|
29 | 29 | <actionGroup ref="AdminCreateTaxRuleActionGroup" stepKey="createTaxRule1">
|
30 |
| - <argument name="taxRate" value="$$CATaxRate$$"/> |
| 30 | + <argument name="taxRate" value="$$createTaxRateCA$$"/> |
31 | 31 | <argument name="taxRule" value="SimpleTaxRule"/>
|
32 | 32 | </actionGroup>
|
33 | 33 | <actionGroup ref="AdminCreateTaxRuleActionGroup" stepKey="createTaxRule2">
|
|
66 | 66 | <argument name="taxRuleCode" value="{{SimpleTaxRule2.code}}"/>
|
67 | 67 | </actionGroup>
|
68 | 68 | <!--Delete Tax Rates-->
|
69 |
| - <deleteData createDataKey="CATaxRate" stepKey="deleteTaxRate1"/> |
| 69 | + <deleteData createDataKey="createTaxRateCA" stepKey="deleteTaxRate1"/> |
70 | 70 | <deleteData createDataKey="createTaxRateTX" stepKey="deleteTaxRate2"/>
|
71 | 71 | <!--Delete Customers-->
|
72 | 72 | <deleteData createDataKey="createCustomerCA" stepKey="deleteCustomer1"/>
|
73 | 73 | <deleteData createDataKey="createCustomerTX" stepKey="deleteCustomer2"/>
|
74 | 74 | <!--Logout Admin-->
|
75 |
| - <actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/> |
| 75 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutAdmin"/> |
76 | 76 | </after>
|
77 | 77 |
|
78 | 78 | <!-- Login as customer 1-->
|
79 |
| - <actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomerLogin"> |
| 79 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomer1Login"> |
80 | 80 | <argument name="Customer" value="$$createCustomerCA$$"/>
|
81 | 81 | </actionGroup>
|
82 | 82 | <!-- Assert Customer Name -->
|
83 |
| - <actionGroup ref="AssertCustomerWelcomeMessageActionGroup" stepKey="assertCustomerLoggedIn"> |
| 83 | + <actionGroup ref="AssertCustomerWelcomeMessageActionGroup" stepKey="assertCustomerName"> |
84 | 84 | <argument name="customerFullName" value="$$createCustomerCA.firstname$$ $$createCustomerCA.lastname$$" />
|
85 | 85 | </actionGroup>
|
86 | 86 | <!-- Navigate to category page -->
|
87 | 87 | <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="navigateToCategoryPage">
|
88 | 88 | <argument name="category" value="$$createCategory$$"/>
|
89 | 89 | </actionGroup>
|
90 | 90 | <!-- Assert Product Prices -->
|
91 |
| - <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seePriceCategoryPageProduct1"> |
| 91 | + <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seeProduct1TaxInclusivePriceCustomer1"> |
92 | 92 | <argument name="productName" value="$$simpleProduct.name$$"/>
|
93 | 93 | <argument name="productPrice" value="$108.25"/>
|
94 | 94 | </actionGroup>
|
95 |
| - <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seeInclPriceCategoryPageProduct2"> |
| 95 | + <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seeProduct2TaxInclusivePriceCustomer1"> |
96 | 96 | <argument name="productName" value="$$simpleProduct2.name$$"/>
|
97 | 97 | <argument name="productPrice" value="$216.50"/>
|
98 | 98 | </actionGroup>
|
|
103 | 103 | <actionGroup ref="StorefrontAddProductToCompareActionGroup" stepKey="addFirstProductToCompare">
|
104 | 104 | <argument name="productVar" value="$$simpleProduct$$"/>
|
105 | 105 | </actionGroup>
|
106 |
| - <actionGroup ref="StorefrontClickAddToCartOnProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage"/> |
| 106 | + <actionGroup ref="StorefrontClickAddToCartOnProductPageActionGroup" stepKey="addFirstProductToCart"/> |
107 | 107 | <!--Add second product to compare list -->
|
108 | 108 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openSecondProductPage">
|
109 | 109 | <argument name="productUrl" value="$$simpleProduct2.custom_attributes[url_key]$$"/>
|
|
112 | 112 | <argument name="productVar" value="$$simpleProduct2$$"/>
|
113 | 113 | </actionGroup>
|
114 | 114 | <!--Add second product to wishlist -->
|
115 |
| - <actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="wishlist"> |
| 115 | + <actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addSecondProductToWishlist"> |
116 | 116 | <argument name="productVar" value="$$simpleProduct2$$"/>
|
117 | 117 | </actionGroup>
|
118 | 118 | <!-- Customer 1 logout -->
|
119 |
| - <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/> |
| 119 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customer1Logout"/> |
120 | 120 | <!-- Customer 2 login -->
|
121 | 121 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomer2Login">
|
122 | 122 | <argument name="Customer" value="$$createCustomerTX$$"/>
|
|
127 | 127 | </actionGroup>
|
128 | 128 | <actionGroup ref="StorefrontAssertCustomerWishlistIsEmptyActionGroup" stepKey="assertNoItemsInWishlist"/>
|
129 | 129 | <!-- Assert minicart is empty -->
|
130 |
| - <actionGroup ref="AssertMiniCartEmptyActionGroup" stepKey="assertMiniCartEmpty"/> |
| 130 | + <actionGroup ref="AssertMiniCartEmptyActionGroup" stepKey="assertMiniCartIsEmpty"/> |
131 | 131 | <!-- Navigate to category page -->
|
132 |
| - <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="navigateToCategoryPage4"> |
| 132 | + <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="navigateToCategoryPage2"> |
133 | 133 | <argument name="category" value="$$createCategory$$"/>
|
134 | 134 | </actionGroup>
|
135 | 135 | <!-- Assert Compare list is empty -->
|
136 | 136 | <seeElement selector="{{StorefrontComparisonSidebarSection.NoItemsMessage}}" stepKey="assertCompareListIsEmpty"/>
|
137 | 137 | <!-- Assert Product Prices -->
|
138 |
| - <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seePrice2CategoryPageProduct1"> |
| 138 | + <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seeProduct1TaxInclusivePriceCustomer2"> |
139 | 139 | <argument name="productName" value="$$simpleProduct.name$$"/>
|
140 | 140 | <argument name="productPrice" value="$120"/>
|
141 | 141 | </actionGroup>
|
142 |
| - <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seeInclPrice2CategoryPageProduct2"> |
| 142 | + <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seeProduct2TaxInclusivePriceCustomer2"> |
143 | 143 | <argument name="productName" value="$$simpleProduct2.name$$"/>
|
144 | 144 | <argument name="productPrice" value="$240"/>
|
145 | 145 | </actionGroup>
|
|
0 commit comments