trigger change #207
Annotations
2 errors
test/components/structures/ViewSource-test.tsx#L69
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Edit"
Here are the accessible roles:
dialog:
Name "View Source":
<div
aria-labelledby="mx_BaseDialog_title"
class="mx_ViewSource mx_Dialog_fixedWidth"
data-focus-lock-disabled="false"
role="dialog"
/>
--------------------------------------------------
heading:
Name "View Source":
<h1
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
/>
--------------------------------------------------
button:
Name "Close dialog":
<div
aria-label="Close dialog"
class="mx_AccessibleButton mx_Dialog_cancelButton"
role="button"
tabindex="0"
/>
Name "Copy":
<div
aria-label="Copy"
class="mx_AccessibleButton mx_CopyableText_copyButton"
role="button"
tabindex="0"
/>
Name "Copy":
<div
aria-label="Copy"
class="mx_AccessibleButton mx_CopyableText_copyButton"
role="button"
tabindex="0"
/>
Name "Copy":
<div
aria-label="Copy"
class="mx_AccessibleButton mx_CopyableText_copyButton"
role="button"
tabindex="0"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div>
<div
data-focus-guard="true"
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="0"
/>
<div
aria-labelledby="mx_BaseDialog_title"
class="mx_ViewSource mx_Dialog_fixedWidth"
data-focus-lock-disabled="false"
role="dialog"
>
<div
class="mx_Dialog_header"
>
<h1
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
View Source
</h1>
</div>
<div
aria-label="Close dialog"
class="mx_AccessibleButton mx_Dialog_cancelButton"
role="button"
tabindex="0"
/>
<div
class="mx_ViewSource_header"
>
<div
class="mx_CopyableText"
>
Room ID: !roomId:example.org
<div
aria-label="Copy"
class="mx_AccessibleButton mx_CopyableText_copyButton"
role="button"
tabindex="0"
/>
</div>
<div
class="mx_CopyableText"
>
Event ID: $0.9364722236879772-0.7919513423561331
<div
aria-label="Copy"
class="mx_AccessibleButton mx_CopyableText_copyButton"
role="button"
tabindex="0"
/>
</div>
</div>
<div
class="mx_ViewSource_heading"
>
Original event source
</div>
<div
class="mx_CopyableText mx_CopyableText_border"
>
<pre
class="mx_SyntaxHighlight hljs language-undefined"
>
{
"type": "m.room.message",
"room_id": "!roomId:example.org",
"sender": "@userid:matrix.org",
"content": {
"msgtype": "m.text",
"body": "Test"
},
"event_id": "$0.9364722236879772-0.7919513423561331",
"origin_server_ts": 0,
"unsigned": {}
}
</pre>
<div
aria-label="Copy"
class="mx_AccessibleButton mx_CopyableText_copyButton"
role="button"
tabindex="0"
/>
</div>
</div>
<div
data-focus-guard="true"
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="0"
/>
</div>
</body>
at Object.getElementError (node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByRole (test/components/structures/ViewSource-test.tsx:69:16)
|
|
This job failed
Loading