File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ for (const componentName of getAllComponents().filter(component => vrOnlyCompone
3535 const { default : Component } = requireComponent ( componentName ) ;
3636 const props = getRequiredPropsForComponent ( componentName ) ;
3737 const content = renderToStaticMarkup ( React . createElement ( Component , props , 'test content' ) ) ;
38- if ( componentName === 'modal' ) {
39- // modal uses portal API which does not work on server and returns an empty content
38+ if ( componentName === 'modal' || componentName === 'tooltip' ) {
39+ // modal and tooltip use portal API which does not work on server and returns an empty content
4040 expect ( content . length ) . toEqual ( 0 ) ;
4141 } else {
4242 expect ( content . length ) . toBeGreaterThan ( 0 ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export function getAllComponents(): string[] {
3636 * @param componentName the name of the component in kebap-case
3737 */
3838export function supportsDOMProperties ( componentName : string ) {
39- const componentsWithoutDOMPropertiesSupport = [ 'annotation-context' , 'icon-provider' ] ;
39+ const componentsWithoutDOMPropertiesSupport = [ 'annotation-context' , 'icon-provider' , 'tooltip' ] ;
4040 return ! componentsWithoutDOMPropertiesSupport . includes ( componentName ) ;
4141}
4242
You can’t perform that action at this time.
0 commit comments