From fd89cc7f7ebedb2ffb41fead112a3c0b5807bdd5 Mon Sep 17 00:00:00 2001 From: Ritvi Bhatt Date: Tue, 10 Dec 2024 11:37:24 -0800 Subject: [PATCH] change time value to 24 when setting time Signed-off-by: Ritvi Bhatt --- .cypress/utils/app_constants.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.cypress/utils/app_constants.js b/.cypress/utils/app_constants.js index 5064e4f165..81b11b6c12 100644 --- a/.cypress/utils/app_constants.js +++ b/.cypress/utils/app_constants.js @@ -136,6 +136,7 @@ export const moveToEditPage = () => { export const changeTimeTo24 = (timeUnit) => { cy.get('[data-test-subj="superDatePickerToggleQuickMenuButton"]').trigger('mouseover').click({ force: true }); + cy.get('[aria-label="Time value"]').type('{selectall}24'); cy.get('[aria-label="Time unit"]').select(timeUnit); cy.get('.euiButton').contains('Apply').click(); cy.get('[data-test-subj="superDatePickerApplyTimeButton"]').click();