Skip to content

1152 upgrade merge react sdk #332

1152 upgrade merge react sdk

1152 upgrade merge react sdk #332

Triggered via pull request November 14, 2024 17:09
Status Failure
Total duration 5m 51s
Artifacts

tchap_tests.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
<SpaceContextMenu /> › add children section › renders section with add space button when UIComponent customisation allows CreateSpace: test/unit-tests/components/views/context_menus/SpaceContextMenu-test.tsx#L197
TestingLibraryElementError: Unable to find an element by: [data-testid="new-subspace-option"] Ignored nodes: comments, script, style <body> <div id="mx_ContextualMenu_Container" > <div class="mx_ContextualMenu_wrapper" > <div class="mx_ContextualMenu_background" /> <div class="mx_ContextualMenu" role="menu" > <ul class="mx_IconizedContextMenu mx_SpacePanel_contextMenu mx_IconizedContextMenu_compact" role="none" > <div class="mx_SpacePanel_contextMenu_header" > test space </div> <div class="mx_IconizedContextMenu_optionList" > <li aria-label="Space home" class="mx_AccessibleButton mx_IconizedContextMenu_item" role="menuitem" tabindex="0" > <span class="mx_IconizedContextMenu_icon mx_SpacePanel_iconHome" /> <span class="mx_IconizedContextMenu_label" > Space home </span> </li> <li aria-label="Explore rooms" class="mx_AccessibleButton mx_IconizedContextMenu_item" role="menuitem" tabindex="-1" > <span class="mx_IconizedContextMenu_icon mx_SpacePanel_iconExplore" /> <span class="mx_IconizedContextMenu_label" > Explore rooms </span> </li> <li aria-label="Preferences" class="mx_AccessibleButton mx_IconizedContextMenu_item" role="menuitem" tabindex="-1" > <span class="mx_IconizedContextMenu_icon mx_SpacePanel_iconPreferences" /> <span class="mx_IconizedContextMenu_label" > Preferences </span> </li> <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> <div class="mx_SpacePanel_contextMenu_separatorLabel" data-testid="add-to-space-header" > Add </div> </div> </ul> </div> </div> </div> <div /> </body> at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19) at node_modules/@testing-library/dom/dist/query-helpers.js:76:38 at node_modules/@testing-library/dom/dist/query-helpers.js:52:17 at node_modules/@testing-library/dom/dist/query-helpers.js:95:19 at Object.getByTestId (test/unit-tests/components/views/context_menus/SpaceContextMenu-test.tsx:197:27)
<SpaceContextMenu /> › add children section › opens create space dialog on add space button click: test/unit-tests/components/views/context_menus/SpaceContextMenu-test.tsx#L213
TestingLibraryElementError: Unable to find an element by: [data-testid="new-subspace-option"] Ignored nodes: comments, script, style <body> <div id="mx_ContextualMenu_Container" > <div class="mx_ContextualMenu_wrapper" > <div class="mx_ContextualMenu_background" /> <div class="mx_ContextualMenu" role="menu" > <ul class="mx_IconizedContextMenu mx_SpacePanel_contextMenu mx_IconizedContextMenu_compact" role="none" > <div class="mx_SpacePanel_contextMenu_header" > test space </div> <div class="mx_IconizedContextMenu_optionList" > <li aria-label="Space home" class="mx_AccessibleButton mx_IconizedContextMenu_item" role="menuitem" tabindex="0" > <span class="mx_IconizedContextMenu_icon mx_SpacePanel_iconHome" /> <span class="mx_IconizedContextMenu_label" > Space home </span> </li> <li aria-label="Manage & explore rooms" class="mx_AccessibleButton mx_IconizedContextMenu_item" role="menuitem" tabindex="-1" > <span class="mx_IconizedContextMenu_icon mx_SpacePanel_iconExplore" /> <span class="mx_IconizedContextMenu_label" > Manage & explore rooms </span> </li> <li aria-label="Preferences" class="mx_AccessibleButton mx_IconizedContextMenu_item" role="menuitem" tabindex="-1" > <span class="mx_IconizedContextMenu_icon mx_SpacePanel_iconPreferences" /> <span class="mx_IconizedContextMenu_label" > Preferences </span> </li> <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> <div class="mx_SpacePanel_contextMenu_separatorLabel" data-testid="add-to-space-header" > Add </div> <li aria-label="Room" class="mx_AccessibleButton mx_IconizedContextMenu_item" data-testid="new-room-option" role="menuitem" tabindex="-1" > <span class="mx_IconizedContextMenu_icon mx_SpacePanel_iconPlus" /> <span class="mx_IconizedContextMenu_label" > Room </span> </li> </div> </ul> </div> </div> </div> <div /> </body> at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19) at node_modules/@testing-library/dom/dist/query-helpers.js:76:38 at node_modules/@testing-library/dom/dist/query-helpers.js:52:17 at node_modules/@testing-library/dom/dist/query-helpers.js:95:19 at Object.getByTestId (test/unit-tests/components/views/context_menus/SpaceContextMenu-test.tsx:213:42)
messageForLoginError › should match snapshot for unknown error: test/unit-tests/utils/ErrorUtils-test.ts#L120
expect(received).toMatchSnapshot() Snapshot name: `messageForLoginError should match snapshot for unknown error 1` - Snapshot - 1 + Received + 1 <DocumentFragment> - There was a problem communicating with the homeserver, please try again later. (HTTP 400) + [object Object] (HTTP 400) </DocumentFragment> at Object.toMatchSnapshot (test/unit-tests/utils/ErrorUtils-test.ts:120:30)
messageForConnectionError › should match snapshot for ConnectionError: test/unit-tests/utils/ErrorUtils-test.ts#L133
expect(received).toMatchSnapshot() Snapshot name: `messageForConnectionError should match snapshot for ConnectionError 1` - Snapshot - 8 + Received + 4 <DocumentFragment> <span> <span> - Can't connect to homeserver - please check your connectivity, ensure your + Tchap is not available at the moment err-02. <a - class="mx_ExternalLink" - href="hsUrl" + href="https://status.tchap.numerique.gouv.fr" rel="noreferrer noopener" target="_blank" > - homeserver's SSL certificate - <i - class="mx_ExternalLink_icon" - /> + View the status of services </a> - is trusted, and that a browser extension is not blocking requests. + . </span> </span> </DocumentFragment> at Object.toMatchSnapshot (test/unit-tests/utils/ErrorUtils-test.ts:133:30)
messageForConnectionError › should match snapshot for MatrixError M_NOT_FOUND: test/unit-tests/utils/ErrorUtils-test.ts#L149
expect(received).toMatchSnapshot() Snapshot name: `messageForConnectionError should match snapshot for MatrixError M_NOT_FOUND 1` - Snapshot - 1 + Received + 1 <DocumentFragment> - There was a problem communicating with the homeserver, please try again later.(M_NOT_FOUND) + [object Object](M_NOT_FOUND) </DocumentFragment> at Object.toMatchSnapshot (test/unit-tests/utils/ErrorUtils-test.ts:149:30)
messageForConnectionError › should match snapshot for unknown error: test/unit-tests/utils/ErrorUtils-test.ts#L160
expect(received).toMatchSnapshot() Snapshot name: `messageForConnectionError should match snapshot for unknown error 1` - Snapshot - 1 + Received + 11 <DocumentFragment> - There was a problem communicating with the homeserver, please try again later. + <span> + Tchap is not available at the moment . + <a + href="https://status.tchap.numerique.gouv.fr" + rel="noreferrer noopener" + target="_blank" + > + View the status of services + </a> + . + </span> </DocumentFragment> at Object.toMatchSnapshot (test/unit-tests/utils/ErrorUtils-test.ts:160:30)
messageForConnectionError › should match snapshot for mixed content error: test/unit-tests/utils/ErrorUtils-test.ts#L172
expect(received).toMatchSnapshot() Snapshot name: `messageForConnectionError should match snapshot for mixed content error 1` - Snapshot - 3 + Received + 3 <DocumentFragment> <span> <span> - Can't connect to homeserver via HTTP when an HTTPS URL is in your browser bar. Either use HTTPS or + Tchap is not available at the moment err-01. <a - href="https://www.google.com/search?&q=enable%20unsafe%20scripts" + href="https://status.tchap.numerique.gouv.fr" rel="noreferrer noopener" target="_blank" > - enable unsafe scripts + View the status of services </a> . </span> </span> </DocumentFragment> at Object.toMatchSnapshot (test/unit-tests/utils/ErrorUtils-test.ts:172:30)
<ErrorView /> › should match snapshot: test/unit-tests/async-components/structures/ErrorView-test.tsx#L23
expect(received).toMatchSnapshot() Snapshot name: `<ErrorView /> should match snapshot 1` - Snapshot - 2 + Received + 2 @@ -1,14 +1,14 @@ <DocumentFragment> <div class="mx_ErrorView cpd-theme-light" > <img - alt="Element" + alt="Tchap" class="mx_ErrorView_logo" height="160" - src="themes/element/img/logos/element-app-logo.png" + src="themes/tchap/img/logos/tchap-logo.svg" /> <div class="mx_ErrorView_container" > <h1 at Object.toMatchSnapshot (test/unit-tests/async-components/structures/ErrorView-test.tsx:23:30)
<UnsupportedBrowserView /> › should match snapshot: test/unit-tests/async-components/structures/ErrorView-test.tsx#L35
expect(received).toMatchSnapshot() Snapshot name: `<UnsupportedBrowserView /> should match snapshot 1` - Snapshot - 2 + Received + 2 @@ -1,14 +1,14 @@ <DocumentFragment> <div class="mx_ErrorView cpd-theme-light" > <img - alt="Element" + alt="Tchap" class="mx_ErrorView_logo" height="160" - src="themes/element/img/logos/element-app-logo.png" + src="themes/tchap/img/logos/tchap-logo.svg" /> <div class="mx_ErrorView_container" > <h1 at Object.toMatchSnapshot (test/unit-tests/async-components/structures/ErrorView-test.tsx:35:30)
<ImageView /> › renders correctly: test/unit-tests/components/views/elements/ImageView-test.tsx#L17
expect(received).toMatchSnapshot() Snapshot name: `<ImageView /> renders correctly 1` - Snapshot - 1 + Received + 0 @@ -16,11 +16,10 @@ <div /> <div class="mx_ImageView_toolbar" > <div - aria-describedby=":r2:" aria-label="Zoom out" class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_zoomOut" role="button" tabindex="0" /> at Object.toMatchSnapshot (test/unit-tests/components/views/elements/ImageView-test.tsx:17:27)
Jest
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/