Fix/element not identified

This commit is contained in:
Pushpa B 2020-04-02 13:16:18 +00:00
parent 30ff157c43
commit be491ba33d
3 changed files with 16 additions and 6 deletions

View File

@ -22,14 +22,19 @@ context("Cypress test", function() {
cy.get(".CodeMirror textarea") cy.get(".CodeMirror textarea")
.first() .first()
.should("have.value", "Test Dropdown"); .should("have.value", "Test Dropdown");
cy.xpath(formWidgetsPage.dropdownSelectionType) cy.get(formWidgetsPage.dropdownSelectionType)
.find("> div")
.eq(1)
.find("> span > span > div > button")
.click({ force: true }) .click({ force: true })
.get("ul.bp3-menu") .get("ul.bp3-menu")
.children() .children()
.eq(1) .eq(1)
.click(); .click();
cy.xpath(formWidgetsPage.dropdownSelectionType) cy.get(formWidgetsPage.dropdownSelectionType)
.find("> span") .find("> div")
.eq(1)
.find("> span > span > div > button > span")
.eq(0) .eq(0)
.should("have.text", "Multi Select"); .should("have.text", "Multi Select");
cy.get(commonlocators.editPropCrossButton).click(); cy.get(commonlocators.editPropCrossButton).click();

View File

@ -22,7 +22,10 @@ context("Cypress test", function() {
cy.get(".CodeMirror textarea") cy.get(".CodeMirror textarea")
.first() .first()
.should("have.value", "Test Radio"); .should("have.value", "Test Radio");
cy.xpath(formWidgetsPage.radioOnSelectionChangeDropdown) cy.get(formWidgetsPage.radioOnSelectionChangeDropdown)
.find("> div")
.eq(1)
.find("> span > span > button")
.click({ force: true }) .click({ force: true })
.get("ul.bp3-menu") .get("ul.bp3-menu")
.children() .children()

View File

@ -1,9 +1,11 @@
{ {
"checkboxWidget": ".t--draggable-checkboxwidget", "checkboxWidget": ".t--draggable-checkboxwidget",
"dropdownWidget": ".t--draggable-dropdownwidget", "dropdownWidget": ".t--draggable-dropdownwidget",
"dropdownSelectionType": "/html/body/div[2]/div/div[3]/div[2]/div[2]/div[2]/span/span/div/button", "dropdownSelectionType": ".t--property-control-selectiontype",
"radioWidget": ".t--draggable-radiogroupwidget", "radioWidget": ".t--draggable-radiogroupwidget",
"radioOnSelectionChangeDropdown": "/html/body/div[2]/div/div[4]/div[2]/div/div[2]/span/span/button" "radioOnSelectionChangeDropdown": ".t--property-control-onselectionchange",
"datepickerWidget":".t--draggable-datepickerwidget",
"filepickerWidget":".t--draggable-filepickerwidget"
} }