This commit is contained in:
@@ -46,53 +46,12 @@ describe("WIDGET FORM", () => {
|
||||
cy.contains("Price is a required field").should("not.exist");
|
||||
|
||||
//start date
|
||||
cy.get("[data-cy='dtfpick:startDate']").click();
|
||||
//second row first day (the first row first day is variable (not always Monday) so not suitable)
|
||||
cy.get(
|
||||
'[data-cy="dpick:startDate"] > .v-picker__body > :nth-child(1) > .v-date-picker-table > table > tbody > :nth-child(2) > :nth-child(1)'
|
||||
).click();
|
||||
|
||||
//Start time
|
||||
cy.get("[data-cy='ttfpick:startDate']").click();
|
||||
//click on 4
|
||||
cy.get(
|
||||
"span.v-time-picker-clock__item:nth-child(6) > span:nth-child(1)"
|
||||
).click();
|
||||
//click on PM
|
||||
cy.get(".v-time-picker-title__ampm > :nth-child(2)").click();
|
||||
// cy.get(" div.v-picker__title__btn:nth-child(2) > :nth-child(1)").click();
|
||||
//click on 20
|
||||
cy.get(
|
||||
".v-dialog--active > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > span:nth-child(6) > span:nth-child(1)"
|
||||
).click({ force: true });
|
||||
//click on OK
|
||||
cy.get('[data-cy="tpick:startDate"] > .v-picker__actions > .v-btn').click();
|
||||
cy.get('[data-cy="dateinput:startDate"]').type("2020-01-01");
|
||||
cy.get('[data-cy="timeinput:startDate"]').type("16:20");
|
||||
|
||||
//end date
|
||||
cy.get("[data-cy='dtfpick:endDate']").click();
|
||||
//second row second day (second row always has all days represented)
|
||||
cy.get(
|
||||
'[data-cy="dpick:endDate"] > .v-picker__body > :nth-child(1) > .v-date-picker-table > table > tbody > :nth-child(2) > :nth-child(2)'
|
||||
).click();
|
||||
|
||||
//End time
|
||||
//NOTE: had to use some different selectors, maybe because of prior start date pick changing dom and causing duplicates
|
||||
//If need exact selector in future use Firefox, pick element and select Copy->CSS Selector to get accurate thing to select
|
||||
cy.get("[data-cy='ttfpick:endDate']").click();
|
||||
//click on 4
|
||||
cy.get(
|
||||
".v-dialog--active > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > span:nth-child(6) > span:nth-child(1)"
|
||||
).click();
|
||||
//click on PM
|
||||
cy.get(
|
||||
".v-dialog--active > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(2)"
|
||||
).click();
|
||||
//click on 20
|
||||
cy.get(
|
||||
".v-dialog--active > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > span:nth-child(6) > span:nth-child(1)"
|
||||
).click({ force: true });
|
||||
//click on OK
|
||||
cy.get('[data-cy="tpick:endDate"] > .v-picker__actions > .v-btn').click();
|
||||
cy.get('[data-cy="dateinput:endDate"]').type("2020-01-02");
|
||||
cy.get('[data-cy="timeinput:endDate"]').type("16:20");
|
||||
|
||||
//USER PICKLIST
|
||||
//this is an assumption but it's pretty hard to imagine there not being a user that matches this
|
||||
|
||||
Reference in New Issue
Block a user