feat: add require-no-conflicts-before-stop workflow policy (#176) #330
Annotations
1 error and 1 warning
|
__tests__/components/theme-toggle.test.tsx > ThemeToggle > toggles between light and dark themes:
__tests__/components/theme-toggle.test.tsx#L60
TestingLibraryElementError: Unable to find a label with the text of: Switch to dark mode
Ignored nodes: comments, script, style
<body>
<div>
<button
aria-label="Switch to light mode"
class="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none hover:bg-muted hover:text-muted-foreground h-10 w-10 relative"
>
<svg
aria-hidden="true"
class="lucide lucide-sun h-[1.2rem] w-[1.2rem] transition-all rotate-90 scale-0"
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"
>
<circle
cx="12"
cy="12"
r="4"
/>
<path
d="M12 2v2"
/>
<path
d="M12 20v2"
/>
<path
d="m4.93 4.93 1.41 1.41"
/>
<path
d="m17.66 17.66 1.41 1.41"
/>
<path
d="M2 12h2"
/>
<path
d="M20 12h2"
/>
<path
d="m6.34 17.66-1.41 1.41"
/>
<path
d="m19.07 4.93-1.41 1.41"
/>
</svg>
<svg
aria-hidden="true"
class="lucide lucide-moon absolute h-[1.2rem] w-[1.2rem] transition-all rotate-0 scale-100"
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="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"
/>
</svg>
</button>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ getAllByLabelText node_modules/@testing-library/dom/dist/queries/label-text.js:111:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ __tests__/components/theme-toggle.test.tsx:60:19
|
|
test (hook-log-file, 1)
Attempt 1 failed. Reason: Child_process exited with error code 1
|