fix(vue): fix close accordion example #9950
Annotations
3 errors
Run tests
@ark-ui/vue#test:ci: command (/home/runner/work/ark/ark/frameworks/vue) /home/runner/.bun/bin/bun run test:ci exited (1)
|
Run tests:
frameworks/vue/src/components/toggle-group/tests/toggle-group.test.ts#L74
Error: expect(element).not.toHaveFocus()
Received element is focused:
<button
aria-checked="false"
data-focus=""
data-orientation="horizontal"
data-ownedby="toggle-group:8"
data-part="item"
data-scope="toggle-group"
data-state="off"
id="toggle-group:8:a"
role="radio"
tabindex="0"
type="button"
>···
A···
</button>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
data-focus=""
data-orientation="horizontal"
data-part="root"
data-scope="toggle-group"
id="toggle-group:8"
loop="false"
role="radiogroup"
style="outline: none;"
tabindex="0"
>
<button
aria-checked="false"
data-focus=""
data-orientation="horizontal"
data-ownedby="toggle-group:8"
data-part="item"
data-scope="toggle-group"
data-state="off"
id="toggle-group:8:a"
role="radio"
tabindex="0"
type="button"
>
A
</button>
<button
aria-checked="false"
data-orientation="horizontal"
data-ownedby="toggle-group:8"
data-part="item"
data-scope="toggle-group"
data-state="off"
id="toggle-group:8:b"
role="radio"
tabindex="-1"
type="button"
>
B
</button>
<button
aria-checked="true"
data-orientation="horizontal"
data-ownedby="toggle-group:8"
data-part="item"
data-scope="toggle-group"
data-state="on"
id="toggle-group:8:c"
role="radio"
tabindex="-1"
type="button"
>
C
</button>
</div>
</div>
</body>
</html>
❯ src/components/toggle-group/tests/toggle-group.test.ts:74:49
❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/@testing-library/vue/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback ../../node_modules/@testing-library/vue/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback ../../node_modules/@testing-library/vue/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
Run tests
Process completed with exit code 1.
|
Loading