Skip to content

adapt getAllOptionsLists to return also faulty options lists if readi… #20001

adapt getAllOptionsLists to return also faulty options lists if readi…

adapt getAllOptionsLists to return also faulty options lists if readi… #20001

Triggered via push December 11, 2024 13:04
Status Failure
Total duration 11m 33s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 3 warnings
Typechecking and linting: frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx#L42
'optionsListsMock' is declared but its value is never read.
Typechecking and linting: frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx#L61
Object literal may only specify known properties, but 'optionLists' does not exist in type 'renderAppContentLibraryProps'. Did you mean to write 'optionsLists'?
Typechecking and linting: frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeList/CodeListsActionsBar/CreateNewCodeListModal/CreateNewCodeListModal.tsx#L78
Object literal may only specify known properties, and 'codeList' does not exist in type 'CodeListWithMetadata | (() => CodeListWithMetadata)'.
Typechecking and linting: frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeList/CodeListsActionsBar/CreateNewCodeListModal/CreateNewCodeListModal.tsx#L150
Object literal may only specify known properties, and 'codeList' does not exist in type 'CodeListWithMetadata'.
Typechecking and linting: frontend/libs/studio-content-library/src/config/ContentResourceLibraryImpl.test.tsx#L12
Object literal may only specify known properties, and 'codeLists' does not exist in type 'CodeListProps'.
Typechecking and linting: frontend/libs/studio-content-library/src/utils/router/RouterRouteMapper.test.ts#L28
Object literal may only specify known properties, and 'codeLists' does not exist in type 'CodeListProps'.
Typechecking and linting: frontend/libs/studio-pure-functions/src/ObjectUtils/ObjectUtils.test.ts#L88
Property 'sortEntriesInObjectByKeys' does not exist on type 'typeof ObjectUtils'.
Typechecking and linting: frontend/libs/studio-pure-functions/src/ObjectUtils/ObjectUtils.test.ts#L98
Property 'sortEntriesInObjectByKeys' does not exist on type 'typeof ObjectUtils'.
Typechecking and linting: frontend/libs/studio-pure-functions/src/ObjectUtils/ObjectUtils.test.ts#L108
Property 'sortEntriesInObjectByKeys' does not exist on type 'typeof ObjectUtils'.
AppContentLibrary › renders the AppContentLibrary with codeLists and images resources available in the content menu: frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx#L50
TestingLibraryElementError: Unable to find an accessible element with the role "heading" and name "[mockedText(app_content_library.landing_page.title)]" There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole Ignored nodes: comments, script, style <body> <div> <div class="Toastify" /> <div class="container root" > <div class="spinnerText" > <svg class="fds-spinner fds-spinner--interaction" data-testid="studio-spinner-test-id" style="width: 79px; height: 79px;" viewBox="0 0 50 50" > <title> [mockedText(general.loading)] </title> <circle class="fds-spinner__background" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> <circle class="fds-spinner__circle" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> </svg> </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.getByRole (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:50:33)
AppContentLibrary › calls onUploadOptionList when onUploadCodeList is triggered: frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx#L118
TestingLibraryElementError: Unable to find an element with the text: [mockedText(app_content_library.code_lists.page_name)]. 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 class="Toastify" /> <div class="container root" > <div class="spinnerText" > <svg class="fds-spinner fds-spinner--interaction" data-testid="studio-spinner-test-id" style="width: 79px; height: 79px;" viewBox="0 0 50 50" > <title> [mockedText(general.loading)] </title> <circle class="fds-spinner__background" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> <circle class="fds-spinner__circle" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> </svg> </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 getByText (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:118:10) at getLibraryPageTile (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:121:30) at Object.goToLibraryPage (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:69:11)
AppContentLibrary › renders success toast when onUploadOptionList is called successfully: frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx#L118
TestingLibraryElementError: Unable to find an element with the text: [mockedText(app_content_library.code_lists.page_name)]. 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 class="Toastify" /> <div class="container root" > <div class="spinnerText" > <svg class="fds-spinner fds-spinner--interaction" data-testid="studio-spinner-test-id" style="width: 79px; height: 79px;" viewBox="0 0 50 50" > <title> [mockedText(general.loading)] </title> <circle class="fds-spinner__background" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> <circle class="fds-spinner__circle" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> </svg> </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 getByText (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:118:10) at getLibraryPageTile (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:121:30) at Object.goToLibraryPage (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:79:11)
AppContentLibrary › renders error toast when onUploadOptionList is rejected with unknown error code: frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx#L118
TestingLibraryElementError: Unable to find an element with the text: [mockedText(app_content_library.code_lists.page_name)]. 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 class="Toastify" /> <div class="container root" > <div class="spinnerText" > <svg class="fds-spinner fds-spinner--interaction" data-testid="studio-spinner-test-id" style="width: 79px; height: 79px;" viewBox="0 0 50 50" > <title> [mockedText(general.loading)] </title> <circle class="fds-spinner__background" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> <circle class="fds-spinner__circle" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> </svg> </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 getByText (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:118:10) at getLibraryPageTile (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:121:30) at Object.goToLibraryPage (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:92:11)
AppContentLibrary › calls onUpdateOptionList when onUpdateCodeList is triggered: frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx#L118
TestingLibraryElementError: Unable to find an element with the text: [mockedText(app_content_library.code_lists.page_name)]. 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 class="Toastify" /> <div class="container root" > <div class="spinnerText" > <svg class="fds-spinner fds-spinner--interaction" data-testid="studio-spinner-test-id" style="width: 79px; height: 79px;" viewBox="0 0 50 50" > <title> [mockedText(general.loading)] </title> <circle class="fds-spinner__background" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> <circle class="fds-spinner__circle" cx="25" cy="25" fill="none" r="20" stroke-width="5" /> </svg> </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 getByText (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:118:10) at getLibraryPageTile (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:121:30) at Object.goToLibraryPage (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:104:11)
objectUtils › sortEntriesInObjectByKeys › Sorts all entries in an object by its keys: frontend/libs/studio-pure-functions/src/ObjectUtils/ObjectUtils.test.ts#L88
TypeError: _ObjectUtils.ObjectUtils.sortEntriesInObjectByKeys is not a function at Object.sortEntriesInObjectByKeys (libs/studio-pure-functions/src/ObjectUtils/ObjectUtils.test.ts:88:40)
objectUtils › sortEntriesInObjectByKeys › Returns same order if entries in object is already sorted: frontend/libs/studio-pure-functions/src/ObjectUtils/ObjectUtils.test.ts#L98
TypeError: _ObjectUtils.ObjectUtils.sortEntriesInObjectByKeys is not a function at Object.sortEntriesInObjectByKeys (libs/studio-pure-functions/src/ObjectUtils/ObjectUtils.test.ts:98:40)
objectUtils › sortEntriesInObjectByKeys › Returns empty list if entries to sort is empty: frontend/libs/studio-pure-functions/src/ObjectUtils/ObjectUtils.test.ts#L108
TypeError: _ObjectUtils.ObjectUtils.sortEntriesInObjectByKeys is not a function at Object.sortEntriesInObjectByKeys (libs/studio-pure-functions/src/ObjectUtils/ObjectUtils.test.ts:108:40)
CodeLists › renders the code list editor when opening the accordion: frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeList/CodeLists/CodeLists.test.tsx#L61
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "codeList" Here are the accessible roles: heading: Name "CodeList1": <h1 class="fds-heading fds-heading--xs fds-accordion__header" /> -------------------------------------------------- button: Name "CodeList1": <button aria-controls=":rd:" aria-expanded="false" class="fds-accordion__button fds-focus" type="button" /> Name "[mockedText(code_list_editor.delete_code_list_item, {"number":1})]": <button class="fds-btn fds-focus fds-btn--sm fds-btn--secondary fds-btn--danger fds-btn--icon-only studioButton smallWithIconOnly" title="[mockedText(code_list_editor.delete_code_list_item, {\"number\":1})]" type="button" /> Name "[mockedText(code_list_editor.add_option)]": <button class="fds-btn fds-focus fds-btn--sm fds-btn--secondary fds-btn--first studioButton" type="button" /> -------------------------------------------------- group: Name "[mockedText(code_list_editor.legend)]": <fieldset class="fds-fieldset fds-fieldset--spacing codeListEditor" /> -------------------------------------------------- table: Name "": <table class="fds-paragraph fds-paragraph--sm fds-table fds-table--sm inputTable" /> -------------------------------------------------- rowgroup: Name "": <thead class="fds-table__head" /> Name "": <tbody /> -------------------------------------------------- row: Name "[mockedText(code_list_editor.column_title_value)] [mockedText(code_list_editor.column_title_label)] [mockedText(code_list_editor.column_title_description)] [mockedText(code_list_editor.column_title_help_text)] [mockedText(code_list_editor.column_title_delete)]": <tr class="fds-table__row" /> Name "value label": <tr class="fds-table__row" /> -------------------------------------------------- columnheader: Name "[mockedText(code_list_editor.column_title_value)]": <th class="fds-table__header__cell" /> Name "[mockedText(code_list_editor.column_title_label)]": <th class="fds-table__header__cell" /> Name "[mockedText(code_list_editor.column_title_description)]": <th class="fds-table__header__cell" /> Name "[mockedText(code_list_editor.column_title_help_text)]": <th class="fds-table__header__cell" /> Name "[mockedText(code_list_editor.column_title_delete)]": <th class="fds-table__header__cell" /> -------------------------------------------------- cell: Name "value": <td class="fds-table__cell textfieldCell textfieldCell" /> Name "label": <td class="fds-table__cell textfieldCell textfieldCell" /> Name "": <td class="fds-table__cell textfieldCell textfieldCell" /> Name "": <td class="fds-table__cell textfieldCell textfieldCell" /> Name "": <td class="fds-table__cell buttonCell" /> -------------------------------------------------- textbox: Name "[mockedText(code_list_editor.value_item, {"number":1})]": <input aria-label="[mockedText(code_list_editor.value_item, {\"number\":1})]" autocomplete="off" class="fds-textfield__input fds-focus" id="textfield-:rg:" size="20" type="text" value="value" /> Name "[mockedText(code_list_editor.label_item, {"number":1})]": <input aria-label="[mockedText(code_list_editor.label_item, {\"number\":1})]" class="fds-textfield__input fds-focus" id="textfield-:ri:" size="20" type="text" value="label" /> Name "[mockedText(code_list_editor.description_item, {"number":1})]": <input aria-label="[mockedText(code_list_editor.description_item, {\"number\":1})]" class="fds-textfield__input fds-focus" id="textfield-:rk:" size="20" type="text" value="" /> Name "[mockedText(code_list_editor.help_text_item, {"number":1})]": <input aria-label="[mockedText(code_list_editor.help_text_item, {\"number\":1})]" class="fds-textfield__input fds-focus" id="textfield-:rm:"
CodeLists › calls onUpdateCodeList when changing a code list: frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeList/CodeLists/CodeLists.test.tsx#L61
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "codeList" Here are the accessible roles: heading: Name "CodeList1": <h1 class="fds-heading fds-heading--xs fds-accordion__header" /> -------------------------------------------------- button: Name "CodeList1": <button aria-controls=":rq:" aria-expanded="false" class="fds-accordion__button fds-focus" type="button" /> Name "[mockedText(code_list_editor.delete_code_list_item, {"number":1})]": <button class="fds-btn fds-focus fds-btn--sm fds-btn--secondary fds-btn--danger fds-btn--icon-only studioButton smallWithIconOnly" title="[mockedText(code_list_editor.delete_code_list_item, {\"number\":1})]" type="button" /> Name "[mockedText(code_list_editor.add_option)]": <button class="fds-btn fds-focus fds-btn--sm fds-btn--secondary fds-btn--first studioButton" type="button" /> -------------------------------------------------- group: Name "[mockedText(code_list_editor.legend)]": <fieldset class="fds-fieldset fds-fieldset--spacing codeListEditor" /> -------------------------------------------------- table: Name "": <table class="fds-paragraph fds-paragraph--sm fds-table fds-table--sm inputTable" /> -------------------------------------------------- rowgroup: Name "": <thead class="fds-table__head" /> Name "": <tbody /> -------------------------------------------------- row: Name "[mockedText(code_list_editor.column_title_value)] [mockedText(code_list_editor.column_title_label)] [mockedText(code_list_editor.column_title_description)] [mockedText(code_list_editor.column_title_help_text)] [mockedText(code_list_editor.column_title_delete)]": <tr class="fds-table__row" /> Name "value label": <tr class="fds-table__row" /> -------------------------------------------------- columnheader: Name "[mockedText(code_list_editor.column_title_value)]": <th class="fds-table__header__cell" /> Name "[mockedText(code_list_editor.column_title_label)]": <th class="fds-table__header__cell" /> Name "[mockedText(code_list_editor.column_title_description)]": <th class="fds-table__header__cell" /> Name "[mockedText(code_list_editor.column_title_help_text)]": <th class="fds-table__header__cell" /> Name "[mockedText(code_list_editor.column_title_delete)]": <th class="fds-table__header__cell" /> -------------------------------------------------- cell: Name "value": <td class="fds-table__cell textfieldCell textfieldCell" /> Name "label": <td class="fds-table__cell textfieldCell textfieldCell" /> Name "": <td class="fds-table__cell textfieldCell textfieldCell" /> Name "": <td class="fds-table__cell textfieldCell textfieldCell" /> Name "": <td class="fds-table__cell buttonCell" /> -------------------------------------------------- textbox: Name "[mockedText(code_list_editor.value_item, {"number":1})]": <input aria-label="[mockedText(code_list_editor.value_item, {\"number\":1})]" autocomplete="off" class="fds-textfield__input fds-focus" id="textfield-:rt:" size="20" type="text" value="value" /> Name "[mockedText(code_list_editor.label_item, {"number":1})]": <input aria-label="[mockedText(code_list_editor.label_item, {\"number\":1})]" class="fds-textfield__input fds-focus" id="textfield-:rv:" size="20" type="text" value="label" /> Name "[mockedText(code_list_editor.description_item, {"number":1})]": <input aria-label="[mockedText(code_list_editor.description_item, {\"number\":1})]" class="fds-textfield__input fds-focus" id="textfield-:r11:" size="20" type="text" value="" /> Name "[mockedText(code_list_editor.help_text_item, {"number":1})]": <input aria-label="[mockedText(code_list_editor.help_text_item, {\"number\":1})]" class="fds-textfield__input fds-focus" id="textfield-:r13:"
Typechecking and linting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
CodeQL
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Testing
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636