Add feature flag for searchInAllRooms #305
tests.yml
on: pull_request
Matrix: Jest
Element Web Integration Tests
0s
Skip SonarCloud in merge queue
0s
Annotations
3 errors
InviteDialog › should support pasting one username that is not a mx id or email:
test/components/views/dialogs/InviteDialog-test.tsx#L385
Unable to find an element with the text: @bob:example.org. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
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_InviteDialog_other 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"
>
Invite to !111111111111111111:example.org
</h1>
</div>
<div
aria-label="Close dialog"
class="mx_AccessibleButton mx_Dialog_cancelButton"
role="button"
tabindex="0"
/>
<div
class="mx_InviteDialog_content"
>
<p
class="mx_InviteDialog_helpText"
>
Invite someone using their name, or invite new guest using their email address.
</p>
<div
class="mx_InviteDialog_addressBar"
>
<div
class="mx_InviteDialog_editor"
>
<input
autocomplete="off"
data-testid="invite-dialog-input"
type="text"
value="bobbob"
/>
</div>
<div
class="mx_InviteDialog_buttonAndSpinner"
>
<div
aria-disabled="true"
class="mx_AccessibleButton mx_InviteDialog_goButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary mx_AccessibleButton_disabled"
disabled=""
role="button"
tabindex="0"
>
Invite
</div>
</div>
</div>
<span />
<div
class="error"
/>
<div
class="mx_InviteDialog_userSections"
/>
</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 waitForWrapper (node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at Object.findAllByText (test/components/views/dialogs/InviteDialog-test.tsx:385:22)
|
InviteDialog › should not allow pasting the same user multiple times:
test/components/views/dialogs/InviteDialog-test.tsx#L475
expect(received).resolves.toHaveLength()
Received promise rejected instead of resolved
Rejected to value: [TestingLibraryElementError: Unable to find an element with the text: @bob:example.org, which matches selector 'a'. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.·
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_InviteDialog_other 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"
>
Invite to !111111111111111111:example.org
</h1>
</div>
<div
aria-label="Close dialog"
class="mx_AccessibleButton mx_Dialog_cancelButton"
role="button"
tabindex="0"
/>
<div
class="mx_InviteDialog_content"
>
<p
class="mx_InviteDialog_helpText"
>
Invite someone using their name, or invite new guest using their email address.
</p>
<div
class="mx_InviteDialog_addressBar"
>
<div
class="mx_InviteDialog_editor"
>
<span
class="mx_InviteDialog_userTile"
>
<span
class="mx_InviteDialog_userTile_pill"
>
<span
class="_avatar_mcap2_17 mx_BaseAvatar mx_SearchResultAvatar _avatar-imageless_mcap2_61"
data-color="4"
data-testid="avatar-img"
data-type="round"
role="presentation"
style="--cpd-avatar-size: 20px;"
>
b
</span>
<span
class="mx_InviteDialog_userTile_name"
>
@bob:example.org
</span>
</span>
<div
class="mx_AccessibleButton mx_InviteDialog_userTile_remove"
role="button"
tabindex="0"
>
<img
alt="Remove"
height="8"
src="image-file-stub"
width="8"
/>
</div>
</span>
<input
autocomplete="off"
data-testid="invite-dialog-input"
type="text"
value=""
/>
</div>
<div
class="mx_InviteDialog_buttonAndSpinner"
>
<div
class="mx_AccessibleButton mx_InviteDialog_goButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
role="button"
tabindex="0"
>
Invite
</div>
</div>
</div>
<span />
<div
class="error"
/>
<div
class="mx_InviteDialog_userSections"
/>
</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>·
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_InviteDialog_other 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_B
|
Jest (1)
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
coverage-2
|
399 KB |
|