Skip to content

Commit 96bb2dc

Browse files
author
Stas Puga
committed
MC-12735: [Inline Translation] Buttons inline translation
1 parent 5ce61cf commit 96bb2dc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

app/code/Magento/Translation/Test/Mftf/Test/StorefrontButtonsInlineTranslationTest.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1111
<test name="StorefrontButtonsInlineTranslationTest">
1212
<annotations>
13+
<features value="Translation"/>
1314
<stories value="Inline Translation"/>
1415
<title value="[Inline Translation] Buttons inline translation"/>
1516
<description value="[Inline Translation] Buttons inline translation"/>
@@ -36,29 +37,31 @@
3637
<magentoCLI
3738
command="config:set {{DisableTranslateInlineForStorefront.path}} {{DisableTranslateInlineForStorefront.value}}"
3839
stepKey="disableTranslateInlineForStorefront"/>
40+
<!-- Set production mode -->
41+
<magentoCLI command="deploy:mode:set production" stepKey="setProductionMode"/>
42+
3943
<!-- Delete Simple Product -->
4044
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
4145
</after>
4246

4347
<!-- Add product to cart on storefront -->
44-
<actionGroup ref="AddSimpleProductToCart" stepKey="addProduct">
48+
<actionGroup ref="AddSimpleProductToCart" stepKey="addProductToCart">
4549
<argument name="product" value="$$createProduct$$"/>
4650
</actionGroup>
4751

4852
<!-- Click on cart button on the top -->
49-
<reloadPage stepKey="reloadPage"/>
50-
<waitForPageLoad stepKey="waitForReload"/>
5153
<click selector="{{StorefrontMiniCartSection.show}}" stepKey="showMiniCart"/>
5254

5355
<!-- Small cart popup appeared. -->
5456
<waitForElementVisible selector="{{StorefrontMinicartSection.blockMiniCart}}" stepKey="seePopUpAppeared"/>
57+
<waitForElementVisible selector="{{StorefrontMinicartSection.productName}}" stepKey="seeProductNameAppeared"/>
5558

5659
<!-- 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">
5861
<argument name="elementSelector" value="{{StorefrontMinicartSection.goToCheckout}}"/>
5962
</actionGroup>
6063

61-
<actionGroup ref="AdminTranslateElementActionGroup" stepKey="translateProceedToCheckout">
64+
<actionGroup ref="AdminTranslateElementActionGroup" stepKey="translateProceedToCheckoutButtonText">
6265
<argument name="elementSelector" value="{{StorefrontMinicartSection.goToCheckout}}"/>
6366
<argument name="translateText" value="Proceed to Checkout Translated"/>
6467
</actionGroup>

0 commit comments

Comments
 (0)