fix: failing tests

This commit is contained in:
Tolulope Adetula 2022-06-22 02:38:05 +01:00
parent 31f91f6e1c
commit 43ecd36407

View File

@ -10,9 +10,6 @@ describe("MultiSelect Widget Functionality", function() {
before(() => { before(() => {
cy.addDsl(dsl); cy.addDsl(dsl);
}); });
beforeEach(() => {
cy.wait(7000);
});
it("Selects value with invalid default value", () => { it("Selects value with invalid default value", () => {
cy.openPropertyPane("multiselectwidgetv2"); cy.openPropertyPane("multiselectwidgetv2");
cy.testJsontext("options", JSON.stringify(data.input)); cy.testJsontext("options", JSON.stringify(data.input));
@ -25,8 +22,6 @@ describe("MultiSelect Widget Functionality", function() {
cy.get(".multi-select-dropdown") cy.get(".multi-select-dropdown")
.contains("Option 3") .contains("Option 3")
.click({ force: true }); .click({ force: true });
cy.get("body").type("{esc}");
cy.wait(2000); cy.wait(2000);
//Validating option inside multiselect widget //Validating option inside multiselect widget
cy.get(".rc-select-selection-item-content") cy.get(".rc-select-selection-item-content")
@ -87,8 +82,8 @@ describe("MultiSelect Widget Functionality", function() {
cy.get(".t--widget-textwidget").should("contain", "false"); cy.get(".t--widget-textwidget").should("contain", "false");
}); });
it("Selects value with enter in default value", () => { it("Selects value with enter in default value", () => {
cy.testJsontext( cy.updateCodeInput(
"defaultvalue", ".t--property-control-defaultvalue",
'[\n {\n "label": "Option 3",\n "value": "3"\n }\n]', '[\n {\n "label": "Option 3",\n "value": "3"\n }\n]',
); );
cy.get(formWidgetsPage.multiselectwidgetv2) cy.get(formWidgetsPage.multiselectwidgetv2)