From 30f9bbd9f570139ec64767eaa56bf659fc046668 Mon Sep 17 00:00:00 2001 From: claire bontempo <68122737+hellobontempo@users.noreply.github.com> Date: Thu, 15 Jul 2021 12:54:42 -0700 Subject: [PATCH] UI/Clarifies error message for exit test process (#12094) * adds console log to elaborate on error message * fixes browserstack failure --- ui/scripts/start-vault.js | 5 +++-- ui/tests/acceptance/secrets/backend/kv/secret-test.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/scripts/start-vault.js b/ui/scripts/start-vault.js index 2ba9a9453..def7ae2c5 100755 --- a/ui/scripts/start-vault.js +++ b/ui/scripts/start-vault.js @@ -78,9 +78,10 @@ async function processLines(input, eachLine = () => {}) { written = true; console.log('VAULT SERVER READY'); } else if (initError) { - // If this is happening, run `export VAULT_LICENSE_PATH=/Users/username/license.hclic` - // to your valid local vault license filepath, or use OSS Vault console.log('VAULT SERVER START FAILED'); + console.log( + 'If this is happening, run `export VAULT_LICENSE_PATH=/Users/username/license.hclic` to your valid local vault license filepath, or use OSS Vault' + ); process.exit(1); } }); diff --git a/ui/tests/acceptance/secrets/backend/kv/secret-test.js b/ui/tests/acceptance/secrets/backend/kv/secret-test.js index 9f3545e58..d39ef4f81 100644 --- a/ui/tests/acceptance/secrets/backend/kv/secret-test.js +++ b/ui/tests/acceptance/secrets/backend/kv/secret-test.js @@ -332,7 +332,7 @@ module('Acceptance | secrets/secret/create', function(hooks) { await editPage.visitEdit({ backend, id: 'secret' }); assert.notOk(editPage.hasMetadataFields, 'hides the metadata form'); await editPage.editSecret('bar', 'baz'); - + await settled(); assert.equal(currentRouteName(), 'vault.cluster.secrets.backend.show', 'redirects to the show page'); assert.ok(showPage.editIsPresent, 'shows the edit button'); });