]> source.dussan.org Git - sonarqube.git/blob
86fe6664f7576a999ba90cc0be92c2cd1a24571e
[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.github.help"
13       id="name.github"
14       onFieldChange={[MockFunction]}
15       propKey="key"
16       value=""
17     />
18     <AlmBindingDefinitionFormField
19       help={
20         <React.Fragment>
21           settings.almintegration.form.url.github.help1
22           <br />
23           <em>
24             https://github.company.com/api/v3
25           </em>
26           <br />
27           <br />
28           settings.almintegration.form.url.github.help2
29           <br />
30           <em>
31             https://api.github.com/
32           </em>
33         </React.Fragment>
34       }
35       id="url.github"
36       maxLength={2000}
37       onFieldChange={[MockFunction]}
38       propKey="url"
39       value=""
40     />
41     <AlmBindingDefinitionFormField
42       help="settings.almintegration.form.app_id.github.help"
43       id="app_id"
44       maxLength={80}
45       onFieldChange={[MockFunction]}
46       propKey="appId"
47       value=""
48     />
49     <AlmBindingDefinitionFormField
50       help="settings.almintegration.form.client_id.github.help"
51       id="client_id.github"
52       maxLength={80}
53       onFieldChange={[MockFunction]}
54       propKey="clientId"
55       value=""
56     />
57     <AlmBindingDefinitionFormField
58       help="settings.almintegration.form.client_secret.github.help"
59       id="client_secret.github"
60       maxLength={80}
61       onFieldChange={[MockFunction]}
62       overwriteOnly={false}
63       propKey="clientSecret"
64       value=""
65     />
66     <AlmBindingDefinitionFormField
67       help="settings.almintegration.form.private_key.github.help"
68       id="private_key"
69       isTextArea={true}
70       onFieldChange={[MockFunction]}
71       overwriteOnly={false}
72       propKey="privateKey"
73       value=""
74     />
75   </div>
76   <Alert
77     className="huge-spacer-left flex-1"
78     variant="info"
79   >
80     <FormattedMessage
81       defaultMessage="settings.almintegration.github.info"
82       id="settings.almintegration.github.info"
83       values={
84         Object {
85           "link": <Link
86             onlyActiveOnIndex={false}
87             style={Object {}}
88             target="_blank"
89             to="/documentation/analysis/github-integration/"
90           >
91             learn_more
92           </Link>,
93         }
94       }
95     />
96   </Alert>
97 </div>
98 `;
99
100 exports[`should render correctly 2`] = `
101 <div
102   className="display-flex-start"
103 >
104   <div
105     className="flex-1"
106   >
107     <AlmBindingDefinitionFormField
108       autoFocus={true}
109       help="settings.almintegration.form.name.github.help"
110       id="name.github"
111       onFieldChange={[MockFunction]}
112       propKey="key"
113       value="key"
114     />
115     <AlmBindingDefinitionFormField
116       help={
117         <React.Fragment>
118           settings.almintegration.form.url.github.help1
119           <br />
120           <em>
121             https://github.company.com/api/v3
122           </em>
123           <br />
124           <br />
125           settings.almintegration.form.url.github.help2
126           <br />
127           <em>
128             https://api.github.com/
129           </em>
130         </React.Fragment>
131       }
132       id="url.github"
133       maxLength={2000}
134       onFieldChange={[MockFunction]}
135       propKey="url"
136       value="http://github.enterprise.com"
137     />
138     <AlmBindingDefinitionFormField
139       help="settings.almintegration.form.app_id.github.help"
140       id="app_id"
141       maxLength={80}
142       onFieldChange={[MockFunction]}
143       propKey="appId"
144       value="123456"
145     />
146     <AlmBindingDefinitionFormField
147       help="settings.almintegration.form.client_id.github.help"
148       id="client_id.github"
149       maxLength={80}
150       onFieldChange={[MockFunction]}
151       propKey="clientId"
152       value="client1"
153     />
154     <AlmBindingDefinitionFormField
155       help="settings.almintegration.form.client_secret.github.help"
156       id="client_secret.github"
157       maxLength={80}
158       onFieldChange={[MockFunction]}
159       overwriteOnly={true}
160       propKey="clientSecret"
161       value="**clientsecret**"
162     />
163     <AlmBindingDefinitionFormField
164       help="settings.almintegration.form.private_key.github.help"
165       id="private_key"
166       isTextArea={true}
167       onFieldChange={[MockFunction]}
168       overwriteOnly={true}
169       propKey="privateKey"
170       value="asdf1234"
171     />
172   </div>
173   <Alert
174     className="huge-spacer-left flex-1"
175     variant="info"
176   >
177     <FormattedMessage
178       defaultMessage="settings.almintegration.github.info"
179       id="settings.almintegration.github.info"
180       values={
181         Object {
182           "link": <Link
183             onlyActiveOnIndex={false}
184             style={Object {}}
185             target="_blank"
186             to="/documentation/analysis/github-integration/"
187           >
188             learn_more
189           </Link>,
190         }
191       }
192     />
193   </Alert>
194 </div>
195 `;