]> source.dussan.org Git - sonarqube.git/blob
4ac954219d5e40cdb737f9991ffd0cbecdb8ef92
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Tooltip>
5   <li>
6     <div
7       className="create-project-repository"
8       onClick={[Function]}
9       role="listitem"
10     >
11       <div
12         className="flex-1 display-flex-center"
13       >
14         <Checkbox
15           checked={false}
16           disabled={false}
17           onCheck={[Function]}
18           thirdState={false}
19         />
20         <img
21           alt="Foo Provider"
22           className="spacer-left"
23           height={14}
24           src="/images/sonarcloud/foo.svg"
25           width={14}
26         />
27         <span
28           className="spacer-left"
29         >
30           Awesome Project
31         </span>
32       </div>
33     </div>
34   </li>
35 </Tooltip>
36 `;
37
38 exports[`should render disabed 1`] = `
39 <Tooltip
40   overlay="onboarding.create_project.subscribe_to_import_private_repositories"
41 >
42   <li>
43     <div
44       className="create-project-repository disabled"
45       onClick={[Function]}
46       onMouseEnter={[Function]}
47       onMouseLeave={[Function]}
48       role="listitem"
49     >
50       <div
51         className="flex-1 display-flex-center"
52       >
53         <LockIcon
54           fill="#bbb"
55         />
56         <img
57           alt="Foo Provider"
58           className="spacer-left icon-half-transparent"
59           height={14}
60           src="/images/sonarcloud/foo.svg"
61           width={14}
62         />
63         <span
64           className="spacer-left"
65         >
66           Awesome Project
67         </span>
68       </div>
69     </div>
70   </li>
71 </Tooltip>
72 `;
73
74 exports[`should render imported 1`] = `
75 <Tooltip>
76   <li>
77     <div
78       className="create-project-repository imported"
79       onClick={[Function]}
80       role="listitem"
81     >
82       <div
83         className="flex-1 display-flex-center"
84       >
85         <Checkbox
86           checked={true}
87           disabled={true}
88           onCheck={[Function]}
89           thirdState={false}
90         />
91         <img
92           alt="Foo Provider"
93           className="spacer-left"
94           height={14}
95           src="/images/sonarcloud/foo.svg"
96           width={14}
97         />
98         <span
99           className="spacer-left"
100         >
101           Cool Project
102         </span>
103       </div>
104       <span>
105         <CheckIcon
106           className="little-spacer-right"
107           fill="#00aa00"
108         />
109         <FormattedMessage
110           defaultMessage="onboarding.create_project.repository_imported"
111           id="onboarding.create_project.repository_imported"
112           values={
113             Object {
114               "link": <Link
115                 onlyActiveOnIndex={false}
116                 style={Object {}}
117                 to={
118                   Object {
119                     "pathname": "/dashboard",
120                     "query": Object {
121                       "branch": undefined,
122                       "id": "proj_cool",
123                     },
124                   }
125                 }
126               >
127                 onboarding.create_project.see_project
128               </Link>,
129             }
130           }
131         />
132       </span>
133     </div>
134   </li>
135 </Tooltip>
136 `;
137
138 exports[`should render private repositories 1`] = `
139 <Tooltip>
140   <li>
141     <div
142       className="create-project-repository"
143       onClick={[Function]}
144       role="listitem"
145     >
146       <div
147         className="flex-1 display-flex-center"
148       >
149         <Checkbox
150           checked={false}
151           disabled={false}
152           onCheck={[Function]}
153           thirdState={false}
154         />
155         <img
156           alt="Foo Provider"
157           className="spacer-left"
158           height={14}
159           src="/images/sonarcloud/foo.svg"
160           width={14}
161         />
162         <span
163           className="spacer-left"
164         >
165           Awesome Project
166         </span>
167         <div
168           className="badge spacer-left"
169         >
170           visibility.private
171         </div>
172       </div>
173     </div>
174   </li>
175 </Tooltip>
176 `;
177
178 exports[`should render selected 1`] = `
179 <Tooltip>
180   <li>
181     <div
182       className="create-project-repository selected"
183       onClick={[Function]}
184       role="listitem"
185     >
186       <div
187         className="flex-1 display-flex-center"
188       >
189         <Checkbox
190           checked={true}
191           disabled={false}
192           onCheck={[Function]}
193           thirdState={false}
194         />
195         <img
196           alt="Foo Provider"
197           className="spacer-left"
198           height={14}
199           src="/images/sonarcloud/foo.svg"
200           width={14}
201         />
202         <span
203           className="spacer-left"
204         >
205           Awesome Project
206         </span>
207       </div>
208     </div>
209   </li>
210 </Tooltip>
211 `;