This commit is contained in:
Birk Skyum
2025-01-21 23:42:01 +01:00
parent 80d34c3449
commit e49d0c21bd

View File

@@ -494,4 +494,33 @@ describe("layers", () => {
).shouldBeVisible();
});
});
describe.only("layereditor jsonlint should error", ()=>{
it("add", () => {
const id = when.modal.fillLayers({
type: "circle",
layer: "example",
});
then(get.styleFromLocalStorage()).shouldDeepNestedInclude({
layers: [
{
id: id,
type: "circle",
source: "example",
},
],
});
const sourceText = get.elementByText('"source"');
sourceText.click();
sourceText.type("\"");
const error = cy.get('.CodeMirror-lint-marker-error');
error.should('exist');
});
});
});