File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import React, { ReactNode } from 'react';
1010import { act , fireEvent } from '@testing-library/react' ;
1111import { shallow , mount } from 'enzyme' ;
1212import { render } from '../../test/rtl' ;
13+ import { shouldRenderCustomStyles } from '../../test/internal' ;
1314import {
1415 requiredProps ,
1516 findTestSubject ,
@@ -64,6 +65,17 @@ const options: TitanOption[] = [
6465] ;
6566
6667describe ( 'EuiComboBox' , ( ) => {
68+ shouldRenderCustomStyles ( < EuiComboBox /> ) ;
69+
70+ shouldRenderCustomStyles ( < EuiComboBox options = { [ { label : 'test' } ] } /> , {
71+ skip : { parentTest : true } ,
72+ childProps : [ 'truncationProps' , 'options[0]' ] ,
73+ renderCallback : async ( { getByTestSubject, findAllByTestSubject } ) => {
74+ fireEvent . click ( getByTestSubject ( 'comboBoxToggleListButton' ) ) ;
75+ await findAllByTestSubject ( 'truncatedText' ) ;
76+ } ,
77+ } ) ;
78+
6779 test ( 'is rendered' , ( ) => {
6880 const { container } = render ( < EuiComboBox { ...requiredProps } /> ) ;
6981
You can’t perform that action at this time.
0 commit comments