Skip to content

Commit

Permalink
change time value to 24 when setting time
Browse files Browse the repository at this point in the history
Signed-off-by: Ritvi Bhatt <[email protected]>
  • Loading branch information
Ritvi Bhatt committed Dec 10, 2024
1 parent c22c69d commit fd89cc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .cypress/utils/app_constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export const moveToEditPage = () => {

export const changeTimeTo24 = (timeUnit) => {
cy.get('[data-test-subj="superDatePickerToggleQuickMenuButton"]').trigger('mouseover').click({ force: true });

Check warning on line 138 in .cypress/utils/app_constants.js

View workflow job for this annotation

GitHub Actions / Lint

Do not use force on click and type calls
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();
Expand Down

0 comments on commit fd89cc7

Please sign in to comment.