From 506cf7eb663ec36f64430f6c40e126e5233d61e0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 31 Mar 2020 23:02:48 +0000 Subject: [PATCH] --- ayanova/tests/e2e/specs/widget-crud.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ayanova/tests/e2e/specs/widget-crud.js b/ayanova/tests/e2e/specs/widget-crud.js index b065d336..553f50c0 100644 --- a/ayanova/tests/e2e/specs/widget-crud.js +++ b/ayanova/tests/e2e/specs/widget-crud.js @@ -34,15 +34,20 @@ describe("WIDGET", () => { //start date cy.get("[data-cy='dtfpick:startDate']").click(); //first row first day (the first of the month) - cy.get("tbody > :nth-child(1) > :nth-child(1) > .v-btn").click(); + cy.get( + '[data-cy="dpick:startDate"] > .v-picker__body > :nth-child(1) > .v-date-picker-table > table > tbody > :nth-child(1) > :nth-child(1)' + ).click(); //end cy.get("[data-cy='dtfpick:endDate']").click(); //first row second day (the second of the month) - cy.get("tbody > :nth-child(1) > :nth-child(2) > .v-btn").click(); + // cy.get( + // '[data-cy="dpick:endDate"] > .v-picker__body > :nth-child(1) > .v-date-picker-table > table > tbody > :nth-child(2) > :nth-child(1)' + // ).click(); - // cy.get("[data-cy=startDate]").click(); - // cy.get("tbody > :nth-child(1) > :nth-child(1) > .v-btn").click(); + cy.get( + '[data-cy="dpick:endDate"] > .v-picker__body > :nth-child(1) > .v-date-picker-table > table > tbody > :nth-child(1) > :nth-child(2)' + ).click(); // // we should be redirected to /dashboard // cy.url().should("include", "/home-dashboard");