Skip to content

Commit 0b8f64b

Browse files
committed
chore(VExpansionPanels): restore title click test
1 parent a6b1136 commit 0b8f64b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/vuetify/src/components/VExpansionPanel/__tests__/VExpansionPanels.spec.browser.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@ const stories = {
4747
}
4848

4949
describe('VExpansionPanels', () => {
50+
it('responds to title click', async () => {
51+
render(() => (
52+
<VExpansionPanels>
53+
<VExpansionPanel title="Header" text="Content" />
54+
</VExpansionPanels>
55+
))
56+
57+
const title = screen.getByCSS('.v-expansion-panel-title')
58+
59+
await userEvent.click(title)
60+
61+
expect(title).toHaveClass('v-expansion-panel-title--active')
62+
})
63+
5064
it('supports v-model', async () => {
5165
const model = ref()
5266
render(() => (

0 commit comments

Comments
 (0)