Skip to content

feat: address review comments #3973

feat: address review comments

feat: address review comments #3973

Triggered via pull request July 22, 2024 13:16
Status Failure
Total duration 2m 0s
Artifacts

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
tests/unit/components/dropTabsItem.test.ts > shows button: node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L336
TestingLibraryElementError: Unable to find an accessible element with the role "button" Here are the accessible roles: tab: Name "": <li class="secondary-tabs-item" role="tab" /> Name "": <button class="secondary-tabs-button" role="tab" type="button" /> -------------------------------------------------- Ignored nodes: comments, script, style <body> <div> <li class="secondary-tabs-item" role="tab" > <button class="secondary-tabs-button" role="tab" type="button" > <span class="text" /> </button> </li> </div> </body> ❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:336:19 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1203:25 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1182:17 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1225:19 ❯ tests/unit/components/dropTabsItem.test.ts:9:12
tests/unit/components/dropTabsItem.test.ts > shows button - disabled: node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L336
TestingLibraryElementError: Unable to find an accessible element with the role "button" Here are the accessible roles: tab: Name "": <li class="secondary-tabs-item" role="tab" /> Name "": <button class="secondary-tabs-button" disabled="" role="tab" type="button" /> -------------------------------------------------- Ignored nodes: comments, script, style <body> <div> <li class="secondary-tabs-item" role="tab" > <button class="secondary-tabs-button" disabled="" role="tab" type="button" > <span class="text" /> </button> </li> </div> </body> ❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:336:19 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1203:25 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1182:17 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1225:19 ❯ tests/unit/components/dropTabsItem.test.ts:21:12
tests/unit/components/dropTabsItem.test.ts > shows button - on:click: node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L336
TestingLibraryElementError: Unable to find an accessible element with the role "button" Here are the accessible roles: tab: Name "": <li class="secondary-tabs-item" role="tab" /> Name "": <button class="secondary-tabs-button" role="tab" type="button" /> -------------------------------------------------- Ignored nodes: comments, script, style <body> <div> <li class="secondary-tabs-item" role="tab" > <button class="secondary-tabs-button" role="tab" type="button" > <span class="text" /> </button> </li> </div> </body> ❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:336:19 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1203:25 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1182:17 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1225:19 ❯ tests/unit/components/dropTabsItem.test.ts:26:20
tests/unit/components/tab.test.ts > shows tab - is selected: tests/unit/components/tab.test.ts#L14
Error: expect(element).toHaveClass("is-selected") Expected the element to have class: is-selected Received: tabs-item ❯ tests/unit/components/tab.test.ts:14:30
tests/unit/components/tab.test.ts > shows tab - on:click: tests/unit/components/tab.test.ts#L31
AssertionError: expected "spy" to be called at least once ❯ tests/unit/components/tab.test.ts:31:22
build
Process completed with exit code 1.
build
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/