mirror of
https://github.com/maputnik/editor.git
synced 2026-07-27 16:27:26 +00:00
wip
This commit is contained in:
@@ -96,7 +96,7 @@ describe("modals", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("when click owner", () => {
|
describe("when set name and click owner", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
when.setValue("modal:settings.name", "foobar");
|
when.setValue("modal:settings.name", "foobar");
|
||||||
when.click("modal:settings.owner");
|
when.click("modal:settings.owner");
|
||||||
@@ -110,13 +110,19 @@ describe("modals", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("owner", () => {
|
describe("when set owner and click name", () => {
|
||||||
when.setValue("modal:settings.owner", "foobar");
|
beforeEach(() => {
|
||||||
when.click("modal:settings.name");
|
when.setValue("modal:settings.owner", "foobar");
|
||||||
then(get.maputnikStyleFromLocalStorage()).shouldDeepNestedInclude({
|
when.click("modal:settings.name");
|
||||||
owner: "foobar",
|
when.wait(200);
|
||||||
|
});
|
||||||
|
it("should update owner in local storage", () => {
|
||||||
|
then(get.maputnikStyleFromLocalStorage()).shouldDeepNestedInclude({
|
||||||
|
owner: "foobar",
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("sprite url", () => {
|
it("sprite url", () => {
|
||||||
when.setValue("modal:settings.sprite", "http://example.com");
|
when.setValue("modal:settings.sprite", "http://example.com");
|
||||||
when.click("modal:settings.name");
|
when.click("modal:settings.name");
|
||||||
|
|||||||
Reference in New Issue
Block a user