diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-21 23:27:44 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-21 23:27:44 +0900 |
commit | 1f014295a54f1e16b8bd94da729fb0afd143f7fe (patch) | |
tree | e120a8f58403e6a24477ea5e1ab1b19a630fa43b /test/settings/components/ui | |
parent | b88c0db89d439fe7c4385d5a6f087012557d4c47 (diff) |
Fix component test
Diffstat (limited to 'test/settings/components/ui')
-rw-r--r-- | test/settings/components/ui/TextArea.test.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/settings/components/ui/TextArea.test.tsx b/test/settings/components/ui/TextArea.test.tsx index 50313cf..232c7c0 100644 --- a/test/settings/components/ui/TextArea.test.tsx +++ b/test/settings/components/ui/TextArea.test.tsx @@ -32,7 +32,7 @@ describe("settings/ui/TextArea", () => { const label = document.querySelector("label")!; const textarea = document.querySelector("textarea")!; - const error = document.querySelector(".settings-ui-input-error")!; + const error = document.querySelector("[role=alert]")!; expect(label.textContent).to.contain("myfield"); expect(textarea.nodeName).to.contain("TEXTAREA"); expect(textarea.name).to.contain("myname"); |