Skip to content

Commit 321354a

Browse files
committed
fix: Internal use of onDismissOnScroll
1 parent 6a9112b commit 321354a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/__tests__/functional-tests/ssr.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

src/__tests__/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function getAllComponents(): string[] {
3636
* @param componentName the name of the component in kebap-case
3737
*/
3838
export 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

0 commit comments

Comments
 (0)