mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[ACS-5857] addressed review comments
This commit is contained in:
@@ -42,4 +42,8 @@ export class FormDemoPage {
|
||||
await this.goToRenderedForm();
|
||||
await BrowserVisibility.waitUntilElementIsVisible(form);
|
||||
}
|
||||
|
||||
async updateDateFormat(formJson: any): Promise<void> {
|
||||
formJson.formRepresentation.formDefinition.fields[0].fields[1][0].dateDisplayFormat = 'yy-M-d';
|
||||
}
|
||||
}
|
||||
|
@@ -107,6 +107,7 @@ describe('Date widget', () => {
|
||||
beforeAll(async () => {
|
||||
const urlFormDemoPage = `${browser.baseUrl}/form`;
|
||||
await BrowserActions.getUrl(urlFormDemoPage);
|
||||
await formDemoPage.updateDateFormat(formJson);
|
||||
});
|
||||
|
||||
it('[C313199] Should display the validation for min and max date values with custom date format', async () => {
|
||||
|
@@ -93,7 +93,7 @@ export const customDateFormAPS1 = `{
|
||||
"existingColspan": 1,
|
||||
"maxColspan": 2
|
||||
},
|
||||
"dateDisplayFormat": "yy-M-d",
|
||||
"dateDisplayFormat": "YY-M-D",
|
||||
"layout": {
|
||||
"row": -1,
|
||||
"column": -1,
|
||||
@@ -157,7 +157,7 @@ export const customDateFormAPS2 = `{
|
||||
"existingColspan":1,
|
||||
"maxColspan":2
|
||||
},
|
||||
"dateDisplayFormat":"yy-M-d"
|
||||
"dateDisplayFormat":"YY-M-D"
|
||||
}
|
||||
],
|
||||
"2":[
|
||||
|
Reference in New Issue
Block a user