]> source.dussan.org Git - sonarqube.git/blob
f8b95437d64320775529a5459aa3359f2d5fe0d2
[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     isSecret={true}
63     isTextArea={true}
64     onFieldChange={[MockFunction]}
65     overwriteOnly={false}
66     propKey="personalAccessToken"
67     value=""
68   />
69 </Fragment>
70 `;
71
72 exports[`should render correctly 2`] = `
73 <Fragment>
74   <AlmBindingDefinitionFormField
75     autoFocus={true}
76     help="settings.almintegration.form.name.gitlab.help"
77     id="name.gitlab"
78     onFieldChange={[MockFunction]}
79     propKey="key"
80     value="foo"
81   />
82   <AlmBindingDefinitionFormField
83     help={
84       <React.Fragment>
85         settings.almintegration.form.url.gitlab.help
86         <br />
87         <em>
88           https://gitlab.com/api/v4
89         </em>
90       </React.Fragment>
91     }
92     id="url.gitlab"
93     maxLength={2000}
94     onFieldChange={[MockFunction]}
95     propKey="url"
96     value=""
97   />
98   <AlmBindingDefinitionFormField
99     help={
100       <FormattedMessage
101         defaultMessage="settings.almintegration.form.personal_access_token.gitlab.help"
102         id="settings.almintegration.form.personal_access_token.gitlab.help"
103         values={
104           Object {
105             "doc_link": <Link
106               onlyActiveOnIndex={false}
107               style={Object {}}
108               target="_blank"
109               to="/documentation/analysis/gitlab-integration/"
110             >
111               learn_more
112             </Link>,
113             "pat": <a
114               href="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html"
115               rel="noopener noreferrer"
116               target="_blank"
117             >
118               settings.almintegration.form.personal_access_token.gitlab.help.url
119             </a>,
120             "permission": <strong>
121               Reporter
122             </strong>,
123             "scope": <strong>
124               api
125             </strong>,
126           }
127         }
128       />
129     }
130     id="personal_access_token"
131     isSecret={true}
132     isTextArea={true}
133     onFieldChange={[MockFunction]}
134     overwriteOnly={true}
135     propKey="personalAccessToken"
136     value="foobar"
137   />
138 </Fragment>
139 `;