mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 22:47:39 +00:00
chore: fix mapbox references in tests
This commit is contained in:
@@ -45,7 +45,7 @@ describe("skip links", function() {
|
|||||||
assert(await elem.isFocused());
|
assert(await elem.isFocused());
|
||||||
await elem.click();
|
await elem.click();
|
||||||
|
|
||||||
const targetEl = await $(".mapboxgl-canvas");
|
const targetEl = await $(".maplibregl-canvas");
|
||||||
assert(await targetEl.isFocused());
|
assert(await targetEl.isFocused());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ describe("keyboard", function() {
|
|||||||
|
|
||||||
it("'m' should focus map", async function() {
|
it("'m' should focus map", async function() {
|
||||||
await browser.keys(["m"]);
|
await browser.keys(["m"]);
|
||||||
assert(await (await $(".mapboxgl-canvas")).isFocused());
|
assert(await (await $(".maplibregl-canvas")).isFocused());
|
||||||
});
|
});
|
||||||
|
|
||||||
it("'!' should show debug modal", async function() {
|
it("'!' should show debug modal", async function() {
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ describe("map", function() {
|
|||||||
|
|
||||||
await browser.waitUntil(async function () {
|
await browser.waitUntil(async function () {
|
||||||
return (
|
return (
|
||||||
await browser.isVisible(".mapboxgl-ctrl-zoom")
|
await browser.isVisible(".maplibregl-ctrl-zoom")
|
||||||
&& await browser.getText(".mapboxgl-ctrl-zoom") === "Zoom level: "+(zoomLevel)
|
&& await browser.getText(".maplibregl-ctrl-zoom") === "Zoom level: "+(zoomLevel)
|
||||||
);
|
);
|
||||||
}, 10*1000)
|
}, 10*1000)
|
||||||
})
|
})
|
||||||
@@ -25,9 +25,9 @@ describe("map", function() {
|
|||||||
])+"#"+zoomLevel+"/41.3805/2.1635");
|
])+"#"+zoomLevel+"/41.3805/2.1635");
|
||||||
await browser.alertAccept();
|
await browser.alertAccept();
|
||||||
|
|
||||||
await browser.click(".mapboxgl-ctrl-zoom-in")
|
await browser.click(".maplibregl-ctrl-zoom-in")
|
||||||
await browser.waitUntil(async function () {
|
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);
|
return text === "Zoom level: "+(zoomLevel+1);
|
||||||
}, 10*1000)
|
}, 10*1000)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -184,19 +184,6 @@ describe("modals", function() {
|
|||||||
assert.equal(styleObj.glyphs, glyphsUrl);
|
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() {
|
it("maptiler access token", async function() {
|
||||||
var apiKey = "testing123";
|
var apiKey = "testing123";
|
||||||
await browser.setValueSafe(wd.$("modal:settings.maputnik:openmaptiles_access_token"), apiKey);
|
await browser.setValueSafe(wd.$("modal:settings.maputnik:openmaptiles_access_token"), apiKey);
|
||||||
|
|||||||
Reference in New Issue
Block a user