|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 | 11 | <test name="StorefrontButtonsInlineTranslationTest">
|
12 | 12 | <annotations>
|
| 13 | + <features value="Translation"/> |
13 | 14 | <stories value="Inline Translation"/>
|
14 | 15 | <title value="[Inline Translation] Buttons inline translation"/>
|
15 | 16 | <description value="[Inline Translation] Buttons inline translation"/>
|
|
36 | 37 | <magentoCLI
|
37 | 38 | command="config:set {{DisableTranslateInlineForStorefront.path}} {{DisableTranslateInlineForStorefront.value}}"
|
38 | 39 | stepKey="disableTranslateInlineForStorefront"/>
|
| 40 | + <!-- Set production mode --> |
| 41 | + <magentoCLI command="deploy:mode:set production" stepKey="setProductionMode"/> |
| 42 | + |
39 | 43 | <!-- Delete Simple Product -->
|
40 | 44 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
41 | 45 | </after>
|
42 | 46 |
|
43 | 47 | <!-- Add product to cart on storefront -->
|
44 |
| - <actionGroup ref="AddSimpleProductToCart" stepKey="addProduct"> |
| 48 | + <actionGroup ref="AddSimpleProductToCart" stepKey="addProductToCart"> |
45 | 49 | <argument name="product" value="$$createProduct$$"/>
|
46 | 50 | </actionGroup>
|
47 | 51 |
|
48 | 52 | <!-- Click on cart button on the top -->
|
49 |
| - <reloadPage stepKey="reloadPage"/> |
50 |
| - <waitForPageLoad stepKey="waitForReload"/> |
51 | 53 | <click selector="{{StorefrontMiniCartSection.show}}" stepKey="showMiniCart"/>
|
52 | 54 |
|
53 | 55 | <!-- Small cart popup appeared. -->
|
54 | 56 | <waitForElementVisible selector="{{StorefrontMinicartSection.blockMiniCart}}" stepKey="seePopUpAppeared"/>
|
| 57 | + <waitForElementVisible selector="{{StorefrontMinicartSection.productName}}" stepKey="seeProductNameAppeared"/> |
55 | 58 |
|
56 | 59 | <!-- Check button "Proceed to Checkout". There must be red borders and "book" icons on labels that can be translated. -->
|
57 |
| - <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertProceedToCheckout"> |
| 60 | + <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertRedBordersAndBookIcon"> |
58 | 61 | <argument name="elementSelector" value="{{StorefrontMinicartSection.goToCheckout}}"/>
|
59 | 62 | </actionGroup>
|
60 | 63 |
|
61 |
| - <actionGroup ref="AdminTranslateElementActionGroup" stepKey="translateProceedToCheckout"> |
| 64 | + <actionGroup ref="AdminTranslateElementActionGroup" stepKey="translateProceedToCheckoutButtonText"> |
62 | 65 | <argument name="elementSelector" value="{{StorefrontMinicartSection.goToCheckout}}"/>
|
63 | 66 | <argument name="translateText" value="Proceed to Checkout Translated"/>
|
64 | 67 | </actionGroup>
|
|
0 commit comments