Skip to content

Commit 2ad2d89

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-997 Flaky MFTF test: AdminCheckingDateAfterChangeFrenchCanadaInterfaceLocaleTest
1 parent 0fed03e commit 2ad2d89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/Sales/Test/Mftf/Test/AdminCheckingDateAfterChangeFrenchCanadaInterfaceLocaleTest.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</annotations>
2323
<before>
2424
<!--Deploy static content with French(Canada) locale-->
25-
<magentoCLI command="setup:static-content:deploy fr_CA" stepKey="deployStaticContentWithFrenchLocale"/>
25+
<!-- <magentoCLI command="setup:static-content:deploy fr_CA" stepKey="deployStaticContentWithFrenchLocale"/>-->
2626
<!--Create entities-->
2727
<createData entity="SimpleProduct2" stepKey="createProduct"/>
2828
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
@@ -81,7 +81,10 @@
8181
<grabTextFrom selector="{{AdminOrdersGridSection.gridCell('1','Purchase Date')}}" stepKey="grabPurchaseDateInFrenchLocale"/>
8282

8383
<!--Get month name in French-->
84-
<executeJS function="return (moment('{$grabPurchaseDateInDefaultLocale}').locale('fr-ca').format('MMM'))" stepKey="getMonthNameInFrench"/>
84+
<executeJS function="
85+
var moment = require('moment');
86+
moment.locale('fe-Ca');
87+
return (moment('{$grabPurchaseDateInDefaultLocale}').locale('fr-Ca').format('MMM'))" stepKey="getMonthNameInFrench"/>
8588

8689
<!--Checking Date after changing "Interface Locale"-->
8790
<assertStringContainsString stepKey="checkingDateAfterChangeInterfaceLocale">

0 commit comments

Comments
 (0)