Created
July 30, 2020 21:34
-
-
Save kermit-klein/2b3e78d4a6e24898d21d3d86cf43d7b8 to your computer and use it in GitHub Desktop.
cypress_command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
Cypress.Commands.add("deleteAndSeedDatabase", async () => { | |
return await axios.post("http://localhost:3000/test/delete_database", { | |
seed: true, | |
}); | |
}); | |
Cypress.Commands.add("deleteDatabase", async () => { | |
return await axios.post("http://localhost:3000/test/delete_database", { | |
seed: false, | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment