mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -05:00
add testIds for pincard and vc activation (#833)
* feat(INJI-375): add testIds for pincard and vc activation * feat(INJI-375): rename testIds vc activation and remove vc * feat(INJI-375): rename testIds vc activation and remove vc to warningMsg --------- Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
This commit is contained in:
@@ -8,6 +8,7 @@ import VerifiedIcon from './VerifiedIcon';
|
||||
import {Column, Row, Text} from './ui';
|
||||
import {Theme} from './ui/styleUtils';
|
||||
import {CheckBox, Icon} from 'react-native-elements';
|
||||
import testIDProps from '../shared/commonUtil';
|
||||
|
||||
const getDetails = (arg1, arg2, verifiableCredential) => {
|
||||
if (arg1 === 'Status') {
|
||||
@@ -113,6 +114,7 @@ export const VcItemContent: React.FC<VcItemContentProps> = props => {
|
||||
style={Theme.Styles.closeCardImage}>
|
||||
{props.iconName && (
|
||||
<Icon
|
||||
{...testIDProps('pinIcon')}
|
||||
name={props.iconName}
|
||||
type={props.iconType}
|
||||
color={Theme.Colors.Icon}
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Dimensions, Image } from 'react-native';
|
||||
import { Overlay } from 'react-native-elements';
|
||||
import { Button, Column, Text, Row } from '../../../components/ui';
|
||||
import { Theme } from '../../../components/ui/styleUtils';
|
||||
import {useTranslation} from 'react-i18next';
|
||||
import {Dimensions, Image} from 'react-native';
|
||||
import {Overlay} from 'react-native-elements';
|
||||
import {Button, Column, Text, Row} from '../../../components/ui';
|
||||
import {Theme} from '../../../components/ui/styleUtils';
|
||||
|
||||
export const BindingVcWarningOverlay: React.FC<QrLoginWarningProps> = (
|
||||
props
|
||||
) => {
|
||||
const { t } = useTranslation('BindingVcWarningOverlay');
|
||||
export const BindingVcWarningOverlay: React.FC<QrLoginWarningProps> = props => {
|
||||
const {t} = useTranslation('BindingVcWarningOverlay');
|
||||
|
||||
return (
|
||||
<Overlay
|
||||
@@ -31,9 +29,12 @@ export const BindingVcWarningOverlay: React.FC<QrLoginWarningProps> = (
|
||||
</Row>
|
||||
|
||||
<Column crossAlign="center" margin="0 0 30 0">
|
||||
<Text weight="semibold">{t('alert')}</Text>
|
||||
<Text testID="alert" weight="semibold">
|
||||
{t('alert')}
|
||||
</Text>
|
||||
|
||||
<Text
|
||||
testID="warningMsg"
|
||||
align="center"
|
||||
size="small"
|
||||
weight="semibold"
|
||||
@@ -43,6 +44,7 @@ export const BindingVcWarningOverlay: React.FC<QrLoginWarningProps> = (
|
||||
</Column>
|
||||
|
||||
<Button
|
||||
testID="yesConfirm"
|
||||
margin={'30 0 0 0'}
|
||||
type="gradient"
|
||||
title={t('yesConfirm')}
|
||||
@@ -50,6 +52,7 @@ export const BindingVcWarningOverlay: React.FC<QrLoginWarningProps> = (
|
||||
/>
|
||||
|
||||
<Button
|
||||
testID="no"
|
||||
margin={'10 0 0 0'}
|
||||
type="clear"
|
||||
title={t('no')}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Dimensions, Image } from 'react-native';
|
||||
import { Overlay } from 'react-native-elements';
|
||||
import { Button, Column, Text, Row } from '../../../components/ui';
|
||||
import { Theme } from '../../../components/ui/styleUtils';
|
||||
import {useTranslation} from 'react-i18next';
|
||||
import {Dimensions, Image} from 'react-native';
|
||||
import {Overlay} from 'react-native-elements';
|
||||
import {Button, Column, Text, Row} from '../../../components/ui';
|
||||
import {Theme} from '../../../components/ui/styleUtils';
|
||||
|
||||
export const RemoveVcWarningOverlay: React.FC<RemoveVcWarningOverlayProps> = (
|
||||
props
|
||||
) => {
|
||||
const { t } = useTranslation('RemoveVcWarningOverlay');
|
||||
export const RemoveVcWarningOverlay: React.FC<
|
||||
RemoveVcWarningOverlayProps
|
||||
> = props => {
|
||||
const {t} = useTranslation('RemoveVcWarningOverlay');
|
||||
|
||||
return (
|
||||
<Overlay
|
||||
@@ -31,9 +31,12 @@ export const RemoveVcWarningOverlay: React.FC<RemoveVcWarningOverlayProps> = (
|
||||
</Row>
|
||||
|
||||
<Column crossAlign="center" margin="0 0 30 0">
|
||||
<Text weight="semibold">{t('alert')}</Text>
|
||||
<Text testID="alert" weight="semibold">
|
||||
{t('alert')}
|
||||
</Text>
|
||||
|
||||
<Text
|
||||
testID="warningMsg"
|
||||
align="center"
|
||||
size="small"
|
||||
weight="semibold"
|
||||
@@ -43,6 +46,7 @@ export const RemoveVcWarningOverlay: React.FC<RemoveVcWarningOverlayProps> = (
|
||||
</Column>
|
||||
|
||||
<Button
|
||||
testID="yesConfirm"
|
||||
margin={'30 0 0 0'}
|
||||
type="gradient"
|
||||
title={t('confirm')}
|
||||
@@ -50,6 +54,7 @@ export const RemoveVcWarningOverlay: React.FC<RemoveVcWarningOverlayProps> = (
|
||||
/>
|
||||
|
||||
<Button
|
||||
testID="no"
|
||||
margin={'10 0 0 0'}
|
||||
type="clear"
|
||||
title={t('no')}
|
||||
|
||||
Reference in New Issue
Block a user