redbadger/pride-london-app

View on GitHub
src/screens/DonateScreen/__snapshots__/index.test.js.snap

Summary

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

exports[`renders correctly 1`] = `
<View
  style={
    Object {
      "backgroundColor": "#ffffff",
      "flex": 1,
    }
  }
  testID="donate-screen"
>
  <Header
    leftElement={
      <Unknown
        onPress={[Function]}
      />
    }
    title="Donate"
  />
  <KeyboardAvoidingView
    behavior="padding"
    enabled={true}
    style={
      Object {
        "flex": 1,
      }
    }
  >
    <ScrollView>
      <withOrientation
        style={
          Object {
            "alignSelf": "center",
            "maxWidth": 440,
            "width": "100%",
          }
        }
      >
        <ImageHeader
          image={1}
          subtitle=""
          title={
            Array [
              "\\"It's the first time I feel",
              "accepted in a big group.\\"",
            ]
          }
        />
        <ContentPadding
          padding={Object {}}
          style={Object {}}
        >
          <Text
            color="lightNavyBlueColor"
            markdown={false}
            markdownStyle={Object {}}
            style={
              Object {
                "marginTop": 12,
              }
            }
            type="h2"
          >
            Be part of the movement that drives diversity
          </Text>
          <Text
            color="blackColor"
            markdown={false}
            markdownStyle={Object {}}
            type="text"
          >
            The need for Pride is as strong as ever. A huge amount of progress has been made for LGBT+ people but challenges and stigma are still rife. Whether you take part to celebrate, party or protest. Pride in London is your platform to make change. Your donations keep us marching.
          </Text>
          <Text
            color="lightNavyBlueColor"
            markdown={false}
            markdownStyle={Object {}}
            style={
              Object {
                "marginBottom": 16,
                "marginTop": 20,
              }
            }
            type="h3"
          >
            Make a single donation
          </Text>
          <SegmentedControl
            onValueChange={[Function]}
            selectedValue={null}
          >
            <Component
              key="5"
              label="£5"
              value={5}
            />
            <Component
              key="10"
              label="£10"
              value={10}
            />
            <Component
              key="20"
              label="£20"
              value={20}
            />
          </SegmentedControl>
          <DonateScreen
            label="Other amount (£)"
            onChangeText={[Function]}
            onFocus={[Function]}
            onSubmitEditing={[Function]}
            placeholder="0.00"
            returnKeyLabel="Donate"
            returnKeyType="go"
            style={
              Object {
                "marginTop": 20,
              }
            }
            value={null}
          />
          <Text
            color="blackColor"
            markdown={false}
            markdownStyle={Object {}}
            style={
              Object {
                "marginTop": 10,
              }
            }
            type="small"
          >
            The minimum donation amount is £2.
          </Text>
          <View
            style={
              Object {
                "marginTop": 16,
                "paddingVertical": 12,
              }
            }
          >
            <Button
              disabled={true}
              onPress={[Function]}
            >
              Donate
            </Button>
          </View>
        </ContentPadding>
      </withOrientation>
    </ScrollView>
  </KeyboardAvoidingView>
</View>
`;