From 92dbfee8394c718375a08e0cc977c532b2ea7645 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 7 Jun 2021 17:00:03 +0100 Subject: [PATCH] Removing unused function. --- packages/builder/cypress/support/commands.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index 7d160b21d3..0d87697fdf 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -5,19 +5,6 @@ // *********************************************** // -export function checkIfElementExists(el) { - return new Promise(resolve => { - /// here if ele exists or not - cy.get("body").then(body => { - if (body.find(el).length > 0) { - resolve(true) - } else { - resolve(false) - } - }) - }) -} - Cypress.Commands.add("login", () => { cy.visit(`localhost:${Cypress.env("PORT")}/builder`) cy.wait(500)