|
18 | 18 | <testCaseId value="AC-4423"/> |
19 | 19 | <group value="sales"/> |
20 | 20 | <group value="catalog"/> |
21 | | - <group value="custom_options"/> |
22 | 21 | </annotations> |
23 | 22 | <before> |
24 | 23 | <!-- Step 1: Create simple product with file custom option via API --> |
|
41 | 40 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPageOnStorefront"> |
42 | 41 | <argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/> |
43 | 42 | </actionGroup> |
44 | | - <waitForPageLoad stepKey="waitForProductPageLoad"/> |
45 | 43 | <!-- Step 3: Upload any file and add product to cart --> |
46 | 44 | <waitForElementVisible selector="{{StorefrontProductInfoMainSection.addLinkFileUploadFile(ProductOptionFile.title)}}" stepKey="waitForFileUploadField"/> |
47 | 45 | <attachFile selector="{{StorefrontProductInfoMainSection.addLinkFileUploadFile(ProductOptionFile.title)}}" userInput="{{MagentoLogo.file}}" stepKey="attachFileToCustomOption"/> |
48 | 46 | <waitForPageLoad stepKey="waitForFileUploaded"/> |
49 | 47 | <actionGroup ref="StorefrontAddToTheCartActionGroup" stepKey="addProductToCart"/> |
50 | | - <waitForPageLoad stepKey="waitForProductAddedToCart"/> |
51 | 48 | <!-- Step 4: Open the cart --> |
52 | 49 | <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="openShoppingCart"/> |
53 | | - <waitForPageLoad stepKey="waitForCartPageLoad"/> |
54 | 50 | <!-- Step 4 Expected Result: The cart displays the product and the custom option as a clickable filename --> |
55 | 51 | <waitForElementVisible selector="{{CheckoutCartProductSection.ProductLinkByName($createProduct.name$)}}" stepKey="waitForProductInCart"/> |
56 | 52 | <waitForText selector="{{CheckoutCartProductSection.ProductLinkByName($createProduct.name$)}}" userInput="$createProduct.name$" stepKey="waitForProductNameInCart"/> |
|
64 | 60 | <argument name="customerVar" value="CustomerEntityOne"/> |
65 | 61 | <argument name="customerAddressVar" value="CustomerAddressSimple"/> |
66 | 62 | </actionGroup> |
67 | | - <waitForPageLoad stepKey="waitForShippingMethodsLoad"/> |
68 | 63 | <!-- Place order --> |
69 | 64 | <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="placeOrder"/> |
70 | | - <waitForPageLoad stepKey="waitForOrderPlaced"/> |
71 | 65 | <!-- Get order ID --> |
72 | 66 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderId"/> |
73 | 67 | <!-- Step 6: Open order from admin --> |
|
0 commit comments