Skip to content

Feature: useFocus hook #321

Feature: useFocus hook

Feature: useFocus hook #321

Triggered via pull request May 27, 2024 13:25
@Hugos68Hugos68
synchronize #99
feat/use-focus
Status Failure
Total duration 38s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
lint
Process completed with exit code 1.
src/lib/hooks/useFocus/index.test.ts > useFocus > default > changes the open state to `true` on focus: node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L332
TestingLibraryElementError: Unable to find an element by: [data-testid="floating"] Ignored nodes: comments, script, style <body> <div> <button data-testid="reference" /> </div> </body> ❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:332:19 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1196:25 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1175:17 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1218:19 ❯ src/lib/hooks/useFocus/index.test.ts:15:11
src/lib/hooks/useFocus/index.test.ts > useFocus > default > changes the open state to `false` on blur: node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L332
TestingLibraryElementError: Unable to find an element by: [data-testid="floating"] Ignored nodes: comments, script, style <body> <div> <button data-testid="reference" /> </div> </body> ❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:332:19 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1196:25 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1175:17 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1218:19 ❯ src/lib/hooks/useFocus/index.test.ts:25:18
src/lib/hooks/useFocus/index.test.ts > useFocus > enabled > does enable the hook when set to `true`: node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L332
TestingLibraryElementError: Unable to find an element by: [data-testid="floating"] Ignored nodes: comments, script, style <body> <div> <button data-testid="reference" /> </div> </body> ❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:332:19 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1196:25 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1175:17 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1218:19 ❯ src/lib/hooks/useFocus/index.test.ts:43:18
src/lib/hooks/useFocus/index.test.ts > useFocus > visibleOnly > does change the open state to `true` on focus when set to `true`: node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L332
TestingLibraryElementError: Unable to find an element by: [data-testid="floating"] Ignored nodes: comments, script, style <body> <div> <button data-testid="reference" /> </div> </body> ❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:332:19 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1196:25 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1175:17 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1218:19 ❯ src/lib/hooks/useFocus/index.test.ts:67:18
test
Process completed with exit code 1.