Skip to content

Commit

Permalink
fix: add testIDs LoadingView
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseinmd committed Dec 2, 2021
1 parent d9cbb6f commit ed34674
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/component/src/molecules/loadingView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@ const LoadingView = ({
<View {...rest}>
{(!isLoading || !isLazy) && children}
{isLoading && (
<View className={classNames(classes.wrapper, wrapperClassName)}>
<View
testID={LoadingView.testIDs.loadingContainer}
className={classNames(classes.wrapper, wrapperClassName)}
>
{indicator}
</View>
)}
</View>
);
};

LoadingView.displayName = "LoadingView";
LoadingView.testIDs = {
loadingContainer: "loadingContainer",
};

export { LoadingView };

0 comments on commit ed34674

Please sign in to comment.