]> source.dussan.org Git - sonarqube.git/blob
42c55f420c6dad530a65aea5d5fa062cc6b1f647
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <header
5   className="page-header"
6 >
7   <h1
8     className="page-title"
9   >
10     system_info.page
11   </h1>
12   <PageActions
13     canDownloadLogs={false}
14     canRestart={false}
15     cluster={true}
16     logLevel="INFO"
17     onLogLevelChange={[MockFunction]}
18   />
19 </header>
20 `;
21
22 exports[`should render correctly 2`] = `
23 <header
24   className="page-header"
25 >
26   <h1
27     className="page-title"
28   >
29     system_info.page
30   </h1>
31   <div
32     className="page-actions"
33   >
34     <i
35       className="spinner"
36     />
37   </div>
38 </header>
39 `;
40
41 exports[`should render correctly 3`] = `
42 <header
43   className="page-header"
44 >
45   <h1
46     className="page-title"
47   >
48     system_info.page
49   </h1>
50   <PageActions
51     canDownloadLogs={false}
52     canRestart={false}
53     cluster={true}
54     logLevel="INFO"
55     onLogLevelChange={[MockFunction]}
56     serverId="foo-bar"
57   />
58   <div
59     className="system-info-copy-paste-id-info boxed-group "
60   >
61     <div
62       className="display-flex-center"
63     >
64       <div
65         className="flex-1"
66       >
67         <table
68           className="width-100"
69         >
70           <tbody>
71             <tr>
72               <th>
73                 <strong>
74                   system.server_id
75                 </strong>
76               </th>
77               <td>
78                 <code>
79                   foo-bar
80                 </code>
81               </td>
82             </tr>
83             <tr>
84               <th>
85                 <strong>
86                   system.version
87                 </strong>
88               </th>
89               <td>
90                 7.7.0.1234
91               </td>
92             </tr>
93           </tbody>
94         </table>
95       </div>
96       <ClipboardButton
97         className="flex-0"
98         copyValue="SonarQube ID information
99 Server ID: foo-bar
100 Version: 7.7.0.1234
101 Date: 2019-01-01
102 "
103       >
104         system.copy_id_info
105       </ClipboardButton>
106     </div>
107   </div>
108 </header>
109 `;
110
111 exports[`should render correctly: on embedded database 1`] = `
112 <header
113   className="page-header"
114 >
115   <h1
116     className="page-title"
117   >
118     system_info.page
119   </h1>
120   <PageActions
121     canDownloadLogs={false}
122     canRestart={false}
123     cluster={true}
124     logLevel="INFO"
125     onLogLevelChange={[MockFunction]}
126     serverId="foo-bar"
127   />
128   <div
129     className="system-info-copy-paste-id-info boxed-group "
130   >
131     <Alert
132       className="width-100"
133       variant="warning"
134     >
135       system.not_production_database_warning
136     </Alert>
137     <div
138       className="display-flex-center"
139     >
140       <div
141         className="flex-1"
142       >
143         <table
144           className="width-100"
145         >
146           <tbody>
147             <tr>
148               <th>
149                 <strong>
150                   system.server_id
151                 </strong>
152               </th>
153               <td>
154                 <code>
155                   foo-bar
156                 </code>
157               </td>
158             </tr>
159             <tr>
160               <th>
161                 <strong>
162                   system.version
163                 </strong>
164               </th>
165               <td>
166                 7.7.0.1234
167               </td>
168             </tr>
169           </tbody>
170         </table>
171       </div>
172       <ClipboardButton
173         className="flex-0"
174         copyValue="SonarQube ID information
175 Server ID: foo-bar
176 Version: 7.7.0.1234
177 Date: 2019-01-01
178 "
179       >
180         system.copy_id_info
181       </ClipboardButton>
182     </div>
183   </div>
184 </header>
185 `;