This commit is contained in:
@@ -34,15 +34,20 @@ describe("WIDGET", () => {
|
|||||||
//start date
|
//start date
|
||||||
cy.get("[data-cy='dtfpick:startDate']").click();
|
cy.get("[data-cy='dtfpick:startDate']").click();
|
||||||
//first row first day (the first of the month)
|
//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
|
//end
|
||||||
cy.get("[data-cy='dtfpick:endDate']").click();
|
cy.get("[data-cy='dtfpick:endDate']").click();
|
||||||
//first row second day (the second of the month)
|
//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(
|
||||||
// cy.get("tbody > :nth-child(1) > :nth-child(1) > .v-btn").click();
|
'[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
|
// // we should be redirected to /dashboard
|
||||||
// cy.url().should("include", "/home-dashboard");
|
// cy.url().should("include", "/home-dashboard");
|
||||||
|
|||||||
Reference in New Issue
Block a user