Files
inji-wallet/components/__snapshots__/Passcode.test.tsx.snap
Kaushik Gupta d435a63468 INJIMOB-3246 Code coverage fix for failing test for new ui changes (#2126)
* INJIMOB-3246 Code coverage fix for failing test for new ui changes in develop branch

Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com>

* Added build-inji-wallet job to run tests in push trigger workflow

Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com>

* Updated actions/checkout from v3 to v4 for GitHub Actions compatibility

Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com>

* Updated setup-node to v4 and added test-coverage step to CI workflow

Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com>

* Updated actions/setup-node from v4 to v6.0.0 to move off deprecated Node16 runtime

Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com>

* Removed unused env vars and redundant test-coverage step from build-inji-wallet job

Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com>

* Renamed build-inji-wallet job to run-tests

Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com>

---------

Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com>
2025-11-12 11:35:15 +05:30

630 lines
11 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Passcode Component should match snapshot with both message and error 1`] = `
<Modal
animationType="slide"
hardwareAccelerated={false}
onRequestClose={[MockFunction]}
style={
{
"height": 1334,
"width": 750,
}
}
visible={true}
>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
{
"paddingBottom": 32,
"paddingEnd": 32,
"paddingStart": 32,
"paddingTop": 32,
},
null,
{
"backgroundColor": "#FFFFFF",
},
null,
null,
null,
null,
null,
null,
null,
null,
]
}
>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
null,
null,
null,
{
"width": "100%",
},
null,
{
"justifyContent": "space-between",
},
null,
null,
null,
null,
null,
]
}
>
<Text
style={
[
{
"color": "#000000",
"fontSize": 16,
"lineHeight": 18,
},
{
"fontFamily": "Montserrat_400Regular",
"fontSize": 14,
},
null,
{
"textAlign": "center",
},
null,
null,
null,
]
}
>
Enter passcode
</Text>
</View>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
]
}
>
<Text
style={
[
{
"color": "#000000",
"fontSize": 16,
"lineHeight": 18,
},
{
"fontFamily": "Montserrat_400Regular",
"fontSize": 14,
},
{
"color": "#D52929",
},
{
"textAlign": "center",
},
null,
null,
null,
]
}
>
Authentication failed
</Text>
</View>
</View>
</Modal>
`;
exports[`Passcode Component should match snapshot with custom message 1`] = `
<Modal
animationType="slide"
hardwareAccelerated={false}
onRequestClose={[MockFunction]}
style={
{
"height": 1334,
"width": 750,
}
}
visible={true}
>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
{
"paddingBottom": 32,
"paddingEnd": 32,
"paddingStart": 32,
"paddingTop": 32,
},
null,
{
"backgroundColor": "#FFFFFF",
},
null,
null,
null,
null,
null,
null,
null,
null,
]
}
>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
null,
null,
null,
{
"width": "100%",
},
null,
{
"justifyContent": "space-between",
},
null,
null,
null,
null,
null,
]
}
>
<Text
style={
[
{
"color": "#000000",
"fontSize": 16,
"lineHeight": 18,
},
{
"fontFamily": "Montserrat_400Regular",
"fontSize": 14,
},
null,
{
"textAlign": "center",
},
null,
null,
null,
]
}
>
Please enter your 6-digit passcode
</Text>
</View>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
]
}
>
<Text
style={
[
{
"color": "#000000",
"fontSize": 16,
"lineHeight": 18,
},
{
"fontFamily": "Montserrat_400Regular",
"fontSize": 14,
},
{
"color": "#D52929",
},
{
"textAlign": "center",
},
null,
null,
null,
]
}
/>
</View>
</View>
</Modal>
`;
exports[`Passcode Component should match snapshot with default props 1`] = `
<Modal
animationType="slide"
hardwareAccelerated={false}
onRequestClose={[MockFunction]}
style={
{
"height": 1334,
"width": 750,
}
}
visible={true}
>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
{
"paddingBottom": 32,
"paddingEnd": 32,
"paddingStart": 32,
"paddingTop": 32,
},
null,
{
"backgroundColor": "#FFFFFF",
},
null,
null,
null,
null,
null,
null,
null,
null,
]
}
>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
null,
null,
null,
{
"width": "100%",
},
null,
{
"justifyContent": "space-between",
},
null,
null,
null,
null,
null,
]
}
>
<Text
style={
[
{
"color": "#000000",
"fontSize": 16,
"lineHeight": 18,
},
{
"fontFamily": "Montserrat_400Regular",
"fontSize": 14,
},
null,
{
"textAlign": "center",
},
null,
null,
null,
]
}
>
Enter your passcode
</Text>
</View>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
]
}
>
<Text
style={
[
{
"color": "#000000",
"fontSize": 16,
"lineHeight": 18,
},
{
"fontFamily": "Montserrat_400Regular",
"fontSize": 14,
},
{
"color": "#D52929",
},
{
"textAlign": "center",
},
null,
null,
null,
]
}
/>
</View>
</View>
</Modal>
`;
exports[`Passcode Component should match snapshot with error message 1`] = `
<Modal
animationType="slide"
hardwareAccelerated={false}
onRequestClose={[MockFunction]}
style={
{
"height": 1334,
"width": 750,
}
}
visible={true}
>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
{
"paddingBottom": 32,
"paddingEnd": 32,
"paddingStart": 32,
"paddingTop": 32,
},
null,
{
"backgroundColor": "#FFFFFF",
},
null,
null,
null,
null,
null,
null,
null,
null,
]
}
>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
null,
null,
null,
{
"width": "100%",
},
null,
{
"justifyContent": "space-between",
},
null,
null,
null,
null,
null,
]
}
>
<Text
style={
[
{
"color": "#000000",
"fontSize": 16,
"lineHeight": 18,
},
{
"fontFamily": "Montserrat_400Regular",
"fontSize": 14,
},
null,
{
"textAlign": "center",
},
null,
null,
null,
]
}
>
Enter your passcode
</Text>
</View>
<View
accessible={true}
style={
[
{
"alignItems": undefined,
"flexDirection": "column",
"justifyContent": undefined,
},
{
"flex": 1,
},
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
]
}
>
<Text
style={
[
{
"color": "#000000",
"fontSize": 16,
"lineHeight": 18,
},
{
"fontFamily": "Montserrat_400Regular",
"fontSize": 14,
},
{
"color": "#D52929",
},
{
"textAlign": "center",
},
null,
null,
null,
]
}
>
Incorrect passcode. Try again.
</Text>
</View>
</View>
</Modal>
`;