mirror of
https://github.com/maputnik/editor.git
synced 2026-08-24 22:17:25 +00:00
Fix failing test
This commit is contained in:
committed by
Pirmin Kalberer
parent
4087353219
commit
189c34e0a2
@@ -88,13 +88,15 @@ describe("modals", () => {
|
|||||||
when.setValue("modal:sources.add.source_id", sourceId);
|
when.setValue("modal:sources.add.source_id", sourceId);
|
||||||
when.select("modal:sources.add.source_type", "pmtiles_vector");
|
when.select("modal:sources.add.source_type", "pmtiles_vector");
|
||||||
when.setValue("modal:sources.add.source_url", "https://data.source.coop/protomaps/openstreetmap/v4.pmtiles");
|
when.setValue("modal:sources.add.source_url", "https://data.source.coop/protomaps/openstreetmap/v4.pmtiles");
|
||||||
when.click("modal:sources.add.add_source");
|
when.realClick("modal:sources.add.add_source");
|
||||||
when.wait(200);
|
when.wait(200);
|
||||||
then(
|
then(get.styleFromLocalStorage()).shouldDeepNestedInclude({
|
||||||
get.styleFromLocalStorage().then((style) => style.sources[sourceId])
|
sources: {
|
||||||
).shouldInclude({
|
pmtilestest: {
|
||||||
type: "vector",
|
type: "vector",
|
||||||
// url: "pmtiles://https://data.source.coop/protomaps/openstreetmap/v4.pmtiles",
|
url: "pmtiles://https://data.source.coop/protomaps/openstreetmap/v4.pmtiles",
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user