Skip to content

Feature/predictable server ids #1848

Feature/predictable server ids

Feature/predictable server ids #1848

Triggered via pull request November 1, 2024 09:33
Status Failure
Total duration 52s
Artifacts

ci.yml

on: pull_request
Matrix: ci / lint
Fit to window
Zoom out
Zoom in

Annotations

6 errors
ci / lint (npm run types): test/servers/reducers/servers.test.ts#L113
Argument of type '{ name: string; autoConnect: boolean | undefined; url: string; apiKey: string; }[]' is not assignable to parameter of type 'ServerWithId[]'.
ci / lint (npm run types)
Process completed with exit code 2.
test/servers/helpers/ImportServersBtn.test.tsx > <ImportServersBtn /> > creates expected servers depending on selected option in modal: test/servers/helpers/ImportServersBtn.test.tsx#L85
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" Here are the accessible roles: button: Name "Import from file": <button class="btn btn-outline-secondary" id="importBtn" type="button" /> -------------------------------------------------- Ignored nodes: comments, script, style <body> <div> <button class="btn btn-outline-secondary" id="importBtn" type="button" > <svg aria-hidden="true" class="svg-inline--fa fa-file-arrow-up fa-fw " data-icon="file-arrow-up" data-prefix="fas" focusable="false" role="img" viewBox="0 0 384 512" xmlns="http://www.w3.org/2000/svg" > <path d="M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z" fill="currentColor" /> </svg> Import from file </button> <input accept=".csv" aria-hidden="true" class="d-none" data-testid="csv-file-input" type="file" /> </div> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ test/servers/helpers/ImportServersBtn.test.tsx:85:19
test/servers/helpers/ImportServersBtn.test.tsx > <ImportServersBtn /> > creates expected servers depending on selected option in modal: test/servers/helpers/ImportServersBtn.test.tsx#L85
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" Here are the accessible roles: button: Name "Import from file": <button class="btn btn-outline-secondary" id="importBtn" type="button" /> -------------------------------------------------- Ignored nodes: comments, script, style <body> <div> <button class="btn btn-outline-secondary" id="importBtn" type="button" > <svg aria-hidden="true" class="svg-inline--fa fa-file-arrow-up fa-fw " data-icon="file-arrow-up" data-prefix="fas" focusable="false" role="img" viewBox="0 0 384 512" xmlns="http://www.w3.org/2000/svg" > <path d="M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z" fill="currentColor" /> </svg> Import from file </button> <input accept=".csv" aria-hidden="true" class="d-none" data-testid="csv-file-input" type="file" /> </div> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ test/servers/helpers/ImportServersBtn.test.tsx:85:19
test/servers/reducers/servers.test.ts > serversReducer > action creators > createServers > generates an id for every provided server if they do not have it: test/servers/reducers/servers.test.ts#L115
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/servers/reducers/servers.test.ts:115:64
ci / unit-tests
Process completed with exit code 1.