Skip to content

Migrate to more modern toolset (Vite, Vitest, Playwright) + Upgrade dependencies + More Improvements #127

Migrate to more modern toolset (Vite, Vitest, Playwright) + Upgrade dependencies + More Improvements

Migrate to more modern toolset (Vite, Vitest, Playwright) + Upgrade dependencies + More Improvements #127

Triggered via pull request April 28, 2024 07:23
@alan2207alan2207
synchronize #152
dev
Status Failure
Total duration 2m 55s
Artifacts 1

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
src/lib/__tests__/authorization.test.tsx > should not view protected resource if user role does not match and show fallback message instead: src/lib/__tests__/authorization.test.tsx#L36
TestingLibraryElementError: Unable to find an element with the text: You are unauthorized to view this resource. 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 aria-live="assertive" class="z-50 flex flex-col fixed inset-0 space-y-4 items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start" > <div class="w-full flex flex-col items-center space-y-4 sm:items-end" > <div class="max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden" > <div aria-label="Error" class="p-4" role="alert" > <div class="flex items-start" > <div class="flex-shrink-0" > <svg aria-hidden="true" class="h-6 w-6 text-red-500" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" > <path d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" stroke-linecap="round" stroke-linejoin="round" /> </svg> </div> <div class="ml-3 w-0 flex-1 pt-0.5" > <p class="text-sm font-medium text-gray-900" > Error </p> <p class="mt-1 text-sm text-gray-500" > SyntaxError: Bad control character in string literal in JSON at position 111 </p> </div> <div class="ml-4 flex-shrink-0 flex" > <button class="bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" > <span class="sr-only" > Close </span> <svg aria-hidden="true" class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" > <path clip-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" fill-rule="evenodd" /> </svg> </button> </div> </div> </div> </div> </div> </div> <div> Unhandled status: error </div> </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 ❯ src/lib/__tests__/authorization.test.tsx:36:17
all-cli-check
Process completed with exit code 1.
e2e
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
playwright-report Expired
666 KB