]> source.dussan.org Git - sonarqube.git/blob
ff5dc35a333782d07e8e0b8a7811bcb12a3c8bf8
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Fragment>
5   <div
6     className="spacer-top big-spacer-bottom display-flex-space-between"
7   >
8     <h2
9       className="settings-sub-category-name"
10     >
11       settings.almintegration.table.title
12     </h2>
13     <Button
14       data-test="settings__alm-create"
15       onClick={[MockFunction]}
16     >
17       settings.almintegration.table.create
18     </Button>
19   </div>
20   <table
21     className="data zebra fixed spacer-bottom"
22   >
23     <thead>
24       <tr>
25         <th>
26           settings.almintegration.table.column.name
27         </th>
28         <th
29           className="action-small text-center"
30         >
31           settings.almintegration.table.column.edit
32         </th>
33         <th
34           className="action text-center"
35         >
36           settings.almintegration.table.column.delete
37         </th>
38       </tr>
39     </thead>
40     <tbody>
41       <tr
42         data-test="settings__alm-empty-table"
43       >
44         <td
45           colSpan={3}
46         >
47           settings.almintegration.table.empty.azure
48         </td>
49       </tr>
50     </tbody>
51   </table>
52 </Fragment>
53 `;
54
55 exports[`should render correctly: additional columns 1`] = `
56 <Fragment>
57   <div
58     className="spacer-top big-spacer-bottom display-flex-space-between"
59   >
60     <h2
61       className="settings-sub-category-name"
62     >
63       settings.almintegration.table.title
64     </h2>
65     <Button
66       data-test="settings__alm-create"
67       onClick={[MockFunction]}
68     >
69       settings.almintegration.table.create
70     </Button>
71   </div>
72   <table
73     className="data zebra fixed spacer-bottom"
74   >
75     <thead>
76       <tr>
77         <th>
78           settings.almintegration.table.column.name
79         </th>
80         <th
81           key="additional1"
82         >
83           additional1
84         </th>
85         <th
86           key="additional2"
87         >
88           additional2
89         </th>
90         <th
91           className="action-small text-center"
92         >
93           settings.almintegration.table.column.edit
94         </th>
95         <th
96           className="action text-center"
97         >
98           settings.almintegration.table.column.delete
99         </th>
100       </tr>
101     </thead>
102     <tbody>
103       <tr
104         data-test="settings__alm-table-row"
105         key="definition1"
106       >
107         <td
108           className="nowrap hide-overflow"
109           title="definition1"
110         >
111           definition1
112         </td>
113         <td
114           className="nowrap hide-overflow"
115           key="def1-v1"
116           title="def1-v1"
117         >
118           def1-v1
119         </td>
120         <td
121           className="nowrap hide-overflow"
122           key="def1-v2"
123           title="def1-v2"
124         >
125           def1-v2
126         </td>
127         <td
128           className="text-center"
129           data-test="settings__alm-table-row-edit"
130         >
131           <ButtonIcon
132             onClick={[Function]}
133           >
134             <EditIcon />
135           </ButtonIcon>
136         </td>
137         <td
138           className="text-center"
139           data-test="settings__alm-table-row-delete"
140         >
141           <DeleteButton
142             onClick={[Function]}
143           />
144         </td>
145       </tr>
146       <tr
147         data-test="settings__alm-table-row"
148         key="definition2"
149       >
150         <td
151           className="nowrap hide-overflow"
152           title="definition2"
153         >
154           definition2
155         </td>
156         <td
157           className="nowrap hide-overflow"
158           key="def2-v1"
159           title="def2-v1"
160         >
161           def2-v1
162         </td>
163         <td
164           className="nowrap hide-overflow"
165           key="def2-v2"
166           title="def2-v2"
167         >
168           def2-v2
169         </td>
170         <td
171           className="text-center"
172           data-test="settings__alm-table-row-edit"
173         >
174           <ButtonIcon
175             onClick={[Function]}
176           >
177             <EditIcon />
178           </ButtonIcon>
179         </td>
180         <td
181           className="text-center"
182           data-test="settings__alm-table-row-delete"
183         >
184           <DeleteButton
185             onClick={[Function]}
186           />
187         </td>
188       </tr>
189     </tbody>
190   </table>
191 </Fragment>
192 `;
193
194 exports[`should render correctly: title adjusts for GitLab 1`] = `
195 <Fragment>
196   <div
197     className="spacer-top big-spacer-bottom display-flex-space-between"
198   >
199     <h2
200       className="settings-sub-category-name"
201     >
202       settings.almintegration.table.title
203     </h2>
204     <Button
205       data-test="settings__alm-create"
206       onClick={[MockFunction]}
207     >
208       settings.almintegration.table.create
209     </Button>
210   </div>
211   <table
212     className="data zebra fixed spacer-bottom"
213   >
214     <thead>
215       <tr>
216         <th>
217           settings.almintegration.table.column.name
218         </th>
219         <th
220           className="action-small text-center"
221         >
222           settings.almintegration.table.column.edit
223         </th>
224         <th
225           className="action text-center"
226         >
227           settings.almintegration.table.column.delete
228         </th>
229       </tr>
230     </thead>
231     <tbody>
232       <tr
233         data-test="settings__alm-empty-table"
234       >
235         <td
236           colSpan={3}
237         >
238           settings.almintegration.table.empty.gitlab
239         </td>
240       </tr>
241     </tbody>
242   </table>
243 </Fragment>
244 `;