teamdigitale/italia-app

View on GitHub
ts/components/__tests__/__snapshots__/TosWebviewComponent.test.tsx.snap

Summary

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

exports[`TosWebviewComponent The snapshot for the TosWebviewComponent Should render correctly with bottom footer and a basic placeholding HTML 1`] = `
<RNCSafeAreaProvider
  onInsetsChange={[Function]}
  style={
    Array [
      Object {
        "flex": 1,
      },
      undefined,
    ]
  }
>
  <View
    style={
      Object {
        "flex": 1,
      }
    }
    testID="toSWebViewContainer"
  >
    <View
      androidCameraAccessDisabled={true}
      androidMicrophoneAccessDisabled={true}
      injectedJavaScript="const meta = document.createElement('meta');meta.setAttribute('content', 'width=device-width, initial-scale=0.99, maximum-scale=0.99, user-scalable=0');meta.setAttribute('name', 'viewport'); document.getElementsByTagName('head')[0].appendChild(meta);function findParent(tagname, el) {while (el) {if ((el.nodeName || el.tagName).toLowerCase() === tagname.toLowerCase()) {return el;}el = el.parentNode;}return null;}document.body.onclick = function(e) {e = e || event;const from = findParent(\\"a\\", e.target || e.srcElement);if (from) {const href = from.href;const message = {type: \\"LINK_MESSAGE\\",payload: {href}};window.ReactNativeWebView.postMessage(JSON.stringify(message));return false;}};true;"
      onError={[Function]}
      onHttpError={[Function]}
      onLoadEnd={[Function]}
      onMessage={[Function]}
      source={
        Object {
          "html": "<html><head></head><body></body></html>",
        }
      }
      style={
        Object {
          "flex": 1,
        }
      }
      textZoom={100}
    />
  </View>
</RNCSafeAreaProvider>
`;