]> source.dussan.org Git - sonarqube.git/blob
c7707c964b80b71313bfff4d5c0c1aaf37681815
[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     maxLength={200}
10     onFieldChange={[MockFunction]}
11     propKey="key"
12     value=""
13   />
14   <AlmBindingDefinitionFormField
15     help={
16       <React.Fragment>
17         settings.almintegration.form.url.gitlab.help
18         <br />
19         <em>
20           https://gitlab.com/api/v4
21         </em>
22       </React.Fragment>
23     }
24     id="url.gitlab"
25     maxLength={2000}
26     onFieldChange={[MockFunction]}
27     propKey="url"
28     value=""
29   />
30   <AlmBindingDefinitionFormField
31     help={
32       <FormattedMessage
33         defaultMessage="settings.almintegration.form.personal_access_token.gitlab.help"
34         id="settings.almintegration.form.personal_access_token.gitlab.help"
35         values={
36           {
37             "doc_link": <withAppStateContext(DocLink)
38               to="/devops-platform-integration/gitlab-integration/"
39             >
40               learn_more
41             </withAppStateContext(DocLink)>,
42             "pat": <ForwardRef(Link)
43               target="_blank"
44               to="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html"
45             >
46               settings.almintegration.form.personal_access_token.gitlab.help.url
47             </ForwardRef(Link)>,
48             "permission": <strong>
49               Reporter
50             </strong>,
51             "scope": <strong>
52               api
53             </strong>,
54           }
55         }
56       />
57     }
58     id="personal_access_token"
59     isSecret={true}
60     isTextArea={true}
61     maxLength={2000}
62     onFieldChange={[MockFunction]}
63     overwriteOnly={false}
64     propKey="personalAccessToken"
65     value=""
66   />
67 </Fragment>
68 `;
69
70 exports[`should render correctly 2`] = `
71 <Fragment>
72   <AlmBindingDefinitionFormField
73     autoFocus={true}
74     help="settings.almintegration.form.name.gitlab.help"
75     id="name.gitlab"
76     maxLength={200}
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           {
104             "doc_link": <withAppStateContext(DocLink)
105               to="/devops-platform-integration/gitlab-integration/"
106             >
107               learn_more
108             </withAppStateContext(DocLink)>,
109             "pat": <ForwardRef(Link)
110               target="_blank"
111               to="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html"
112             >
113               settings.almintegration.form.personal_access_token.gitlab.help.url
114             </ForwardRef(Link)>,
115             "permission": <strong>
116               Reporter
117             </strong>,
118             "scope": <strong>
119               api
120             </strong>,
121           }
122         }
123       />
124     }
125     id="personal_access_token"
126     isSecret={true}
127     isTextArea={true}
128     maxLength={2000}
129     onFieldChange={[MockFunction]}
130     overwriteOnly={true}
131     propKey="personalAccessToken"
132     value="foobar"
133   />
134 </Fragment>
135 `;