-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: code hidden issue for JS Enabled fields (#13241)
* fix code hidden issue for JS Enabled fields * test for code hidden fix
- Loading branch information
1 parent
7b09976
commit 0eef3b0
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...gration/Smoke_TestSuite/ClientSideTests/PropertyPane/PropertyPaneJsEnabledVisible_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,42 @@ | ||
const dsl = require("../../../../fixtures/jsonFormDslWithSchema.json"); | ||
const { ObjectsRegistry } = require("../../../../support/Objects/Registry"); | ||
let ee = ObjectsRegistry.EntityExplorer; | ||
|
||
describe("Property pane js enabled field", function() { | ||
before(() => { | ||
cy.addDsl(dsl); | ||
}); | ||
|
||
it("Ensure text is visible for js enabled field when a section is collapsed by default", function() { | ||
cy.openPropertyPane("jsonformwidget"); | ||
|
||
cy.get(".t--property-pane-section-collapse-submitbuttonstyles").click(); | ||
cy.get(".t--property-control-buttonvariant") | ||
.find(".t--js-toggle") | ||
.first() | ||
.click(); | ||
|
||
cy.get(".t--property-control-buttonvariant") | ||
.find(".t--js-toggle") | ||
.first() | ||
.should("have.class", "is-active"); | ||
|
||
cy.get(".t--property-control-buttonvariant .CodeMirror-code").type( | ||
"PRIMARY", | ||
); | ||
cy.get(".t--property-control-buttonvariant") | ||
.find(".CodeMirror-code") | ||
.invoke("text") | ||
.should("equal", "PRIMARY"); | ||
|
||
cy.closePropertyPane(); | ||
cy.wait(1000); | ||
|
||
cy.openPropertyPane("jsonformwidget"); | ||
cy.get(".t--property-pane-section-collapse-submitbuttonstyles").click(); | ||
cy.get(".t--property-control-buttonvariant") | ||
.find(".CodeMirror-code") | ||
.invoke("text") | ||
.should("equal", "PRIMARY"); | ||
}); | ||
}); |
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