From 0bb0ae87af5293908251c3953e0fb397f1bcade4 Mon Sep 17 00:00:00 2001 From: shelly_goldblit Date: Sun, 31 Dec 2023 06:11:35 +0200 Subject: [PATCH] wip --- cypress/e2e/modals.cy.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/modals.cy.ts b/cypress/e2e/modals.cy.ts index 1d8fa40e..9d7b33e2 100644 --- a/cypress/e2e/modals.cy.ts +++ b/cypress/e2e/modals.cy.ts @@ -96,7 +96,7 @@ describe("modals", () => { }); }); - describe("when click owner", () => { + describe("when set name and click owner", () => { beforeEach(() => { when.setValue("modal:settings.name", "foobar"); when.click("modal:settings.owner"); @@ -110,13 +110,19 @@ describe("modals", () => { }); }); - it("owner", () => { - when.setValue("modal:settings.owner", "foobar"); - when.click("modal:settings.name"); - then(get.maputnikStyleFromLocalStorage()).shouldDeepNestedInclude({ - owner: "foobar", + describe("when set owner and click name", () => { + beforeEach(() => { + when.setValue("modal:settings.owner", "foobar"); + when.click("modal:settings.name"); + when.wait(200); + }); + it("should update owner in local storage", () => { + then(get.maputnikStyleFromLocalStorage()).shouldDeepNestedInclude({ + owner: "foobar", + }); }); }); + it("sprite url", () => { when.setValue("modal:settings.sprite", "http://example.com"); when.click("modal:settings.name");