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

View File

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