Skip to content

Commit 84d9372

Browse files
committed
MC-32977: Unskip StorefrontButtonsInlineTranslationTest (MC-12735) and check it green on Jenkins
1 parent 3c15462 commit 84d9372

6 files changed

+13
-31
lines changed

app/code/Magento/Translation/Test/Mftf/ActionGroup/AdminTranslateElementActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="AdminTranslateElementActionGroup" deprecated="Avoid using super-ActionGroups. Use StorefrontOpenInlineTranslationPopupActionGroup, AssertStorefrontInlineTranslationPopupAppearsActionGroup, StorefrontFillTranslationFieldActionGroup and StorefrontSubmitInlineTranslationFormActionGroup">
11+
<actionGroup name="AdminTranslateElementActionGroup" deprecated="Avoid using super-ActionGroups. Use StorefrontOpenInlineTranslationPopupActionGroup, StorefrontFillCustomTranslationFieldActionGroup and StorefrontSubmitInlineTranslationFormActionGroup">
1212
<annotations>
13-
<description>DEPRECATED. Avoid using super-ActionGroups. Use StorefrontOpenInlineTranslationPopupActionGroup, AssertStorefrontInlineTranslationPopupAppearsActionGroup, StorefrontFillTranslationFieldActionGroup and StorefrontSubmitInlineTranslationFormActionGroup.</description>
13+
<description>DEPRECATED. Avoid using super-ActionGroups. Use StorefrontOpenInlineTranslationPopupActionGroup, StorefrontFillCustomTranslationFieldActionGroup and StorefrontSubmitInlineTranslationFormActionGroup.</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="elementSelector" type="string"/>

app/code/Magento/Translation/Test/Mftf/ActionGroup/AssertStorefrontInlineTranslationPopupAppearsActionGroup.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="StorefrontFillTranslationFieldActionGroup">
11+
<actionGroup name="StorefrontFillCustomTranslationFieldActionGroup">
1212
<annotations>
13-
<description>Fill the field in the Inline Translation form by provided text.</description>
13+
<description>Fill the field in the Inline Translation form by provided text on Storefront.</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="translateText" type="string" defaultValue="Translated"/>
1717
</arguments>
1818

19-
<clearField selector="{{InlineTranslationModeSection.inputCustomTranslate}}" stepKey="clearField"/>
20-
<fillField selector="{{InlineTranslationModeSection.inputCustomTranslate}}" userInput="{{translateText}}" stepKey="fillTranslateField"/>
19+
<clearField selector="{{InlineTranslationModeSection.inputCustomTranslate}}" stepKey="clearCustomTranslateField"/>
20+
<fillField selector="{{InlineTranslationModeSection.inputCustomTranslate}}" userInput="{{translateText}}" stepKey="fillCustomTranslateField"/>
2121
</actionGroup>
2222
</actionGroups>

app/code/Magento/Translation/Test/Mftf/ActionGroup/StorefrontOpenInlineTranslationPopupActionGroup.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="StorefrontOpenInlineTranslationPopupActionGroup">
1212
<annotations>
13-
<description>Open the Inline Translation popup for provided element.</description>
13+
<description>Open the Inline Translation popup for provided element on Storefront.</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="elementSelector" type="string" defaultValue="{{StorefrontHeaderSection.welcomeMessage}}"/>
1717
</arguments>
1818

1919
<executeJS function="jQuery('{{elementSelector}}').mousemove()" stepKey="moveMouseOverSelector"/>
2020
<executeJS function="jQuery('{{InlineTranslationModeSection.bookIcon}}').click()" stepKey="clickBookIcon"/>
21+
<waitForElementVisible selector="{{InlineTranslationModeSection.popUpTranslate}}" stepKey="waitForTranslationPopupAppear"/>
22+
<seeElement selector="{{InlineTranslationModeSection.popUpTranslate}}" stepKey="seeTranslateForm"/>
2123
</actionGroup>
2224
</actionGroups>

app/code/Magento/Translation/Test/Mftf/ActionGroup/StorefrontSubmitInlineTranslationFormActionGroup.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="StorefrontSubmitInlineTranslationFormActionGroup">
1212
<annotations>
13-
<description>Click on the Inline Translation form submit button.</description>
13+
<description>Click on the Inline Translation form submit button on Storefront.</description>
1414
</annotations>
1515

1616
<click selector="{{InlineTranslationModeSection.buttonSubmit}}" stepKey="clickSubmitButton"/>
17+
<waitForElementNotVisible selector="{{InlineTranslationModeSection.popUpTranslate}}" stepKey="waitForTranslationPopupDisappear"/>
18+
<dontSeeElement selector="{{InlineTranslationModeSection.popUpTranslate}}" stepKey="dontSeeTranslateForm"/>
1719
</actionGroup>
1820
</actionGroups>

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<annotations>
1313
<features value="Translation"/>
1414
<stories value="Inline Translation"/>
15-
<title value="[Inline Translation] Buttons inline translation"/>
15+
<title value="Buttons inline translation"/>
1616
<description value="A merchant should be able to translate buttons by an inline translation tool"/>
1717
<severity value="CRITICAL"/>
1818
<testCaseId value="MC-12735"/>
@@ -59,8 +59,5 @@
5959
<actionGroup ref="StorefrontOpenInlineTranslationPopupActionGroup" stepKey="openInlineTranslationPopup">
6060
<argument name="elementSelector" value="{{StorefrontMinicartSection.goToCheckout}}"/>
6161
</actionGroup>
62-
63-
<!-- Assert that Inline Translation popup appears -->
64-
<actionGroup ref="AssertStorefrontInlineTranslationPopupAppearsActionGroup" stepKey="assertInlineTranslationPopupAppears"/>
6562
</test>
6663
</tests>

0 commit comments

Comments
 (0)