mirror of
https://github.com/maputnik/editor.git
synced 2026-04-30 05:10:01 +00:00
## Launch Checklist Add `tileSize` field for raster and raster-dem tile sources. Solves #946  ### Not in this PR i18n for `Tile Size` - [x] Briefly describe the changes in this PR. - [x] Link to related issues. - [x] Include before/after visuals or gifs if this PR includes visual changes. - [x] Write tests for all new functionality. - [x] Add an entry to `CHANGELOG.md` under the `## main` section. --------- Co-authored-by: Harel M <harel.mazor@gmail.com> Co-authored-by: Keitaroh Kobayashi <keita@kbys.me> Co-authored-by: Hugues Tavernier <hugues.tavernier@protonmail.com> Co-authored-by: Joscha <34318751+josxha@users.noreply.github.com>
This commit is contained in:
@@ -82,6 +82,21 @@ describe("modals", () => {
|
||||
scheme: "tms",
|
||||
});
|
||||
});
|
||||
|
||||
it("add new raster source", () => {
|
||||
let sourceId = "rastertest";
|
||||
when.setValue("modal:sources.add.source_id", sourceId);
|
||||
when.select("modal:sources.add.source_type", "tile_raster");
|
||||
when.select("modal:sources.add.scheme_type", "xyz");
|
||||
when.setValue("modal:sources.add.tile_size", "128");
|
||||
when.click("modal:sources.add.add_source");
|
||||
when.wait(200);
|
||||
then(
|
||||
get.styleFromLocalStorage().then((style) => style.sources[sourceId])
|
||||
).shouldInclude({
|
||||
tileSize: 128,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("inspect", () => {
|
||||
|
||||
Reference in New Issue
Block a user