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