mirror of
https://github.com/penpot/penpot.git
synced 2025-06-18 17:11:38 +02:00
✨ Fix broken tokens test
This commit is contained in:
parent
35b29bb203
commit
f23e460b2a
4 changed files with 11 additions and 3 deletions
|
@ -827,10 +827,10 @@ test.describe("Tokens: Themes modal", () => {
|
||||||
.getByRole("button", { name: "colors.black" })
|
.getByRole("button", { name: "colors.black" })
|
||||||
.click({ button: "right" });
|
.click({ button: "right" });
|
||||||
await tokenContextMenuForToken.getByText("Fill").click();
|
await tokenContextMenuForToken.getByText("Fill").click();
|
||||||
const inputColor = await workspacePage.page
|
|
||||||
.getByPlaceholder("Mixed")
|
|
||||||
.nth(2);
|
|
||||||
|
|
||||||
|
const inputColor = workspacePage.page.getByRole("textbox", {
|
||||||
|
name: "Color",
|
||||||
|
});
|
||||||
await expect(inputColor).toHaveValue("000000");
|
await expect(inputColor).toHaveValue("000000");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
on-focus (obj/get props "onFocus")
|
on-focus (obj/get props "onFocus")
|
||||||
select-on-focus? (d/nilv (unchecked-get props "selectOnFocus") true)
|
select-on-focus? (d/nilv (unchecked-get props "selectOnFocus") true)
|
||||||
class (d/nilv (unchecked-get props "className") "color-input")
|
class (d/nilv (unchecked-get props "className") "color-input")
|
||||||
|
aria-label (d/nilv (unchecked-get props "aria-label") (tr "inspect.attributes.color"))
|
||||||
|
|
||||||
;; We need a ref pointing to the input dom element, but the user
|
;; We need a ref pointing to the input dom element, but the user
|
||||||
;; of this component may provide one (that is forwarded here).
|
;; of this component may provide one (that is forwarded here).
|
||||||
|
@ -136,6 +137,7 @@
|
||||||
(obj/set! "className" class)
|
(obj/set! "className" class)
|
||||||
(obj/set! "type" "text")
|
(obj/set! "type" "text")
|
||||||
(obj/set! "ref" ref)
|
(obj/set! "ref" ref)
|
||||||
|
(obj/set! "aria-label" aria-label)
|
||||||
;; (obj/set! "list" list-id)
|
;; (obj/set! "list" list-id)
|
||||||
(obj/set! "defaultValue" value)
|
(obj/set! "defaultValue" value)
|
||||||
(obj/set! "onKeyDown" handle-key-down)
|
(obj/set! "onKeyDown" handle-key-down)
|
||||||
|
|
|
@ -1612,6 +1612,9 @@ msgstr "RGBA"
|
||||||
msgid "inspect.attributes.fill"
|
msgid "inspect.attributes.fill"
|
||||||
msgstr "Fill"
|
msgstr "Fill"
|
||||||
|
|
||||||
|
msgid "inspect.attributes.color"
|
||||||
|
msgstr "Color"
|
||||||
|
|
||||||
#: src/app/main/ui/inspect/attributes/common.cljs:95, src/app/main/ui/inspect/attributes/image.cljs:51
|
#: src/app/main/ui/inspect/attributes/common.cljs:95, src/app/main/ui/inspect/attributes/image.cljs:51
|
||||||
msgid "inspect.attributes.image.download"
|
msgid "inspect.attributes.image.download"
|
||||||
msgstr "Download source image"
|
msgstr "Download source image"
|
||||||
|
|
|
@ -1647,6 +1647,9 @@ msgstr "RGBA"
|
||||||
msgid "inspect.attributes.fill"
|
msgid "inspect.attributes.fill"
|
||||||
msgstr "Relleno"
|
msgstr "Relleno"
|
||||||
|
|
||||||
|
msgid "inspect.attributes.color"
|
||||||
|
msgstr "Color"
|
||||||
|
|
||||||
#: src/app/main/ui/inspect/attributes/common.cljs:95, src/app/main/ui/inspect/attributes/image.cljs:51
|
#: src/app/main/ui/inspect/attributes/common.cljs:95, src/app/main/ui/inspect/attributes/image.cljs:51
|
||||||
msgid "inspect.attributes.image.download"
|
msgid "inspect.attributes.image.download"
|
||||||
msgstr "Descargar imagen original"
|
msgstr "Descargar imagen original"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue