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? // TODO: What's with the wait?
const login = (username, password = 'password') => { const login = (username, password = 'password') => {
cy.get('input[name="username"]') cy.get('input[name="username"]').type(username)
.click() cy.get('input[name="password"]').type(password)
.type(username)
cy.get('input[name="password"]')
.click()
.type(password)
cy.get('button[type="submit"]').click() cy.get('button[type="submit"]').click()
} }
......
...@@ -31,7 +31,6 @@ const clearDb = async () => { ...@@ -31,7 +31,6 @@ const clearDb = async () => {
const seed = async dumpSql => { const seed = async dumpSql => {
if (dumpSql) { if (dumpSql) {
await clearDb() await clearDb()
console.log(dumpSql)
await db.raw(dumpSql) await db.raw(dumpSql)
console.log('Cleared the database and restored from dump') console.log('Cleared the database and restored from dump')
return true 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