Skip to content

Commit

Permalink
📸 GDS-18 - Update snapshot (case mismatch) and tests (because colors.…
Browse files Browse the repository at this point in the history
…information was renamed into color.info)
  • Loading branch information
clementdejoie committed Mar 19, 2024
1 parent b9480d0 commit 4cad877
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 106 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/components/Banner.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Uncontrolled Banner', () => {
mockOnDismiss = jest.fn();
render(
<Banner
status='information'
status='info'
onDismiss={mockOnDismiss}
title='This is a title'
description='This is a decription'
Expand Down Expand Up @@ -52,7 +52,7 @@ describe('Controlled Banner', () => {

return (
<Banner
status='information'
status='info'
onDismiss={dismiss}
title='This is a title'
description='This is a decription'
Expand Down
6 changes: 3 additions & 3 deletions src/__tests__/components/Snackbar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Uncontrolled Snackbar', () => {
render(
<Snackbar
visible
status='information'
status='info'
onDismiss={mockOnDismiss}
title='This is a title'
description='This is a decription'
Expand Down Expand Up @@ -51,7 +51,7 @@ describe('Uncontrolled Snackbar invisibled on mount', () => {
render(
<Snackbar
visible={false}
status='information'
status='info'
onDismiss={mockOnDismiss}
title='This is a title'
description='This is a decription'
Expand All @@ -74,7 +74,7 @@ describe('Controlled Snackbar visible on mount', () => {
return (
<Snackbar
visible={visible}
status='information'
status='info'
onDismiss={dismiss}
title='This is a title'
description='This is a decription'
Expand Down
24 changes: 12 additions & 12 deletions src/__tests__/components/__snapshots__/ActionCard.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`MODULE | ActionCard component renders correctly 1`] = `
<View
style={
{
"shadowColor": "#919EAB1F",
"shadowColor": "#919eab1F",
"shadowOffset": {
"height": 12,
"width": 0,
Expand All @@ -37,7 +37,7 @@ exports[`MODULE | ActionCard component renders correctly 1`] = `
<View
style={
{
"shadowColor": "#919EAB80",
"shadowColor": "#919eab80",
"shadowOffset": {
"height": 0,
"width": 0,
Expand All @@ -51,8 +51,8 @@ exports[`MODULE | ActionCard component renders correctly 1`] = `
style={
{
"alignItems": "center",
"backgroundColor": "#FFFFFF",
"borderColor": "#C4CDD5",
"backgroundColor": "#ffffff",
"borderColor": "#c4cdd5",
"borderRadius": 20,
"borderWidth": 1,
"width": "100%",
Expand All @@ -63,7 +63,7 @@ exports[`MODULE | ActionCard component renders correctly 1`] = `
style={
[
{
"color": "#212B36",
"color": "#212b36",
"fontFamily": "PublicSans-Regular",
"fontSize": 14,
},
Expand All @@ -88,7 +88,7 @@ exports[`MODULE | ActionCard component renders correctly 1`] = `
<View
style={
{
"backgroundColor": "#EDEFF2",
"backgroundColor": "#edeff2",
"height": 1,
"marginBottom": 4,
"marginTop": 16,
Expand Down Expand Up @@ -141,7 +141,7 @@ exports[`MODULE | ActionCard component renders correctly in disabled state 1`] =
<View
style={
{
"shadowColor": "#919EAB1F",
"shadowColor": "#919eab1F",
"shadowOffset": {
"height": 12,
"width": 0,
Expand All @@ -154,7 +154,7 @@ exports[`MODULE | ActionCard component renders correctly in disabled state 1`] =
<View
style={
{
"shadowColor": "#919EAB80",
"shadowColor": "#919eab80",
"shadowOffset": {
"height": 0,
"width": 0,
Expand All @@ -168,8 +168,8 @@ exports[`MODULE | ActionCard component renders correctly in disabled state 1`] =
style={
{
"alignItems": "center",
"backgroundColor": "#F4F6F8",
"borderColor": "#C4CDD5",
"backgroundColor": "#f4f6f8",
"borderColor": "#c4cdd5",
"borderRadius": 20,
"borderWidth": 1,
"width": "100%",
Expand All @@ -180,7 +180,7 @@ exports[`MODULE | ActionCard component renders correctly in disabled state 1`] =
style={
[
{
"color": "#212B36",
"color": "#212b36",
"fontFamily": "PublicSans-Regular",
"fontSize": 14,
},
Expand All @@ -205,7 +205,7 @@ exports[`MODULE | ActionCard component renders correctly in disabled state 1`] =
<View
style={
{
"backgroundColor": "#EDEFF2",
"backgroundColor": "#edeff2",
"height": 1,
"marginBottom": 4,
"marginTop": 16,
Expand Down
54 changes: 27 additions & 27 deletions src/__tests__/components/__snapshots__/DateField.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ exports[`MODULE | DateField component renders correctly empty focused state 1`]
}
>
<TextInput
cursorColor="#18A586"
cursorColor="#18a586"
keyboardType="numeric"
maxLength={2}
onBlur={[Function]}
onChangeText={[Function]}
onFocus={[Function]}
placeholder="01"
placeholderTextColor="#18A586"
placeholderTextColor="#18a586"
selectTextOnFocus={true}
selectionColor="#18A58629"
selectionColor="#18a58629"
style={
{
"backgroundColor": "#18A58629",
"borderColor": "#18A586",
"backgroundColor": "#18a58629",
"borderColor": "#18a586",
"borderRadius": 18,
"borderWidth": 1,
"color": "#18A586",
"color": "#18a586",
"fontFamily": "PublicSans-Bold",
"fontSize": 20,
"height": 48,
Expand Down Expand Up @@ -78,23 +78,23 @@ exports[`MODULE | DateField component renders correctly filled focused state 1`]
}
>
<TextInput
cursorColor="#18A586"
cursorColor="#18a586"
keyboardType="numeric"
maxLength={2}
onBlur={[Function]}
onChangeText={[Function]}
onFocus={[Function]}
placeholder="01"
placeholderTextColor="#919EAB"
placeholderTextColor="#919eab"
selectTextOnFocus={true}
selectionColor="#18A58629"
selectionColor="#18a58629"
style={
{
"backgroundColor": "#FFFFFF",
"borderColor": "#18A586",
"backgroundColor": "#ffffff",
"borderColor": "#18a586",
"borderRadius": 18,
"borderWidth": 1,
"color": "#212B36",
"color": "#212b36",
"fontFamily": "PublicSans-Bold",
"fontSize": 20,
"height": 48,
Expand Down Expand Up @@ -134,23 +134,23 @@ exports[`MODULE | DateField component renders correctly filled unfocused state 1
}
>
<TextInput
cursorColor="#18A586"
cursorColor="#18a586"
keyboardType="numeric"
maxLength={2}
onBlur={[Function]}
onChangeText={[Function]}
onFocus={[Function]}
placeholder="01"
placeholderTextColor="#919EAB"
placeholderTextColor="#919eab"
selectTextOnFocus={true}
selectionColor="#18A58629"
selectionColor="#18a58629"
style={
{
"backgroundColor": "#919EAB14",
"backgroundColor": "#919eab14",
"borderColor": undefined,
"borderRadius": 18,
"borderWidth": 0,
"color": "#212B36",
"color": "#212b36",
"fontFamily": "PublicSans-Bold",
"fontSize": 20,
"height": 48,
Expand Down Expand Up @@ -190,23 +190,23 @@ exports[`MODULE | DateField component renders correctly in empty mode 1`] = `
}
>
<TextInput
cursorColor="#18A586"
cursorColor="#18a586"
keyboardType="numeric"
maxLength={2}
onBlur={[Function]}
onChangeText={[Function]}
onFocus={[Function]}
placeholder="01"
placeholderTextColor="#919EAB"
placeholderTextColor="#919eab"
selectTextOnFocus={true}
selectionColor="#18A58629"
selectionColor="#18a58629"
style={
{
"backgroundColor": "#919EAB14",
"backgroundColor": "#919eab14",
"borderColor": undefined,
"borderRadius": 18,
"borderWidth": 0,
"color": "#919EAB",
"color": "#919eab",
"fontFamily": "PublicSans-Bold",
"fontSize": 20,
"height": 48,
Expand Down Expand Up @@ -245,23 +245,23 @@ exports[`MODULE | DateField component renders correctly in error state 1`] = `
}
>
<TextInput
cursorColor="#18A586"
cursorColor="#18a586"
keyboardType="numeric"
maxLength={2}
onBlur={[Function]}
onChangeText={[Function]}
onFocus={[Function]}
placeholder="01"
placeholderTextColor="#919EAB"
placeholderTextColor="#919eab"
selectTextOnFocus={true}
selectionColor="#18A58629"
selectionColor="#18a58629"
style={
{
"backgroundColor": "#FF563014",
"backgroundColor": "#ff563014",
"borderColor": undefined,
"borderRadius": 18,
"borderWidth": 0,
"color": "#FF5630",
"color": "#ff5630",
"fontFamily": "PublicSans-Bold",
"fontSize": 20,
"height": 48,
Expand Down
Loading

0 comments on commit 4cad877

Please sign in to comment.