From eb9aaf39ebbed89f05879723d131c71a9e3046d0 Mon Sep 17 00:00:00 2001
From: Jure Triglav <juretriglav@gmail.com>
Date: Thu, 5 Dec 2019 17:04:00 +0100
Subject: [PATCH] test: small tweaks

---
 cypress/integration/submission_spec.js | 8 ++------
 scripts/clearAndSeed.js                | 1 -
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/cypress/integration/submission_spec.js b/cypress/integration/submission_spec.js
index cad63d7407..7277cb50fa 100644
--- a/cypress/integration/submission_spec.js
+++ b/cypress/integration/submission_spec.js
@@ -1,12 +1,8 @@
 // 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()
 }
 
diff --git a/scripts/clearAndSeed.js b/scripts/clearAndSeed.js
index 12d6bc882a..4a450aaf48 100644
--- a/scripts/clearAndSeed.js
+++ b/scripts/clearAndSeed.js
@@ -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
-- 
GitLab