mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 11:15:22 +01:00
Add test for TF access token
This commit is contained in:
parent
c59e0cb046
commit
ff8d3055b4
1 changed files with 11 additions and 1 deletions
|
@ -161,7 +161,7 @@ describe("modals", function() {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it("open map tiles access token", function() {
|
it("maptiler access token", function() {
|
||||||
var apiKey = "testing123";
|
var apiKey = "testing123";
|
||||||
browser.setValueSafe(wd.$("modal-settings.maputnik:openmaptiles_access_token"), apiKey);
|
browser.setValueSafe(wd.$("modal-settings.maputnik:openmaptiles_access_token"), apiKey);
|
||||||
browser.click(wd.$("modal-settings.name"))
|
browser.click(wd.$("modal-settings.name"))
|
||||||
|
@ -171,6 +171,16 @@ describe("modals", function() {
|
||||||
assert.equal(styleObj.metadata["maputnik:openmaptiles_access_token"], apiKey);
|
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() {
|
it("style renderer", function() {
|
||||||
var selector = wd.$("modal-settings.maputnik:renderer");
|
var selector = wd.$("modal-settings.maputnik:renderer");
|
||||||
browser.selectByValue(selector, "ol");
|
browser.selectByValue(selector, "ol");
|
||||||
|
|
Loading…
Reference in a new issue