|
13 | 13 | <annotations>
|
14 | 14 | <features value="Customer"/>
|
15 | 15 | <stories value="Cart discounts meant for logged-in users are not applied to guest users"/>
|
16 |
| - <title value="User Specific Cart price rule Is Not Applied To Guest user"/> |
17 |
| - <description value="This test case verifies the Cart price rule created for logged in user doesnt apply for Not Logged in user"/> |
| 16 | + <title value="User specific cart price rule is not applied to guest user"/> |
| 17 | + <description value="This test case verifies the cart price rule created for logged-in user doesnt apply for guest user"/> |
18 | 18 | <testCaseId value="AC-13440"/>
|
19 | 19 | <severity value="MAJOR"/>
|
20 | 20 | <group value="customer"/>
|
21 | 21 | </annotations>
|
22 | 22 | <before>
|
23 |
| - <!-- Create Product, Customer --> |
| 23 | + <!-- Create product, customer --> |
24 | 24 | <createData entity="defaultSimpleProduct" stepKey="initialSimpleProductWithPrice"/>
|
25 | 25 | <createData entity="Simple_US_Customer_NY" stepKey="customer"/>
|
26 |
| - <!--Pre-condition 1:Login as Customer --> |
| 26 | + <!--Pre-condition 1:Login as customer --> |
27 | 27 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefront">
|
28 | 28 | <argument name="Customer" value="$customer$"/>
|
29 | 29 | </actionGroup>
|
30 |
| - <!-- Login as Admin--> |
| 30 | + <!-- Login as admin--> |
31 | 31 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
32 |
| - <!--Step2:Enabled The Persistent Shopping Cart feature --> |
| 32 | + <!--Step 2:Enabled the persistent shopping cart feature --> |
33 | 33 | <createData entity="PersistentConfigEnabled" stepKey="enablePersistent"/>
|
34 |
| - <!--Step3:Set Cookie Life Time to 60 Seconds --> |
| 34 | + <!--Step 3:Set cookie lifetime to 60 seconds --> |
35 | 35 | <actionGroup ref="AdminNavigateToDefaultCookieSettingsActionGroup" stepKey="navigateToDefaultCookieSettingsPage"/>
|
36 | 36 | <actionGroup ref="AdminUncheckUseSystemValueActionGroup" stepKey="uncheckUseSystemValue">
|
37 | 37 | <argument name="rowId" value="row_web_cookie_cookie_lifetime"/>
|
|
44 | 44 | </actionGroup>
|
45 | 45 | </before>
|
46 | 46 | <after>
|
47 |
| - <!-- Delete Product, Cart Price Rule, Customer --> |
| 47 | + <!-- Delete product, cart price rule, customer --> |
48 | 48 | <deleteData stepKey="deleteProduct" createDataKey="initialSimpleProductWithPrice"/>
|
49 | 49 | <actionGroup ref="DeleteCartPriceRuleByName" stepKey="deleteCreatedCartPriceRule">
|
50 | 50 | <argument name="ruleName" value="{{CartPriceRuleConditionAndFreeShippingApplied.name}}"/>
|
51 | 51 | </actionGroup>
|
52 | 52 | <deleteData createDataKey="customer" stepKey="deleteCustomer"/>
|
53 | 53 | <!--Revert persistent configuration to default -->
|
54 | 54 | <createData entity="PersistentConfigDefault" stepKey="setDefaultPersistentState"/>
|
55 |
| - <!--Set Cookie Life Time to Default Value--> |
| 55 | + <!--Set cookie lifetime to default Value--> |
56 | 56 | <actionGroup ref="AdminNavigateToDefaultCookieSettingsActionGroup" stepKey="navigateToDefaultCookieSettingsPageToReset"/>
|
57 | 57 | <actionGroup ref="AdminFillCookieLifetimeActionGroup" stepKey="fillCookieLifetimeFieldWithNumber">
|
58 | 58 | <argument name="cookieLifetime" value="3600"/>
|
|
65 | 65 | </actionGroup>
|
66 | 66 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
67 | 67 | </after>
|
68 |
| - <!--Step1: Create cart price rule for LoggedIn user with 50% discount --> |
| 68 | + <!--Step 1: Create cart price rule for logged-in user with 50% discount --> |
69 | 69 | <actionGroup ref="AdminOpenNewCartPriceRuleFormPageActionGroup" stepKey="amOnCartPriceList"/>
|
70 |
| - <actionGroup ref="AdminCartPriceRuleFillMainInfoActionGroup" stepKey="editNVDAGroups"> |
| 70 | + <actionGroup ref="AdminCartPriceRuleFillMainInfoActionGroup" stepKey="fillCartPriceRuleForm"> |
71 | 71 | <argument name="name" value="{{CartPriceRuleConditionAndFreeShippingApplied.name}}"/>
|
72 | 72 | <argument name="groups" value="General"/>
|
73 | 73 | </actionGroup>
|
|
83 | 83 | <argument name="rule" value="CartPriceRuleConditionAndFreeShippingApplied"/>
|
84 | 84 | </actionGroup>
|
85 | 85 | <actionGroup ref="AssertCartPriceRuleSuccessSaveMessageActionGroup" stepKey="seeAssertCartPriceRuleSuccessSaveMessage"/>
|
86 |
| - <!-- Go to Product page--> |
| 86 | + <!-- Go to product page--> |
87 | 87 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage">
|
88 | 88 | <argument name="productUrl" value="$$initialSimpleProductWithPrice.custom_attributes[url_key]$$"/>
|
89 | 89 | </actionGroup>
|
90 |
| - <!--Click on Add Product to Cart --> |
| 90 | + <!--Click on add product to Cart --> |
91 | 91 | <actionGroup ref="StorefrontAddToTheCartActionGroup" stepKey="clickOnAddToCartButton"/>
|
92 |
| - <!-- Navigate to Cart page--> |
| 92 | + <!-- Navigate to cart page--> |
93 | 93 | <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCartPage" />
|
94 |
| - <!-- Step4: Verify the cart price rule is applied, and the user got 50% discount on the product--> |
| 94 | + <!-- Step 4: Verify the cart price rule is applied, and the user got 50% discount on the product--> |
95 | 95 | <actionGroup ref="StorefrontCheckCartActionGroup" stepKey="cartAssert">
|
96 | 96 | <argument name="subtotal" value="$560.00"/>
|
97 | 97 | <argument name="shipping" value="$0.00"/>
|
98 | 98 | <argument name="shippingMethod" value="Flat Rate - Fixed"/>
|
99 | 99 | <argument name="total" value="$280.00"/>
|
100 | 100 | </actionGroup>
|
101 |
| - <!-- Step5: Verify User will be log out according to the cookie lifetime --> |
| 101 | + <!-- Step 5: Verify user will be log out according to the cookie lifetime --> |
102 | 102 | <wait time="60" stepKey="waitForCookieLifeTimeToComplete"/>
|
103 | 103 | <reloadPage stepKey="refreshPage"/>
|
104 | 104 | <waitForElementVisible selector="{{StorefrontPanelHeaderSection.customerLoginLink}}" stepKey="waitForSignInLink"/>
|
105 |
| - <!--Step6: verify cart is empty--> |
| 105 | + <!--Step 6: Verify cart is empty--> |
106 | 106 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefrontHomePage"/>
|
107 | 107 | <actionGroup ref="AssertMiniCartEmptyActionGroup" stepKey="seeCartEmpty"/>
|
108 | 108 | </test>
|
|
0 commit comments