From 91615d5d7636a27ca593708463f17e8a167d6446 Mon Sep 17 00:00:00 2001 From: Zac Kwan Date: Thu, 19 Oct 2017 21:50:58 +0800 Subject: [PATCH 1/4] set autoCompile to false by default --- src/app/tabs/compile-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index f36296f390..932355eaae 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -205,7 +205,7 @@ function compileTab (container, appAPI, appEvents, opts) { // ----------------- autoCompile ----------------- var autoCompileInput = compileContainer.querySelector('#autoCompile') - var autoCompile = true + var autoCompile = false if (appAPI.config.exists('autoCompile')) { autoCompile = appAPI.config.get('autoCompile') } From aaf203192b8058c014549a6a82f822efa4fc827b Mon Sep 17 00:00:00 2001 From: Zac Kwan Date: Fri, 20 Oct 2017 08:03:08 +0800 Subject: [PATCH 2/4] perform a click on autoCompile to enable it --- test-browser/helpers/init.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test-browser/helpers/init.js b/test-browser/helpers/init.js index 1d3a9a6652..a0ca0d6dc9 100644 --- a/test-browser/helpers/init.js +++ b/test-browser/helpers/init.js @@ -2,6 +2,9 @@ module.exports = function (browser, callback) { browser .url('http://127.0.0.1:8080/#version=builtin') .injectScript('test-browser/helpers/applytestmode.js', function () { - browser.resizeWindow(2560, 1440, callback) + browser.click('#autoCompile') + .perform(function () { + callback() + }) }) } From 2b97c47a785c2b57f7e3f05f0ff01ee98a1aaf75 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 10 Jan 2018 14:29:41 +0100 Subject: [PATCH 3/4] Update init.js --- test-browser/helpers/init.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test-browser/helpers/init.js b/test-browser/helpers/init.js index a0ca0d6dc9..1d3a9a6652 100644 --- a/test-browser/helpers/init.js +++ b/test-browser/helpers/init.js @@ -2,9 +2,6 @@ module.exports = function (browser, callback) { browser .url('http://127.0.0.1:8080/#version=builtin') .injectScript('test-browser/helpers/applytestmode.js', function () { - browser.click('#autoCompile') - .perform(function () { - callback() - }) + browser.resizeWindow(2560, 1440, callback) }) } From 9bdd4ee8ed86aabcbb0a39c842101361ed54e45f Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 10 Jan 2018 15:24:18 +0100 Subject: [PATCH 4/4] Update init.js --- test-browser/helpers/init.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test-browser/helpers/init.js b/test-browser/helpers/init.js index 1d3a9a6652..e16574c2c9 100644 --- a/test-browser/helpers/init.js +++ b/test-browser/helpers/init.js @@ -3,5 +3,9 @@ module.exports = function (browser, callback) { .url('http://127.0.0.1:8080/#version=builtin') .injectScript('test-browser/helpers/applytestmode.js', function () { browser.resizeWindow(2560, 1440, callback) + .click('#autoCompile') + .perform(function () { + callback() + }) }) }