From e1473dff79a50f220b2b14b4a01db445f9e22b94 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 10 Apr 2018 16:38:31 +0200 Subject: [PATCH] Fix tests --- www/common/sframe-common-outer.js | 4 ++-- www/common/sframe-common.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index c4f18bd09..fab9dfcfd 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -717,8 +717,8 @@ define([ Utils.Feedback.reportAppUsage(); - if (!realtime) { return; } - if (isNewFile && cfg.useCreationScreen) { return; } + if (!realtime && !Test.testing) { return; } + if (isNewFile && cfg.useCreationScreen && !Test.testing) { return; } //if (isNewFile && Utils.LocalStore.isLoggedIn() // && AppConfig.displayCreationScreen && cfg.useCreationScreen) { return; } diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index 66cf6aecd..c909c01f2 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -170,6 +170,7 @@ define([ // Store funcs.handleNewFile = function (waitFor) { + if (window.__CRYPTPAD_TEST__) { return; } var priv = ctx.metadataMgr.getPrivateData(); if (priv.isNewFile) { var c = (priv.settings.general && priv.settings.general.creation) || {};