DeFiCh/wallet

View on GitHub
mobile-app/app/screens/ConnectionBoundary/__snapshots__/ConnectionBoundary.test.tsx.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`offline screen should match snapshot when offline 1`] = `
<View
  style={
    [
      {
        "alignItems": "center",
        "flexBasis": "0%",
        "flexGrow": 1,
        "flexShrink": 1,
        "justifyContent": "center",
        "paddingLeft": 40,
        "paddingRight": 40,
      },
      {
        "backgroundColor": "rgba(242, 242, 242, 1)",
      },
    ]
  }
  testID="connection_error"
>
  <View
    style={
      {
        "alignItems": "center",
        "justifyContent": "center",
        "paddingBottom": 32,
        "paddingLeft": 60,
        "paddingRight": 60,
      }
    }
  >
    <Image
      source={1}
      style={
        {
          "height": 59,
          "width": 163,
        }
      }
    />
  </View>
  <Text
    style={
      [
        {
          "fontFamily": "RegularFont",
          "fontSize": 16,
          "fontWeight": "400",
          "lineHeight": 24,
        },
        [
          {
            "fontFamily": "SoraSemiBold",
            "fontSize": 20,
            "fontWeight": "600",
            "lineHeight": 28,
            "paddingBottom": 8,
            "textAlign": "center",
          },
          {
            "color": "rgba(18, 18, 18, 1)",
          },
        ],
      ]
    }
  >
    Connection problems
  </Text>
  <Text
    style={
      [
        {
          "fontFamily": "RegularFont",
          "fontSize": 16,
          "fontWeight": "400",
          "lineHeight": 24,
        },
        [
          {
            "fontFamily": "SoraRegular",
            "fontWeight": "400",
            "paddingBottom": 48,
            "textAlign": "center",
          },
          {
            "color": "rgba(18, 18, 18, 1)",
          },
        ],
      ]
    }
  >
    There seems to be a problem with the connection. Check your network and try again.
  </Text>
  <View
    accessibilityState={
      {
        "busy": undefined,
        "checked": undefined,
        "disabled": undefined,
        "expanded": undefined,
        "selected": undefined,
      }
    }
    accessibilityValue={
      {
        "max": undefined,
        "min": undefined,
        "now": undefined,
        "text": undefined,
      }
    }
    accessible={true}
    collapsable={false}
    focusable={true}
    onClick={[Function]}
    onResponderGrant={[Function]}
    onResponderMove={[Function]}
    onResponderRelease={[Function]}
    onResponderTerminate={[Function]}
    onResponderTerminationRequest={[Function]}
    onStartShouldSetResponder={[Function]}
    style={
      {
        "backgroundColor": "rgba(18, 18, 18, 1)",
        "borderRadius": 26,
        "flexDirection": "row",
        "justifyContent": "center",
        "marginBottom": 16,
        "marginLeft": 0,
        "marginRight": 0,
        "marginTop": 0,
        "opacity": 1,
        "paddingBottom": 14,
        "paddingLeft": 14,
        "paddingRight": 14,
        "paddingTop": 14,
        "width": 288,
      }
    }
    testID="button_check_connectivity"
  >
    <Text
      style={
        [
          {
            "fontFamily": "RegularFont",
            "fontSize": 16,
            "fontWeight": "400",
            "lineHeight": 24,
          },
          {
            "color": "rgba(242, 242, 242, 1)",
            "fontFamily": "SoraSemiBold",
            "fontWeight": "600",
            "textAlign": "center",
          },
        ]
      }
    >
      Refresh
    </Text>
  </View>
</View>
`;

exports[`offline screen should return null when online 1`] = `
<Text>
  Child Component
</Text>
`;