Removing unused function.
This commit is contained in:
parent
d89155aec8
commit
92dbfee839
|
@ -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", () => {
|
Cypress.Commands.add("login", () => {
|
||||||
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
|
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
|
||||||
cy.wait(500)
|
cy.wait(500)
|
||||||
|
|
Loading…
Reference in New Issue