Take advantage of Cypress built-in promises

This commit is contained in:
mattwr18 2020-02-20 12:38:09 +01:00
parent 447b19eea0
commit 1fefc6e754

View File

@ -9,7 +9,7 @@ const neo4jConfigs = {
}
const neodeInstance = getNeode(neo4jConfigs)
beforeEach(() => cy.exec('yarn run db:reset'))
beforeEach(() => cy.then(() => neodeInstance.cypher('MATCH (everything) DETACH DELETE everything;')))
Cypress.Commands.add('neode', () => {
return neodeInstance