Fix for Text spec failing (#239)

This commit is contained in:
Hetu Nandu 2020-08-07 12:40:54 +05:30 committed by GitHub
parent 955e9a2f2b
commit dc3fc8a7ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -13,9 +13,6 @@ describe("Text Widget Functionality", function() {
});
it("Text-TextStyle Heading, Text Name Validation", function() {
//Changing the text label
cy.testCodeMirror(this.data.TextLabelValue);
//changing the Text Name and verifying
cy.widgetText(
this.data.TextName,
@ -23,6 +20,9 @@ describe("Text Widget Functionality", function() {
widgetsPage.textWidget + " " + commonlocators.widgetNameTag,
);
//Changing the text label
cy.testCodeMirror(this.data.TextLabelValue);
cy.ChangeTextStyle(
this.data.TextHeading,
commonlocators.headingTextStyle,

View File

@ -746,6 +746,7 @@ Cypress.Commands.add("testCodeMirror", value => {
force: true,
parseSpecialCharSequences: false,
});
cy.wait(200);
cy.get(".CodeMirror textarea")
.first()
.should("have.value", value);