Add more end-to-end tests

This commit is contained in:
HarelM
2026-07-12 09:34:46 +03:00
parent 36073b2b1f
commit c22f7404e7
6 changed files with 142 additions and 15 deletions
+11 -5
View File
@@ -91,7 +91,17 @@ describe("modals", () => {
).shouldEqual(before - 1);
});
test.skip("public source", () => {});
test("public source", async () => {
await when.addPublicSource();
await then(get.styleFromLocalStorage()).shouldDeepNestedInclude({
sources: {
openmaptiles: {
type: "vector",
url: `https://api.maptiler.com/tiles/v3-openmaptiles/tiles.json?key=${tokens.openmaptiles}`,
},
},
});
});
test("add new source", async () => {
const sourceId = "n1z2v3r";
@@ -327,10 +337,6 @@ describe("modals", () => {
});
});
describe("sources placeholder", () => {
test.skip("toggle", () => {});
});
describe("global state", () => {
beforeEach(async () => {
await when.click("nav:global-state");