Skip to content

Commit 0fed03e

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<grabTextFrom selector="{{AdminOrdersGridSection.gridCell('1','Purchase Date')}}" stepKey="grabPurchaseDateInFrenchLocale"/>
8282

8383
<!--Get month name in French-->
84-
<executeJS function="return (new Date('{$grabPurchaseDateInDefaultLocale}').toLocaleDateString('fr-CA', {month: 'short'}))" stepKey="getMonthNameInFrench"/>
84+
<executeJS function="return (moment('{$grabPurchaseDateInDefaultLocale}').locale('fr-ca').format('MMM'))" stepKey="getMonthNameInFrench"/>
8585

8686
<!--Checking Date after changing "Interface Locale"-->
8787
<assertStringContainsString stepKey="checkingDateAfterChangeInterfaceLocale">

0 commit comments

Comments
 (0)