diff --git a/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminCreateCartPriceRuleWithFromDateActionGroup.xml b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminCreateCartPriceRuleWithFromDateActionGroup.xml
new file mode 100644
index 0000000000000..d96f604b2cfee
--- /dev/null
+++ b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminCreateCartPriceRuleWithFromDateActionGroup.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+ Goes to the Admin Cart Price Rule grid page. Adds the provided Rule (with from date). Validates that the Success Message is present and correct.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/Ui/Test/Mftf/Test/AdminGridFilterDeleteAndVerifyErrorMessageTest.xml b/app/code/Magento/Ui/Test/Mftf/Test/AdminGridFilterDeleteAndVerifyErrorMessageTest.xml
index 3c93ed38b4eed..ed34ea4017db5 100644
--- a/app/code/Magento/Ui/Test/Mftf/Test/AdminGridFilterDeleteAndVerifyErrorMessageTest.xml
+++ b/app/code/Magento/Ui/Test/Mftf/Test/AdminGridFilterDeleteAndVerifyErrorMessageTest.xml
@@ -11,10 +11,10 @@
-
+
-
+
diff --git a/app/code/Magento/Ui/Test/Mftf/Test/AdminLocalizedDateElementTest.xml b/app/code/Magento/Ui/Test/Mftf/Test/AdminLocalizedDateElementTest.xml
new file mode 100644
index 0000000000000..e1484ea83a3d4
--- /dev/null
+++ b/app/code/Magento/Ui/Test/Mftf/Test/AdminLocalizedDateElementTest.xml
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/Ui/view/base/web/js/form/element/date.js b/app/code/Magento/Ui/view/base/web/js/form/element/date.js
index a5447b290fc5d..6887afbf9c2a8 100644
--- a/app/code/Magento/Ui/view/base/web/js/form/element/date.js
+++ b/app/code/Magento/Ui/view/base/web/js/form/element/date.js
@@ -31,6 +31,10 @@ define([
* Used only in date picker mode
* (this.options.showsTime == false).
*
+ * Locale examples:
+ * - (en_US): YYYY-MM-DD
+ * - (nl_NL): YYYY-MM-DD
+ *
* @type {String}
*/
inputDateFormat: 'y-MM-dd',
@@ -42,6 +46,10 @@ define([
* Used only in date picker mode
* (this.options.showsTime == false).
*
+ * Locale examples:
+ * - (en_US): MM/DD/YYYY
+ * - (nl_NL): DD-MM-YYYY
+ *
* @type {String}
*/
outputDateFormat: 'MM/dd/y',
@@ -117,22 +125,27 @@ define([
/**
* Prepares and sets date/time value that will be displayed
* in the input field.
- *
- * @param {String} value
*/
- onValueChange: function (value) {
- var shiftedValue;
+ setInitialValue: function () {
+ const value = this.getInitialValue();
+ let shiftedValue;
if (value) {
if (this.options.showsTime && !this.options.timeOnly) {
shiftedValue = moment.tz(value, 'UTC').tz(this.storeTimeZone);
} else {
- shiftedValue = moment(value, this.outputDateFormat, true);
+ if (this.parentScope.startsWith('filters.')) {
+ /*
+ * Date element in filter will get date value in outputDateFormat,
+ * because the server does not convert it from client format to
+ * server format when saving UI bookmark data.
+ */
+ shiftedValue = moment(value, this.outputDateFormat, true);
+ } else {
+ shiftedValue = moment(value, this.inputDateFormat, true);
+ }
}
- if (!shiftedValue.isValid()) {
- shiftedValue = moment(value, this.inputDateFormat);
- }
shiftedValue = shiftedValue.format(this.pickerDateTimeFormat);
} else {
shiftedValue = '';
@@ -141,6 +154,8 @@ define([
if (shiftedValue !== this.shiftedValue()) {
this.shiftedValue(shiftedValue);
}
+
+ return this._super();
},
/**
diff --git a/app/code/Magento/User/Test/Mftf/ActionGroup/AdminCreateUserWithRoleActionGroup.xml b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminCreateUserWithRoleActionGroup.xml
index dd4f181204040..1757dc0d9c541 100644
--- a/app/code/Magento/User/Test/Mftf/ActionGroup/AdminCreateUserWithRoleActionGroup.xml
+++ b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminCreateUserWithRoleActionGroup.xml
@@ -26,6 +26,7 @@
+
diff --git a/app/code/Magento/User/Test/Mftf/ActionGroup/AdminDeleteUserActionGroup.xml b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminDeleteUserActionGroup.xml
index 82a3a37cdd724..6979f8e749d15 100644
--- a/app/code/Magento/User/Test/Mftf/ActionGroup/AdminDeleteUserActionGroup.xml
+++ b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminDeleteUserActionGroup.xml
@@ -21,7 +21,7 @@
-
+
diff --git a/app/code/Magento/User/Test/Mftf/Data/UserData.xml b/app/code/Magento/User/Test/Mftf/Data/UserData.xml
index cf15c77810791..ab4ee398fab19 100644
--- a/app/code/Magento/User/Test/Mftf/Data/UserData.xml
+++ b/app/code/Magento/User/Test/Mftf/Data/UserData.xml
@@ -123,6 +123,12 @@
admin
0
+
+ admin
+ 1
+ nl_NL
+ Nederlands (Nederland)
+
admin_user_with_correct_password
diff --git a/app/code/Magento/Customer/Test/Mftf/Section/AdminCreateUserSection.xml b/app/code/Magento/User/Test/Mftf/Section/AdminCreateUserSection.xml
similarity index 91%
rename from app/code/Magento/Customer/Test/Mftf/Section/AdminCreateUserSection.xml
rename to app/code/Magento/User/Test/Mftf/Section/AdminCreateUserSection.xml
index 9548fb3175496..ad89f0f477ef1 100644
--- a/app/code/Magento/Customer/Test/Mftf/Section/AdminCreateUserSection.xml
+++ b/app/code/Magento/User/Test/Mftf/Section/AdminCreateUserSection.xml
@@ -18,6 +18,7 @@
+