From 1eb6c28617f08afcdf8f53583bb9ea2a6166319d Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 17 Jan 2018 14:59:48 +0000 Subject: [PATCH] Removed logging. --- test/functional/history/index.js | 10 ---------- test/functional/layers/index.js | 7 ------- test/functional/modals/index.js | 14 -------------- test/functional/util/webdriverio-ext.js | 5 ----- 4 files changed, 36 deletions(-) diff --git a/test/functional/history/index.js b/test/functional/history/index.js index 41895562..d699c075 100644 --- a/test/functional/history/index.js +++ b/test/functional/history/index.js @@ -51,8 +51,6 @@ describe.skip("history", function() { } ]); - console.log(">>> LOGS", JSON.stringify(browser.log("browser"), null, 2)) - browser .keys(['Control', 'z']) .keys(['Control']); @@ -64,8 +62,6 @@ describe.skip("history", function() { } ]); - console.log(">>> LOGS", JSON.stringify(browser.log("browser"), null, 2)) - browser .keys(['Control', 'z']) .keys(['Control']); @@ -73,8 +69,6 @@ describe.skip("history", function() { assert.deepEqual(styleObj.layers, [ ]); - console.log(">>> LOGS", JSON.stringify(browser.log("browser"), null, 2)) - browser .keys(['Control', 'y']) .keys(['Control']); @@ -86,8 +80,6 @@ describe.skip("history", function() { } ]); - console.log(">>> LOGS", JSON.stringify(browser.log("browser"), null, 2)) - browser .keys(['Control', 'y']) .keys(['Control']); @@ -103,7 +95,6 @@ describe.skip("history", function() { } ]); - console.log(">>> LOGS", JSON.stringify(browser.log("browser"), null, 2)) }); @@ -123,7 +114,6 @@ describe.skip("history", function() { // helper.modalCommands.addLayer.open(browser); // styleObj = helper.helper.getStyleStore(browser); - // console.log("styleObj", styleObj); // assert.deepEqual(styleObj.layers, []); // helper.modalCommands.addLayer.fill(browser, { diff --git a/test/functional/layers/index.js b/test/functional/layers/index.js index d8f4acfd..14c5d797 100644 --- a/test/functional/layers/index.js +++ b/test/functional/layers/index.js @@ -194,7 +194,6 @@ describe("layers", function() { browser.click(wd.$("layer-editor.layer-id", "input")); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.deepEqual(styleObj.layers, [ { "id": 'background:'+bgId, @@ -208,7 +207,6 @@ describe("layers", function() { // browser.click(wd.$("max-zoom", "input")); // var styleObj = helper.getStyleStore(browser); - // console.log("styleObj", styleObj); // assert.deepEqual(styleObj.layers, [ // { @@ -226,7 +224,6 @@ describe("layers", function() { browser.click(wd.$("layer-editor.layer-id", "input")); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.deepEqual(styleObj.layers, [ { "id": 'background:'+bgId, @@ -245,7 +242,6 @@ describe("layers", function() { browser.click(wd.$("layer-editor.layer-id", "input")); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.deepEqual(styleObj.layers, [ { "id": 'background:'+bgId, @@ -263,7 +259,6 @@ describe("layers", function() { // browser.flushReactUpdates(); // var styleObj = helper.getStyleStore(browser); - // console.log("styleObj", styleObj); // assert.deepEqual(styleObj.layers, [ // { // "id": 'background:'+bgId, @@ -282,7 +277,6 @@ describe("layers", function() { // browser.debug(); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.deepEqual(styleObj.layers, [ { "id": 'background:'+bgId, @@ -340,7 +334,6 @@ describe("layers", function() { }); var styleObj = helper.getStyleStore(browser); - console.log("STYLEOBJ", styleObj); assert.deepEqual(styleObj.layers, [ { "id": id, diff --git a/test/functional/modals/index.js b/test/functional/modals/index.js index 3a5a897a..24f9ffd5 100644 --- a/test/functional/modals/index.js +++ b/test/functional/modals/index.js @@ -8,16 +8,13 @@ var helper = require("../helper"); // TODO: Is this needed? function closeModal(wdKey) { - console.log(">> A"); browser.waitUntil(function() { return browser.isVisibleWithinViewport(wd.$(wdKey)); }); - console.log(">> B"); var closeBtnSelector = wd.$(wdKey+".close-modal"); browser.click(closeBtnSelector); - console.log(">> C"); browser.waitUntil(function() { return !browser.isVisibleWithinViewport(wd.$(wdKey)); }); @@ -47,7 +44,6 @@ describe("modals", function() { browser.chooseFile("*[type='file']", styleFilePath); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.deepEqual(styleFileData, styleObj); }); @@ -57,7 +53,6 @@ describe("modals", function() { browser.setValueSafe(wd.$("open-modal.url.input"), styleFileUrl); var selector = wd.$("open-modal.url.button"); - console.log("selector", selector); browser.click(selector); // Allow the network request to happen @@ -65,8 +60,6 @@ describe("modals", function() { browser.pause(300); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); - console.log("styleFileData", styleFileData); assert.deepEqual(styleFileData, styleObj); }); @@ -129,7 +122,6 @@ describe("modals", function() { browser.flushReactUpdates(); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.equal(styleObj.name, "foobar"); }) it("owner", function() { @@ -138,7 +130,6 @@ describe("modals", function() { browser.flushReactUpdates(); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.equal(styleObj.owner, "foobar"); }) it("sprite url", function() { @@ -147,7 +138,6 @@ describe("modals", function() { browser.flushReactUpdates(); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.equal(styleObj.sprite, "http://example.com"); }) it("glyphs url", function() { @@ -157,7 +147,6 @@ describe("modals", function() { browser.flushReactUpdates(); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.equal(styleObj.glyphs, glyphsUrl); }) @@ -168,7 +157,6 @@ describe("modals", function() { browser.flushReactUpdates(); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); browser.waitUntil(function() { return styleObj.metadata["maputnik:mapbox_access_token"] == apiKey; }) @@ -181,7 +169,6 @@ describe("modals", function() { browser.flushReactUpdates(); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.equal(styleObj.metadata["maputnik:openmaptiles_access_token"], apiKey); }) @@ -192,7 +179,6 @@ describe("modals", function() { browser.flushReactUpdates(); var styleObj = helper.getStyleStore(browser); - console.log("styleObj", styleObj); assert.equal(styleObj.metadata["maputnik:renderer"], "ol3"); }) }) diff --git a/test/functional/util/webdriverio-ext.js b/test/functional/util/webdriverio-ext.js index 26f91348..2a2edfd1 100644 --- a/test/functional/util/webdriverio-ext.js +++ b/test/functional/util/webdriverio-ext.js @@ -9,21 +9,16 @@ browser.timeoutsImplicitWait(20*1000); try { browser.addCommand('setValueSafe', function(selector, text) { for(var i=0; i<10; i++) { - console.log(">>>> waiting for visible"); browser.waitForVisible(selector); var elements = browser.elements(selector); if(elements.length > 1) { - console.error(">>> Too many elements found"); throw "Too many elements found"; } - console.log(">>>> setting value"); browser.setValue(selector, text); var browserText = browser.getValue(selector); - console.log("browserText='%s' test='%s'", browserText, text); - if(browserText == text) { return; }