]> source.dussan.org Git - sonarqube.git/blob
591c37bd876024e6d7230937380ef688d86cb52d
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Fragment>
5   <AlmBindingDefinitionFormField
6     autoFocus={true}
7     help="settings.almintegration.form.name.gitlab.help"
8     id="name.gitlab"
9     onFieldChange={[MockFunction]}
10     propKey="key"
11     value=""
12   />
13   <AlmBindingDefinitionFormField
14     help={
15       <React.Fragment>
16         settings.almintegration.form.url.gitlab.help
17         <br />
18         <em>
19           https://gitlab.com/api/v4
20         </em>
21       </React.Fragment>
22     }
23     id="url.gitlab"
24     maxLength={2000}
25     onFieldChange={[MockFunction]}
26     propKey="url"
27     value=""
28   />
29   <AlmBindingDefinitionFormField
30     help={
31       <FormattedMessage
32         defaultMessage="settings.almintegration.form.personal_access_token.gitlab.help"
33         id="settings.almintegration.form.personal_access_token.gitlab.help"
34         values={
35           Object {
36             "doc_link": <Link
37               onlyActiveOnIndex={false}
38               style={Object {}}
39               target="_blank"
40               to="/documentation/analysis/gitlab-integration/"
41             >
42               learn_more
43             </Link>,
44             "pat": <a
45               href="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html"
46               rel="noopener noreferrer"
47               target="_blank"
48             >
49               settings.almintegration.form.personal_access_token.gitlab.help.url
50             </a>,
51             "permission": <strong>
52               Reporter
53             </strong>,
54             "scope": <strong>
55               api
56             </strong>,
57           }
58         }
59       />
60     }
61     id="personal_access_token"
62     isTextArea={true}
63     onFieldChange={[MockFunction]}
64     overwriteOnly={false}
65     propKey="personalAccessToken"
66     value=""
67   />
68 </Fragment>
69 `;
70
71 exports[`should render correctly 2`] = `
72 <Fragment>
73   <AlmBindingDefinitionFormField
74     autoFocus={true}
75     help="settings.almintegration.form.name.gitlab.help"
76     id="name.gitlab"
77     onFieldChange={[MockFunction]}
78     propKey="key"
79     value="foo"
80   />
81   <AlmBindingDefinitionFormField
82     help={
83       <React.Fragment>
84         settings.almintegration.form.url.gitlab.help
85         <br />
86         <em>
87           https://gitlab.com/api/v4
88         </em>
89       </React.Fragment>
90     }
91     id="url.gitlab"
92     maxLength={2000}
93     onFieldChange={[MockFunction]}
94     propKey="url"
95     value=""
96   />
97   <AlmBindingDefinitionFormField
98     help={
99       <FormattedMessage
100         defaultMessage="settings.almintegration.form.personal_access_token.gitlab.help"
101         id="settings.almintegration.form.personal_access_token.gitlab.help"
102         values={
103           Object {
104             "doc_link": <Link
105               onlyActiveOnIndex={false}
106               style={Object {}}
107               target="_blank"
108               to="/documentation/analysis/gitlab-integration/"
109             >
110               learn_more
111             </Link>,
112             "pat": <a
113               href="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html"
114               rel="noopener noreferrer"
115               target="_blank"
116             >
117               settings.almintegration.form.personal_access_token.gitlab.help.url
118             </a>,
119             "permission": <strong>
120               Reporter
121             </strong>,
122             "scope": <strong>
123               api
124             </strong>,
125           }
126         }
127       />
128     }
129     id="personal_access_token"
130     isTextArea={true}
131     onFieldChange={[MockFunction]}
132     overwriteOnly={true}
133     propKey="personalAccessToken"
134     value="foobar"
135   />
136 </Fragment>
137 `;