@@ -3,7 +3,6 @@ import { mount } from "@vue/test-utils";
33import { describe , expect , it } from "vitest" ;
44import ChevronDownIcon from "./icons/ChevronDownIcon.vue" ;
55import XMarkIcon from "./icons/XMarkIcon.vue" ;
6- import Indicators from "./Indicators.vue" ;
76import Select from "./Select.vue" ;
87import Spinner from "./Spinner.vue" ;
98
@@ -65,7 +64,7 @@ describe("dropdown button rendering", () => {
6564
6665 it ( "should emit toggle event when dropdown button is clicked" , async ( ) => {
6766 const wrapper = mount ( Select , { props : defaultProps } ) ;
68- const indicators = wrapper . findComponent ( Indicators ) ;
67+ const indicators = wrapper . getComponent ( { name : " Indicators" } ) ;
6968
7069 await wrapper . find ( ".dropdown-icon" ) . trigger ( "click" ) ;
7170 expect ( indicators . emitted ( "toggle" ) ) . toStrictEqual ( [ [ ] ] ) ;
@@ -138,7 +137,7 @@ describe("clear button behavior", () => {
138137
139138 it ( "should emit clear event when clear button is clicked" , async ( ) => {
140139 const wrapper = mount ( Select , { props : defaultProps } ) ;
141- const indicators = wrapper . findComponent ( Indicators ) ;
140+ const indicators = wrapper . getComponent ( { name : " Indicators" } ) ;
142141
143142 await wrapper . get ( "input" ) . trigger ( "mousedown" ) ;
144143 await dispatchEvent ( wrapper , new KeyboardEvent ( "keydown" , { key : "Enter" } ) ) ;
0 commit comments