From ff8d3055b499c8272f17a30bf2e46ce832937a17 Mon Sep 17 00:00:00 2001 From: pathmapper Date: Tue, 30 Oct 2018 20:37:56 +0100 Subject: [PATCH] Add test for TF access token --- test/functional/modals/index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/functional/modals/index.js b/test/functional/modals/index.js index e4a8a39..df142c1 100644 --- a/test/functional/modals/index.js +++ b/test/functional/modals/index.js @@ -161,7 +161,7 @@ describe("modals", function() { }) }) - it("open map tiles access token", function() { + it("maptiler access token", function() { var apiKey = "testing123"; browser.setValueSafe(wd.$("modal-settings.maputnik:openmaptiles_access_token"), apiKey); browser.click(wd.$("modal-settings.name")) @@ -171,6 +171,16 @@ describe("modals", function() { assert.equal(styleObj.metadata["maputnik:openmaptiles_access_token"], apiKey); }) + it("thunderforest access token", function() { + var apiKey = "testing123"; + browser.setValueSafe(wd.$("modal-settings.maputnik:thunderforest_access_token"), apiKey); + browser.click(wd.$("modal-settings.name")) + browser.flushReactUpdates(); + + var styleObj = helper.getStyleStore(browser); + assert.equal(styleObj.metadata["maputnik:thunderforest_access_token"], apiKey); + }) + it("style renderer", function() { var selector = wd.$("modal-settings.maputnik:renderer"); browser.selectByValue(selector, "ol");