mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
Migration of jsx files to tsx 1 (#848)
In this PR I have changed some of the jsx files to tsx file. I'm starting off with the "leafs" so that migration of the rest will be easier, hopefully. What I'm basically doing is taking a jsx file, copy paste it into: https://mskelton.dev/ratchet And after that I'm fixing the types as needed. It's not a very long process. Hopefully more PRs will follow and this will be over soon. I don't plan to migrate the storybook as I generally don't understand why is it useful, I'll open an issue to see if anyone thinks differently.
This commit is contained in:
@@ -77,11 +77,18 @@ describe("modals", () => {
|
||||
});
|
||||
|
||||
it("name", () => {
|
||||
when.click("field-doc-button-Name");
|
||||
|
||||
should.containText("spec-field-doc", "name for the style");
|
||||
});
|
||||
|
||||
it("show name specifications", () => {
|
||||
when.setValue(get.dataAttribute("modal:settings.name"), "foobar");
|
||||
when.click("modal:settings.owner");
|
||||
|
||||
should.equalStyleStore((obj) => obj.name, "foobar");
|
||||
});
|
||||
|
||||
it("owner", () => {
|
||||
when.setValue(get.dataAttribute("modal:settings.owner"), "foobar");
|
||||
when.click("modal:settings.name");
|
||||
|
||||
Reference in New Issue
Block a user