@@ -3,11 +3,11 @@ import { render } from 'vitest-browser-react';
3
3
4
4
import { getA11ySnapshot } from '@/test/getA11ySnapshot' ;
5
5
6
- import { MultipleOptions } from './SelectWithCombobox.stories' ;
6
+ import { SelectWithComboboxStory } from './SelectWithCombobox.stories' ;
7
7
8
- describe ( 'SelectWithCombobox' , ( ) => {
8
+ describe ( 'SelectWithCombobox test ' , ( ) => {
9
9
it ( '콤보박스를 클릭하면 옵션 목록을 보여준다.' , async ( ) => {
10
- const screen = render ( < MultipleOptions /> ) ;
10
+ const screen = render ( < SelectWithComboboxStory /> ) ;
11
11
12
12
// given 콤보박스의 초기 상태에서 "설정하기" 텍스트가 표시된다.
13
13
await expect
@@ -37,7 +37,7 @@ describe('SelectWithCombobox', () => {
37
37
} ) ;
38
38
39
39
it ( '옵션을 검색할 수 있다.' , async ( ) => {
40
- const screen = render ( < MultipleOptions /> ) ;
40
+ const screen = render ( < SelectWithComboboxStory /> ) ;
41
41
await screen . getByRole ( 'combobox' , { name : '사용자' } ) . click ( ) ;
42
42
43
43
await screen
@@ -61,7 +61,7 @@ describe('SelectWithCombobox', () => {
61
61
} ) ;
62
62
63
63
it ( '검색 결과가 없는 경우 "No Result" 메시지를 보여준다.' , async ( ) => {
64
- const screen = render ( < MultipleOptions /> ) ;
64
+ const screen = render ( < SelectWithComboboxStory /> ) ;
65
65
66
66
await screen . getByRole ( 'combobox' , { name : '사용자' } ) . click ( ) ;
67
67
await screen
@@ -74,7 +74,7 @@ describe('SelectWithCombobox', () => {
74
74
} ) ;
75
75
76
76
it ( '옵션을 선택하고 해재할 수 있다.' , async ( ) => {
77
- const screen = render ( < MultipleOptions /> ) ;
77
+ const screen = render ( < SelectWithComboboxStory /> ) ;
78
78
79
79
await screen . getByRole ( 'combobox' , { name : '사용자' } ) . click ( ) ;
80
80
await screen . getByRole ( 'option' , { name : '김태희' } ) . click ( ) ;
0 commit comments