-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/release' into update/formwidget-…
…use-btnwidget
- Loading branch information
Showing
81 changed files
with
1,320 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...ypress/integration/Smoke_TestSuite/ClientSideTests/FormWidgets/Form_With_CheckBox_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const commonlocators = require("../../../../locators/commonlocators.json"); | ||
const formWidgetsPage = require("../../../../locators/FormWidgets.json"); | ||
const widgetsPage = require("../../../../locators/Widgets.json"); | ||
const publish = require("../../../../locators/publishWidgetspage.json"); | ||
const dsl = require("../../../../fixtures/formWidgetdsl.json"); | ||
const pages = require("../../../../locators/Pages.json"); | ||
|
||
describe("Checkbox Widget Functionality", function() { | ||
before(() => { | ||
cy.addDsl(dsl); | ||
}); | ||
|
||
it("Checkbox Functionality To Check required toggle for form", function() { | ||
cy.openPropertyPane("checkboxwidget"); | ||
cy.togglebar(commonlocators.requiredjs + " " + "input"); | ||
cy.PublishtheApp(); | ||
cy.get(publish.checkboxWidget).click(); | ||
cy.get(widgetsPage.formButtonWidget) | ||
.contains("Submit") | ||
.should("have.class", "bp3-disabled"); | ||
|
||
cy.get(publish.checkboxWidget).click(); | ||
cy.get(widgetsPage.formButtonWidget) | ||
.contains("Submit") | ||
.should("not.have.attr", "disabled"); | ||
|
||
cy.get(publish.backToEditor).click(); | ||
}); | ||
it("Checkbox Functionality To swap label placement of checkbox", function() { | ||
cy.openPropertyPane("checkboxwidget"); | ||
cy.get(publish.checkboxWidget + " " + ".bp3-align-right").should( | ||
"not.exist", | ||
); | ||
cy.get(publish.checkboxWidget + " " + ".bp3-align-left").should("exist"); | ||
cy.get(commonlocators.optionalignment) | ||
.last() | ||
.click(); | ||
cy.dropdownDynamicUpdated("Right"); | ||
cy.PublishtheApp(); | ||
cy.get(publish.checkboxWidget + " " + ".bp3-align-right").should("exist"); | ||
cy.get(publish.checkboxWidget + " " + ".bp3-align-left").should( | ||
"not.exist", | ||
); | ||
cy.get(publish.backToEditor).click(); | ||
}); | ||
}); | ||
afterEach(() => { | ||
// put your clean up code if any | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.