Skip to content

Commit

Permalink
testid added to lazy loader component
Browse files Browse the repository at this point in the history
  • Loading branch information
juanicabanas committed Dec 16, 2024
1 parent 3958245 commit 48eda8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scenes/src/components/layout/LazyLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const LazyLoader: LazyLoaderType = React.forwardRef<HTMLDivElement, Props
// caller of the `LazyLoader` component.
const classes = `${loaded ? hideEmpty : ''} ${className}`;
return (
<div id={id} ref={innerRef} className={classes} {...rest}>
<div data-testid="lazy-loader-container" id={id} ref={innerRef} className={classes} {...rest}>
{loaded && (typeof children === 'function' ? children({ isInView }) : children)}
</div>
);
Expand Down

0 comments on commit 48eda8c

Please sign in to comment.