Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Adding e2e test cases for signature pages #13053

Merged
merged 20 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
update
  • Loading branch information
jpuri committed Jan 17, 2025
commit 179d772de411cf10eab38caaf4afc388d66c3d7c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('ExpandableSection', () => {
expect(getByText('Open')).toBeDefined();
fireEvent.press(getByText('Open'));
expect(getByText('Value-Text')).toBeDefined();
fireEvent.press(getByTestId('closeButtonTestId'));
fireEvent.press(getByTestId('collapseButtonTestID'));
expect(getByText('Open')).toBeDefined();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface ExpandableSectionProps {
expandedContent: ReactNode;
expandedContentTitle: string;
iconVerticalPosition?: IconVerticalPosition;
collapseButtonTestID?: string;
testID?: string;
}

Expand All @@ -30,6 +31,7 @@ const ExpandableSection = ({
expandedContent,
expandedContentTitle,
iconVerticalPosition,
collapseButtonTestID,
testID,
}: ExpandableSectionProps) => {
const { styles } = useStyles(styleSheet, {});
Expand Down Expand Up @@ -70,6 +72,7 @@ const ExpandableSection = ({
size={ButtonIconSizes.Sm}
onPress={() => setExpanded(false)}
iconName={IconName.ArrowLeft}
testID={collapseButtonTestID ?? 'collapseButtonTestID'}
/>
<Text style={styles.expandedContentTitle}>
{expandedContentTitle}
Expand Down
Loading