Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/BlockingViews/BlockingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ type BaseBlockingViewProps = {

/** Whether to add bottom safe area padding to the content. */
addOfflineIndicatorBottomSafeAreaPadding?: boolean;

/** A testing ID that can be applied to the element on the page */
testID?: string;
};

type BlockingViewIconProps = {
Expand Down Expand Up @@ -108,6 +111,7 @@ function BlockingView({
containerStyle: containerStyleProp,
addBottomSafeAreaPadding = false,
addOfflineIndicatorBottomSafeAreaPadding = addBottomSafeAreaPadding,
testID,
}: BlockingViewProps) {
const styles = useThemeStyles();
const {translate} = useLocalize();
Expand Down Expand Up @@ -151,6 +155,7 @@ function BlockingView({
<View
style={[styles.flex1, styles.alignItemsCenter, styles.justifyContentCenter, styles.ph10, containerStyle]}
accessibilityLabel={accessibilityLabel}
testID={testID}
>
{!!animation && (
<Lottie
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type ChildrenProps from '@src/types/utils/ChildrenProps';

type ForceFullScreenViewProps = ChildrenProps & {
shouldForceFullScreen?: boolean;
testID?: string;
};

export default ForceFullScreenViewProps;
1 change: 1 addition & 0 deletions src/components/BlockingViews/FullPageNotFoundView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function FullPageNotFoundView({
subtitleStyle={subtitleStyle}
addBottomSafeAreaPadding={addBottomSafeAreaPadding}
addOfflineIndicatorBottomSafeAreaPadding={addOfflineIndicatorBottomSafeAreaPadding}
testID={FullPageNotFoundView.displayName}
/>
</View>
</ForceFullScreenView>
Expand Down