mirror of
https://github.com/maputnik/editor.git
synced 2026-01-03 20:10:02 +00:00
814/remove mapbox references (#816)
Fixes #814 * fix: remove outdated references to mapbox * docs: fix references in readme * chore: fix mapbox references in tests * chore: fix mapbox references in stories, webpack config * chore: remove empty array
This commit is contained in:
@@ -45,7 +45,7 @@ describe("skip links", function() {
|
||||
assert(await elem.isFocused());
|
||||
await elem.click();
|
||||
|
||||
const targetEl = await $(".mapboxgl-canvas");
|
||||
const targetEl = await $(".maplibregl-canvas");
|
||||
assert(await targetEl.isFocused());
|
||||
});
|
||||
});
|
||||
|
||||
@@ -44,7 +44,7 @@ describe("keyboard", function() {
|
||||
|
||||
it("'m' should focus map", async function() {
|
||||
await browser.keys(["m"]);
|
||||
assert(await (await $(".mapboxgl-canvas")).isFocused());
|
||||
assert(await (await $(".maplibregl-canvas")).isFocused());
|
||||
});
|
||||
|
||||
it("'!' should show debug modal", async function() {
|
||||
|
||||
@@ -13,8 +13,8 @@ describe("map", function() {
|
||||
|
||||
await browser.waitUntil(async function () {
|
||||
return (
|
||||
await browser.isVisible(".mapboxgl-ctrl-zoom")
|
||||
&& await browser.getText(".mapboxgl-ctrl-zoom") === "Zoom level: "+(zoomLevel)
|
||||
await browser.isVisible(".maplibregl-ctrl-zoom")
|
||||
&& await browser.getText(".maplibregl-ctrl-zoom") === "Zoom level: "+(zoomLevel)
|
||||
);
|
||||
}, 10*1000)
|
||||
})
|
||||
@@ -25,9 +25,9 @@ describe("map", function() {
|
||||
])+"#"+zoomLevel+"/41.3805/2.1635");
|
||||
await browser.alertAccept();
|
||||
|
||||
await browser.click(".mapboxgl-ctrl-zoom-in")
|
||||
await browser.click(".maplibregl-ctrl-zoom-in")
|
||||
await browser.waitUntil(async function () {
|
||||
var text = await browser.getText(".mapboxgl-ctrl-zoom")
|
||||
var text = await browser.getText(".maplibregl-ctrl-zoom")
|
||||
return text === "Zoom level: "+(zoomLevel+1);
|
||||
}, 10*1000)
|
||||
})
|
||||
|
||||
@@ -184,19 +184,6 @@ describe("modals", function() {
|
||||
assert.equal(styleObj.glyphs, glyphsUrl);
|
||||
})
|
||||
|
||||
it("mapbox access token", async function() {
|
||||
var apiKey = "testing123";
|
||||
await browser.setValueSafe(wd.$("modal:settings.maputnik:mapbox_access_token"), apiKey);
|
||||
const elem = await $(wd.$("modal:settings.name"));
|
||||
await elem.click();
|
||||
await browser.flushReactUpdates();
|
||||
|
||||
var styleObj = await helper.getStyleStore(browser);
|
||||
await browser.waitUntil(function() {
|
||||
return styleObj.metadata["maputnik:mapbox_access_token"] == apiKey;
|
||||
})
|
||||
})
|
||||
|
||||
it("maptiler access token", async function() {
|
||||
var apiKey = "testing123";
|
||||
await browser.setValueSafe(wd.$("modal:settings.maputnik:openmaptiles_access_token"), apiKey);
|
||||
|
||||
Reference in New Issue
Block a user