|
12 | 12 | <annotations>
|
13 | 13 | <features value="Catalog"/>
|
14 | 14 | <stories value="Custom options"/>
|
15 |
| - <group value="Catalog"/> |
16 | 15 | <title value="Admin should be able to see the full title of the selected custom option value in the order"/>
|
17 | 16 | <description value="Admin should be able to see the full title of the selected custom option value in the order"/>
|
18 | 17 | <severity value="MAJOR"/>
|
19 |
| - <testCaseId value="MC-3043"/> |
20 |
| - <skip> |
21 |
| - <issueId value="MQE-1128"/> |
22 |
| - </skip> |
| 18 | + <testCaseId value="MC-25479"/> |
| 19 | + <group value="catalog"/> |
23 | 20 | </annotations>
|
24 | 21 | <before>
|
25 | 22 | <!--Create Simple Product with Custom Options-->
|
|
45 | 42 | <!-- Login Customer Storefront -->
|
46 | 43 | <actionGroup ref="StorefrontOpenCustomerLoginPageActionGroup" stepKey="goToSignInPage"/>
|
47 | 44 | <actionGroup ref="StorefrontFillCustomerLoginFormActionGroup" stepKey="fillLoginFormWithCorrectCredentials">
|
48 |
| - <argument name="customer" value="$$createCustomer$$"/> |
| 45 | + <argument name="customer" value="$createCustomer$"/> |
49 | 46 | </actionGroup>
|
50 | 47 | <actionGroup ref="StorefrontClickSignOnCustomerLoginFormActionGroup" stepKey="clickSignInAccountButton" />
|
51 | 48 |
|
52 | 49 | <!-- Checking the correctness of displayed prices for user parameters -->
|
53 | 50 |
|
54 |
| - <amOnPage url="{{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey="amOnProductPage"/> |
| 51 | + <amOnPage url="{{StorefrontProductPage.url($createProduct.custom_attributes[url_key]$)}}" stepKey="amOnProductPage"/> |
| 52 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
55 | 53 | <seeElement selector="{{StorefrontProductInfoMainSection.productAttributeOptionsDropDown(ProductOptionDropDownWithLongValuesTitle.title, ProductOptionValueDropdownLongTitle1.price)}}" stepKey="checkDropDownProductOption"/>
|
56 | 54 |
|
57 | 55 | <!-- Adding items to the checkout -->
|
58 | 56 |
|
59 | 57 | <selectOption userInput="{{ProductOptionValueDropdownLongTitle1.price}}" selector="{{StorefrontProductInfoMainSection.productOptionSelect(ProductOptionDropDownWithLongValuesTitle.title)}}" stepKey="seeProductOptionDropDown"/>
|
60 |
| - <grabTextFrom selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="finalProductPrice"/> |
61 |
| - |
| 58 | + <comment userInput="BIC workaround" stepKey="finalProductPrice"/> |
62 | 59 | <actionGroup ref="StorefrontAddToCartCustomOptionsProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
|
63 |
| - <argument name="productName" value="$$createProduct.name$$"/> |
| 60 | + <argument name="productName" value="$createProduct.name$"/> |
64 | 61 | </actionGroup>
|
65 | 62 |
|
66 | 63 | <!-- Checking the correctness of displayed custom options for user parameters on checkout -->
|
67 | 64 |
|
68 | 65 | <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart" />
|
69 | 66 |
|
70 |
| - <conditionalClick selector="{{CheckoutPaymentSection.cartItemsArea}}" dependentSelector="{{CheckoutPaymentSection.cartItemsArea}}" visible="true" stepKey="exposeMiniCart"/> |
| 67 | + <waitForElementVisible selector="{{CheckoutPaymentSection.cartItemsArea}}" stepKey="waitForCartItemsVisible"/> |
| 68 | + <conditionalClick selector="{{CheckoutPaymentSection.cartItemsArea}}" dependentSelector="{{CheckoutPaymentSection.cartItemsAreaActive}}" visible="false" stepKey="exposeMiniCart"/> |
71 | 69 |
|
72 | 70 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskForCartItem"/>
|
73 |
| - <waitForElement selector="{{CheckoutPaymentSection.cartItemsAreaActive}}" time="30" stepKey="waitForCartItemsAreaActive"/> |
| 71 | + <waitForElementVisible selector="{{CheckoutPaymentSection.cartItems}}" stepKey="waitForCartItemsAreaActive"/> |
74 | 72 |
|
75 |
| - <see selector="{{CheckoutPaymentSection.cartItems}}" userInput="$$createProduct.name$$" stepKey="seeProductInCart"/> |
| 73 | + <see selector="{{CheckoutPaymentSection.cartItems}}" userInput="$createProduct.name$" stepKey="seeProductInCart"/> |
76 | 74 |
|
77 |
| - <conditionalClick selector="{{CheckoutPaymentSection.ProductOptionsByProductItemName($$createProduct.name$$)}}" dependentSelector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName($$createProduct.name$$)}}" visible="false" stepKey="exposeProductOptions"/> |
| 75 | + <conditionalClick selector="{{CheckoutPaymentSection.ProductOptionsByProductItemName($createProduct.name$)}}" dependentSelector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName($createProduct.name$)}}" visible="false" stepKey="exposeProductOptions"/> |
78 | 76 |
|
79 |
| - <see selector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName($$createProduct.name$$)}}" userInput="{{ProductOptionValueDropdownLongTitle1.title}}" stepKey="seeProductOptionValueDropdown1Input1"/> |
| 77 | + <see selector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName($createProduct.name$)}}" userInput="{{ProductOptionValueDropdownLongTitle1.title}}" stepKey="seeProductOptionValueDropdown1Input1"/> |
80 | 78 |
|
81 | 79 | <!--Select shipping method-->
|
82 | 80 |
|
83 | 81 | <actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShippingMethod"/>
|
84 | 82 | <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>
|
85 | 83 |
|
86 | 84 | <!-- Checkout select Check/Money Order payment -->
|
87 |
| - <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPayment"/> |
| 85 | + <comment userInput="BIC workaround" stepKey="selectCheckMoneyPayment"/> |
88 | 86 |
|
89 | 87 | <!-- Place Order -->
|
90 | 88 |
|
|
116 | 114 | </assertEquals>
|
117 | 115 | <moveMouseOver selector="{{AdminOrderItemsOrderedSection.productNameOptions}} dd" stepKey="hoverProduct"/>
|
118 | 116 | <waitForElementVisible selector="{{AdminOrderItemsOrderedSection.productNameOptions}} dd:nth-child(2)" stepKey="waitForCustomOptionValueFullName"/>
|
119 |
| - <see selector="{{AdminOrderItemsOrderedSection.productNameOptions}}" userInput="Optisfvdklvfnkljvnfdklpvnfdjklfdvnjkvfdkjnvfdjkfvndj11111Optisfvdklvfnkljvnfdklpvnfdjklfdvnjkvfdkjnvfdjkfvndj11111" stepKey="seeAdminOrderProductOptionValueDropdown1"/> |
| 117 | + <see selector="{{AdminOrderItemsOrderedSection.productNameOptions}}" userInput="Optisfvdklvfnkljvnfdklpvnfdjklfdvnjkvfdkjnvfdjkfvndj111 11Optisfvdklvfnkljvnfdklpvnfdjklfdvnjkvfdkjnvfdjkfvndj11111" stepKey="seeAdminOrderProductOptionValueDropdown1"/> |
120 | 118 | </test>
|
121 | 119 | </tests>
|
0 commit comments