From d92163b723bd8b18b3af869bdb6c01c9dc353566 Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Mon, 15 Feb 2021 16:41:22 +0100 Subject: [PATCH] update jasmine reporter --- e2e/protractor.conf.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/e2e/protractor.conf.js b/e2e/protractor.conf.js index 103a6082e..44b20685f 100644 --- a/e2e/protractor.conf.js +++ b/e2e/protractor.conf.js @@ -43,13 +43,8 @@ const localConfig = { if (typeof globalThis === 'undefined') global.globalThis = {} jasmine.getEnv().addReporter({ specDone: async ({ status, id, fullName, ...rest }) => { - if (status !== 'passed') { - if (process.stdout.isTTY) { - console.log(`\x1b[31m&s\x1b[0m`, 'F') - console.log(`spec failed, taking screenshot`) - } else { - console.log(`F`) - } + if (status === 'failed') { + console.log(`spec failed, taking screenshot`) const b64 = await globalThis.IAVBase.takeScreenshot() const dir = './scrnsht/' await asyncMkdir(dir, { recursive: true }) -- GitLab