]> source.dussan.org Git - sonarqube.git/blob
6120baaa2426f60c33072cef2add648290696811
[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     onFieldChange={[MockFunction]}
69     overwriteOnly={false}
70     propKey="personalAccessToken"
71     value=""
72   />
73 </Fragment>
74 `;
75
76 exports[`should render correctly: edit 1`] = `
77 <Fragment>
78   <AlmBindingDefinitionFormField
79     autoFocus={true}
80     help="settings.almintegration.form.name.azure.help"
81     id="name.azure"
82     onFieldChange={[MockFunction]}
83     propKey="key"
84     value="key"
85   />
86   <AlmBindingDefinitionFormField
87     help={
88       <React.Fragment>
89         settings.almintegration.form.url.azure.help1
90         <br />
91         <em>
92           https://ado.your-company.com/your_collection
93         </em>
94         <br />
95         <br />
96         settings.almintegration.form.url.azure.help2
97         <br />
98         <em>
99           https://dev.azure.com/your_organization
100         </em>
101       </React.Fragment>
102     }
103     id="url.azure"
104     maxLength={2000}
105     onFieldChange={[MockFunction]}
106     propKey="url"
107     value=""
108   />
109   <AlmBindingDefinitionFormField
110     help={
111       <FormattedMessage
112         defaultMessage="settings.almintegration.form.personal_access_token.azure.help"
113         id="settings.almintegration.form.personal_access_token.azure.help"
114         values={
115           Object {
116             "doc_link": <Link
117               onlyActiveOnIndex={false}
118               style={Object {}}
119               target="_blank"
120               to="/documentation/analysis/azuredevops-integration/"
121             >
122               learn_more
123             </Link>,
124             "pat": <a
125               href="https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate"
126               rel="noopener noreferrer"
127               target="_blank"
128             >
129               settings.almintegration.form.personal_access_token.azure.help.url
130             </a>,
131             "permission": <strong>
132               Code &gt; Read & Write
133             </strong>,
134           }
135         }
136       />
137     }
138     id="personal_access_token"
139     isSecret={true}
140     isTextArea={true}
141     onFieldChange={[MockFunction]}
142     overwriteOnly={true}
143     propKey="personalAccessToken"
144     value="asdf1234"
145   />
146 </Fragment>
147 `;