From a135ac587ca5d5372d1c57bf089a0a36d0f3daef Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 5 Jan 2023 16:41:15 +0530 Subject: [PATCH] test: fixed failing date control UI test --- cypress/integration/control_date.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cypress/integration/control_date.js b/cypress/integration/control_date.js index 408f7b819e..442538661e 100644 --- a/cypress/integration/control_date.js +++ b/cypress/integration/control_date.js @@ -19,7 +19,7 @@ context("Date Control", () => { }); } - it("Selecting a date from the datepicker", () => { + it("Selecting a date from the datepicker & check prev & next button", () => { cy.clear_dialogs(); cy.clear_datepickers(); @@ -39,13 +39,7 @@ context("Date Control", () => { // Verify if the selected date is set the date field cy.window().its("cur_dialog.fields_dict.date.value").should("be.equal", "2020-01-15"); - }); - it("Checking next and previous button", () => { - cy.clear_dialogs(); - cy.clear_datepickers(); - - get_dialog({ default: "2020-01-15" }).as("dialog"); cy.get_field("date", "Date").click(); //Clicking on the next button in the datepicker