[ACS-5857] addressed review comments

This commit is contained in:
SheenaMalhotra182
2023-09-02 14:49:12 +05:30
parent 0e1e0c636b
commit 9178da67d7
3 changed files with 7 additions and 2 deletions

View File

@@ -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';
}
}

View File

@@ -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 () => {

View File

@@ -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":[