Skip to content

Feat: add new state to disable Update tests to fix while logs are bei… #56

Feat: add new state to disable Update tests to fix while logs are bei…

Feat: add new state to disable Update tests to fix while logs are bei… #56

Triggered via push October 19, 2024 21:14
Status Failure
Total duration 28s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 errors
app/(dashboard)/dashboard/log-view.test.tsx > LogView > expands and collapses log groups: app/(dashboard)/dashboard/log-view.test.tsx#L67
TestingLibraryElementError: Unable to find an element with the text: 1 | Line 1 of file 1. 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="bg-gray-900 text-gray-100 rounded-lg overflow-hidden" > <div class="flex items-center justify-between p-2 bg-gray-800" > <h3 class="text-sm font-semibold" > Logs </h3> </div> <div class="h-96 overflow-y-auto p-4 font-mono text-sm" > <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-down w-4 h-4 mr-2" fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" > <path d="m6 9 6 6 6-6" /> </svg> <span class="font-semibold" > test </span> </button> <pre class="whitespace-pre-wrap mt-2 pl-6 border-l-2 border-gray-700" > 1 | Line 1 of file 1 2 | Line 2 of file 1 </pre> </div> <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" > <path d="m9 18 6-6-6-6" /> </svg> <span class="font-semibold" > test </span> </button> </div> <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" > <path d="m9 18 6-6-6-6" /> </svg> <span class="font-semibold" > Other </span> </button> </div> </div> </div> </div> </body> ❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ app/(dashboard)/dashboard/log-view.test.tsx:67:19
app/(dashboard)/dashboard/log-view.test.tsx > LogView > renders empty state when no logs are provided: app/(dashboard)/dashboard/log-view.test.tsx#L79
TestingLibraryElementError: Unable to find an element with the text: No logs available.. 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="bg-gray-900 text-gray-100 rounded-lg overflow-hidden" > <div class="flex items-center justify-between p-2 bg-gray-800" > <h3 class="text-sm font-semibold" > Logs </h3> </div> <div class="h-96 overflow-y-auto p-4 font-mono text-sm" /> </div> </div> </body> ❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ app/(dashboard)/dashboard/log-view.test.tsx:79:19
app/(dashboard)/dashboard/pull-request.test.tsx > PullRequestItem > renders the pull request information correctly: app/(dashboard)/dashboard/pull-request.tsx#L62
TypeError: Cannot read properties of undefined (reading 'id') ❯ PullRequestItem app/(dashboard)/dashboard/pull-request.tsx:62:39 ❯ Object.react-stack-bottom-frame node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:22126:20 ❯ renderWithHooks node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:5671:22 ❯ updateFunctionComponent node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:7798:19 ❯ beginWork node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:9421:18 ❯ runWithFiberInDEV node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:539:16 ❯ performUnitOfWork node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14838:22 ❯ workLoopSync node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14680:41 ❯ renderRootSync node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14658:11 ❯ recoverFromConcurrentError node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14280:25
app/(dashboard)/dashboard/pull-request.test.tsx > PullRequestItem > displays running build status: app/(dashboard)/dashboard/pull-request.tsx#L62
TypeError: Cannot read properties of undefined (reading 'id') ❯ PullRequestItem app/(dashboard)/dashboard/pull-request.tsx:62:39 ❯ Object.react-stack-bottom-frame node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:22126:20 ❯ renderWithHooks node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:5671:22 ❯ updateFunctionComponent node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:7798:19 ❯ beginWork node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:9421:18 ❯ runWithFiberInDEV node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:539:16 ❯ performUnitOfWork node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14838:22 ❯ workLoopSync node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14680:41 ❯ renderRootSync node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14658:11 ❯ recoverFromConcurrentError node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14280:25
app/(dashboard)/dashboard/pull-request.test.tsx > PullRequestItem > disables buttons when build is running: app/(dashboard)/dashboard/pull-request.tsx#L62
TypeError: Cannot read properties of undefined (reading 'id') ❯ PullRequestItem app/(dashboard)/dashboard/pull-request.tsx:62:39 ❯ Object.react-stack-bottom-frame node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:22126:20 ❯ renderWithHooks node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:5671:22 ❯ updateFunctionComponent node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:7798:19 ❯ beginWork node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:9421:18 ❯ runWithFiberInDEV node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:539:16 ❯ performUnitOfWork node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14838:22 ❯ workLoopSync node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14680:41 ❯ renderRootSync node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14658:11 ❯ recoverFromConcurrentError node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-client.development.js:14280:25
app/(dashboard)/dashboard/pull-request.test.tsx > PullRequestItem > updates build status periodically: app/(dashboard)/dashboard/pull-request.test.tsx#L74
Error: Cannot find module '@/lib/github' Require stack: - /home/runner/work/shortest-test/shortest-test/app/(dashboard)/dashboard/pull-request.test.tsx ❯ app/(dashboard)/dashboard/pull-request.test.tsx:74:34 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/shortest-test/shortest-test/app/(dashboard)/dashboard/pull-request.test.tsx' ] }
app/(dashboard)/dashboard/pull-request.test.tsx > PullRequestItem > triggers revalidation after committing changes: app/(dashboard)/dashboard/pull-request.test.tsx#L89
Error: Cannot find module '@/lib/github' Require stack: - /home/runner/work/shortest-test/shortest-test/app/(dashboard)/dashboard/pull-request.test.tsx ❯ app/(dashboard)/dashboard/pull-request.test.tsx:89:44 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/shortest-test/shortest-test/app/(dashboard)/dashboard/pull-request.test.tsx' ] }
app/(dashboard)/dashboard/pull-request.test.tsx > PullRequestItem > shows and hides logs when toggle is clicked: app/(dashboard)/dashboard/pull-request.test.tsx#L105
Error: Cannot find module '@/lib/github' Require stack: - /home/runner/work/shortest-test/shortest-test/app/(dashboard)/dashboard/pull-request.test.tsx ❯ app/(dashboard)/dashboard/pull-request.test.tsx:105:49 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/shortest-test/shortest-test/app/(dashboard)/dashboard/pull-request.test.tsx' ] }
test
Process completed with exit code 1.