Skip to content

trigger change

trigger change #220

Triggered via pull request August 20, 2024 11:38
Status Failure
Total duration 6m 39s
Artifacts

tests.yml

on: pull_request
Matrix: Jest
Element Web Integration Tests
2m 34s
Element Web Integration Tests
Skip SonarCloud in merge queue
0s
Skip SonarCloud in merge queue
Fit to window
Zoom out
Zoom in

Annotations

7 errors
ViewSource › should show edit button if we are the sender and can post an edit: 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.40471031560110204-0.023843736767273027 <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.40471031560110204-0.023843736767273027", "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)
Jest (1)
Process completed with exit code 1.
<SpaceContextMenu /> › UIFeature.ShowLeaveSpaceInContextMenu › ShowLeaveSpaceInContextMenu = false: test/components/views/context_menus/SpaceContextMenu-test.tsx#L247
expect(element).not.toBeInTheDocument() expected document not to contain element, found <li aria-label="Leave space" class="mx_AccessibleButton mx_IconizedContextMenu_option_red mx_IconizedContextMenu_item" data-testid="leave-option" role="menuitem" tabindex="-1"><span class="mx_IconizedContextMenu_icon mx_SpacePanel_iconLeave" /><span class="mx_IconizedContextMenu_label">Leave space</span></li> instead at Object.toBeInTheDocument (test/components/views/context_menus/SpaceContextMenu-test.tsx:247:62)
<SpaceContextMenu /> › UIFeature.AddSubSpace feature flag › UIFeature.AddSubSpace = false: does not render create space button when UIFeature is false: test/components/views/context_menus/SpaceContextMenu-test.tsx#L284
expect(element).not.toBeInTheDocument() expected document not to contain element, found <li aria-label="Space" class="mx_AccessibleButton mx_IconizedContextMenu_item" data-testid="new-subspace-option" role="menuitem" tabindex="-1"><span class="mx_IconizedContextMenu_icon mx_SpacePanel_iconPlus" /><span class="mx_IconizedContextMenu_label">Space</span><span class="mx_BetaCard_betaPill">Beta</span></li> instead at Object.toBeInTheDocument (test/components/views/context_menus/SpaceContextMenu-test.tsx:284:69)
<UserSettingsDialog /> › on CustomComponentLifecycle.SessionManageTab › should invoke CustomComponentLifecycle.SessionsManagerTab on rendering when Sessions-tab component renders: test/components/views/dialogs/UserSettingsDialog-test.tsx#L277
expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "session_manage_tab", {"CustomComponent": Any<Symbol>} Number of calls: 0 at Object.toHaveBeenCalledWith (test/components/views/dialogs/UserSettingsDialog-test.tsx:277:50)
<UserSettingsDialog /> › on CustomComponentLifecycle.SessionManageTab › should replace the default SessionManagerTab and return <div data-testid='custom-user-sessions-manager-tab'> instead: test/components/views/dialogs/UserSettingsDialog-test.tsx#L306
expect(received).toBeVisible() received value must be an HTMLElement or an SVGElement. Received has value: null at __EXTERNAL_MATCHER_TRAP__ (node_modules/expect/build/index.js:325:30) at Object.throwingMatcher [as toBeVisible] (node_modules/expect/build/index.js:326:15) at Object.toBeVisible (test/components/views/dialogs/UserSettingsDialog-test.tsx:306:36)
Jest (2)
Process completed with exit code 1.