Skip to content
Snippets Groups Projects
Commit eb9aaf39 authored by Jure's avatar Jure
Browse files

test: small tweaks

parent 8911e0b8
No related branches found
No related tags found
No related merge requests found
// TODO: What's with the wait?
const login = (username, password = 'password') => {
cy.get('input[name="username"]')
.click()
.type(username)
cy.get('input[name="password"]')
.click()
.type(password)
cy.get('input[name="username"]').type(username)
cy.get('input[name="password"]').type(password)
cy.get('button[type="submit"]').click()
}
......
......@@ -31,7 +31,6 @@ const clearDb = async () => {
const seed = async dumpSql => {
if (dumpSql) {
await clearDb()
console.log(dumpSql)
await db.raw(dumpSql)
console.log('Cleared the database and restored from dump')
return true
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment