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