]> source.dussan.org Git - sonarqube.git/blob
d03d8b8f90a1234c98cb7cc072025409fa677d15
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: create 1`] = `
4 <Fragment>
5   <AlmBindingDefinitionFormField
6     autoFocus={true}
7     help="settings.almintegration.form.name.azure.help"
8     id="name.azure"
9     onFieldChange={[MockFunction]}
10     propKey="key"
11     value=""
12   />
13   <AlmBindingDefinitionFormField
14     help={
15       <React.Fragment>
16         settings.almintegration.form.url.azure.help1
17         <br />
18         <em>
19           https://ado.your-company.com/your_collection
20         </em>
21         <br />
22         <br />
23         settings.almintegration.form.url.azure.help2
24         <br />
25         <em>
26           https://dev.azure.com/your_organization
27         </em>
28       </React.Fragment>
29     }
30     id="url.azure"
31     maxLength={2000}
32     onFieldChange={[MockFunction]}
33     propKey="url"
34     value=""
35   />
36   <AlmBindingDefinitionFormField
37     help={
38       <FormattedMessage
39         defaultMessage="settings.almintegration.form.personal_access_token.azure.help"
40         id="settings.almintegration.form.personal_access_token.azure.help"
41         values={
42           Object {
43             "doc_link": <Link
44               onlyActiveOnIndex={false}
45               style={Object {}}
46               target="_blank"
47               to="/documentation/analysis/azuredevops-integration/"
48             >
49               learn_more
50             </Link>,
51             "pat": <a
52               href="https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate"
53               rel="noopener noreferrer"
54               target="_blank"
55             >
56               settings.almintegration.form.personal_access_token.azure.help.url
57             </a>,
58             "permission": <strong>
59               Code &gt; Read & Write
60             </strong>,
61           }
62         }
63       />
64     }
65     id="personal_access_token"
66     isSecret={true}
67     isTextArea={true}
68     maxLength={2000}
69     onFieldChange={[MockFunction]}
70     overwriteOnly={false}
71     propKey="personalAccessToken"
72     value=""
73   />
74 </Fragment>
75 `;
76
77 exports[`should render correctly: edit 1`] = `
78 <Fragment>
79   <AlmBindingDefinitionFormField
80     autoFocus={true}
81     help="settings.almintegration.form.name.azure.help"
82     id="name.azure"
83     onFieldChange={[MockFunction]}
84     propKey="key"
85     value="key"
86   />
87   <AlmBindingDefinitionFormField
88     help={
89       <React.Fragment>
90         settings.almintegration.form.url.azure.help1
91         <br />
92         <em>
93           https://ado.your-company.com/your_collection
94         </em>
95         <br />
96         <br />
97         settings.almintegration.form.url.azure.help2
98         <br />
99         <em>
100           https://dev.azure.com/your_organization
101         </em>
102       </React.Fragment>
103     }
104     id="url.azure"
105     maxLength={2000}
106     onFieldChange={[MockFunction]}
107     propKey="url"
108     value=""
109   />
110   <AlmBindingDefinitionFormField
111     help={
112       <FormattedMessage
113         defaultMessage="settings.almintegration.form.personal_access_token.azure.help"
114         id="settings.almintegration.form.personal_access_token.azure.help"
115         values={
116           Object {
117             "doc_link": <Link
118               onlyActiveOnIndex={false}
119               style={Object {}}
120               target="_blank"
121               to="/documentation/analysis/azuredevops-integration/"
122             >
123               learn_more
124             </Link>,
125             "pat": <a
126               href="https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate"
127               rel="noopener noreferrer"
128               target="_blank"
129             >
130               settings.almintegration.form.personal_access_token.azure.help.url
131             </a>,
132             "permission": <strong>
133               Code &gt; Read & Write
134             </strong>,
135           }
136         }
137       />
138     }
139     id="personal_access_token"
140     isSecret={true}
141     isTextArea={true}
142     maxLength={2000}
143     onFieldChange={[MockFunction]}
144     overwriteOnly={true}
145     propKey="personalAccessToken"
146     value="asdf1234"
147   />
148 </Fragment>
149 `;