]> source.dussan.org Git - sonarqube.git/blob
d68ef50b51942cfd2ac550fc8916668f86a8a2fb
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="display-flex-start"
6 >
7   <div
8     className="flex-1"
9   >
10     <AlmBindingDefinitionFormField
11       autoFocus={true}
12       help="settings.almintegration.form.name.gitlab.help"
13       id="name.gitlab"
14       onFieldChange={[MockFunction]}
15       propKey="key"
16       value=""
17     />
18     <AlmBindingDefinitionFormField
19       help={
20         <React.Fragment>
21           settings.almintegration.form.url.gitlab.help
22           <br />
23           <em>
24             https://gitlab.com/api/v4
25           </em>
26         </React.Fragment>
27       }
28       id="url.gitlab"
29       maxLength={2000}
30       onFieldChange={[MockFunction]}
31       propKey="url"
32       value=""
33     />
34     <AlmBindingDefinitionFormField
35       help="settings.almintegration.form.personal_access_token.gitlab.help"
36       id="personal_access_token"
37       isTextArea={true}
38       onFieldChange={[MockFunction]}
39       overwriteOnly={false}
40       propKey="personalAccessToken"
41       value=""
42     />
43   </div>
44   <Alert
45     className="huge-spacer-left flex-1"
46     variant="info"
47   >
48     <FormattedMessage
49       defaultMessage="settings.almintegration.gitlab.info"
50       id="settings.almintegration.gitlab.info"
51       values={
52         Object {
53           "link": <Link
54             onlyActiveOnIndex={false}
55             style={Object {}}
56             target="_blank"
57             to="/documentation/analysis/gitlab-integration/"
58           >
59             learn_more
60           </Link>,
61         }
62       }
63     />
64   </Alert>
65 </div>
66 `;
67
68 exports[`should render correctly 2`] = `
69 <div
70   className="display-flex-start"
71 >
72   <div
73     className="flex-1"
74   >
75     <AlmBindingDefinitionFormField
76       autoFocus={true}
77       help="settings.almintegration.form.name.gitlab.help"
78       id="name.gitlab"
79       onFieldChange={[MockFunction]}
80       propKey="key"
81       value="foo"
82     />
83     <AlmBindingDefinitionFormField
84       help={
85         <React.Fragment>
86           settings.almintegration.form.url.gitlab.help
87           <br />
88           <em>
89             https://gitlab.com/api/v4
90           </em>
91         </React.Fragment>
92       }
93       id="url.gitlab"
94       maxLength={2000}
95       onFieldChange={[MockFunction]}
96       propKey="url"
97       value=""
98     />
99     <AlmBindingDefinitionFormField
100       help="settings.almintegration.form.personal_access_token.gitlab.help"
101       id="personal_access_token"
102       isTextArea={true}
103       onFieldChange={[MockFunction]}
104       overwriteOnly={true}
105       propKey="personalAccessToken"
106       value="foobar"
107     />
108   </div>
109   <Alert
110     className="huge-spacer-left flex-1"
111     variant="info"
112   >
113     <FormattedMessage
114       defaultMessage="settings.almintegration.gitlab.info"
115       id="settings.almintegration.gitlab.info"
116       values={
117         Object {
118           "link": <Link
119             onlyActiveOnIndex={false}
120             style={Object {}}
121             target="_blank"
122             to="/documentation/analysis/gitlab-integration/"
123           >
124             learn_more
125           </Link>,
126         }
127       }
128     />
129   </Alert>
130 </div>
131 `;