Removed logging.

This commit is contained in:
orangemug 2018-01-17 14:59:48 +00:00
parent 2e8a188bce
commit 1eb6c28617
4 changed files with 0 additions and 36 deletions

View file

@ -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, {

View file

@ -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,

View file

@ -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");
})
})

View file

@ -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;
}