]> source.dussan.org Git - sonarqube.git/blob
f23c3a895ff2849c771b0666719e0f36509c5ec5
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should correctly handle a WS failure 1`] = `
4 <div
5   className="page page-limited"
6 >
7   <i
8     className="spinner"
9   />
10 </div>
11 `;
12
13 exports[`should render correctly for a failed QG 1`] = `
14 <div
15   className="page page-limited"
16 >
17   <div
18     className="pr-overview has-conditions"
19   >
20     <div
21       className="display-flex-row"
22     >
23       <div
24         className="pr-overview-quality-gate big-spacer-right"
25       >
26         <h3
27           className="spacer-bottom small"
28         >
29           overview.quality_gate
30           <DocTooltip
31             className="spacer-left"
32             doc={Promise {}}
33           />
34         </h3>
35         <LargeQualityGateBadge
36           component={
37             Object {
38               "breadcrumbs": Array [],
39               "key": "my-project",
40               "name": "MyProject",
41               "organization": "foo",
42               "qualifier": "TRK",
43               "qualityGate": Object {
44                 "isDefault": true,
45                 "key": "30",
46                 "name": "Sonar way",
47               },
48               "qualityProfiles": Array [
49                 Object {
50                   "deleted": false,
51                   "key": "my-qp",
52                   "language": "ts",
53                   "name": "Sonar way",
54                 },
55               ],
56               "tags": Array [],
57             }
58           }
59           level="ERROR"
60         />
61       </div>
62       <div
63         className="pr-overview-failed-conditions big-spacer-right"
64       >
65         <h3
66           className="spacer-bottom small"
67         >
68           overview.failed_conditions
69         </h3>
70         <QualityGateConditions
71           branchLike={
72             Object {
73               "analysisDate": "2018-01-01",
74               "base": "master",
75               "branch": "feature/foo/bar",
76               "key": "1001",
77               "target": "master",
78               "title": "Foo Bar feature",
79             }
80           }
81           collapsible={true}
82           component={
83             Object {
84               "breadcrumbs": Array [],
85               "key": "my-project",
86               "name": "MyProject",
87               "organization": "foo",
88               "qualifier": "TRK",
89               "qualityGate": Object {
90                 "isDefault": true,
91                 "key": "30",
92                 "name": "Sonar way",
93               },
94               "qualityProfiles": Array [
95                 Object {
96                   "deleted": false,
97                   "key": "my-qp",
98                   "language": "ts",
99                   "name": "Sonar way",
100                 },
101               ],
102               "tags": Array [],
103             }
104           }
105           conditions={
106             Array [
107               Object {
108                 "actual": "10",
109                 "error": "1.0",
110                 "level": "ERROR",
111                 "metric": "new_code_smells",
112                 "op": "GT",
113                 "period": 1,
114               },
115             ]
116           }
117         />
118       </div>
119       <div
120         className="pr-overview-measurements flex-1"
121       >
122         <h3
123           className="spacer-bottom small"
124         >
125           overview.metrics
126         </h3>
127         <div
128           className="pr-overview-measurements-row display-flex-row"
129           key="BUG"
130         >
131           <div
132             className="pr-overview-measurements-value flex-1 small display-flex-center"
133           >
134             <IssueLabel
135               branchLike={
136                 Object {
137                   "analysisDate": "2018-01-01",
138                   "base": "master",
139                   "branch": "feature/foo/bar",
140                   "key": "1001",
141                   "target": "master",
142                   "title": "Foo Bar feature",
143                 }
144               }
145               className="overview-domain-measure-value"
146               component={
147                 Object {
148                   "breadcrumbs": Array [],
149                   "key": "my-project",
150                   "name": "MyProject",
151                   "organization": "foo",
152                   "qualifier": "TRK",
153                   "qualityGate": Object {
154                     "isDefault": true,
155                     "key": "30",
156                     "name": "Sonar way",
157                   },
158                   "qualityProfiles": Array [
159                     Object {
160                       "deleted": false,
161                       "key": "my-qp",
162                       "language": "ts",
163                       "name": "Sonar way",
164                     },
165                   ],
166                   "tags": Array [],
167                 }
168               }
169               measures={
170                 Array [
171                   Object {
172                     "bestValue": true,
173                     "metric": "new_bugs ",
174                     "periods": Array [
175                       Object {
176                         "bestValue": true,
177                         "index": 1,
178                         "value": "1.0",
179                       },
180                     ],
181                     "value": "1.0",
182                   },
183                   Object {
184                     "bestValue": true,
185                     "metric": "new_vulnerabilities",
186                     "periods": Array [
187                       Object {
188                         "bestValue": true,
189                         "index": 1,
190                         "value": "1.0",
191                       },
192                     ],
193                     "value": "1.0",
194                   },
195                   Object {
196                     "bestValue": true,
197                     "metric": "new_code_smells",
198                     "periods": Array [
199                       Object {
200                         "bestValue": true,
201                         "index": 1,
202                         "value": "1.0",
203                       },
204                     ],
205                     "value": "1.0",
206                   },
207                   Object {
208                     "bestValue": true,
209                     "metric": "new_security_hotspots",
210                     "periods": Array [
211                       Object {
212                         "bestValue": true,
213                         "index": 1,
214                         "value": "1.0",
215                       },
216                     ],
217                     "value": "1.0",
218                   },
219                 ]
220               }
221               type="BUG"
222             />
223           </div>
224           <div
225             className="pr-overview-measurements-rating display-flex-center"
226           >
227             <IssueRating
228               branchLike={
229                 Object {
230                   "analysisDate": "2018-01-01",
231                   "base": "master",
232                   "branch": "feature/foo/bar",
233                   "key": "1001",
234                   "target": "master",
235                   "title": "Foo Bar feature",
236                 }
237               }
238               component={
239                 Object {
240                   "breadcrumbs": Array [],
241                   "key": "my-project",
242                   "name": "MyProject",
243                   "organization": "foo",
244                   "qualifier": "TRK",
245                   "qualityGate": Object {
246                     "isDefault": true,
247                     "key": "30",
248                     "name": "Sonar way",
249                   },
250                   "qualityProfiles": Array [
251                     Object {
252                       "deleted": false,
253                       "key": "my-qp",
254                       "language": "ts",
255                       "name": "Sonar way",
256                     },
257                   ],
258                   "tags": Array [],
259                 }
260               }
261               measures={
262                 Array [
263                   Object {
264                     "bestValue": true,
265                     "metric": "new_bugs ",
266                     "periods": Array [
267                       Object {
268                         "bestValue": true,
269                         "index": 1,
270                         "value": "1.0",
271                       },
272                     ],
273                     "value": "1.0",
274                   },
275                   Object {
276                     "bestValue": true,
277                     "metric": "new_vulnerabilities",
278                     "periods": Array [
279                       Object {
280                         "bestValue": true,
281                         "index": 1,
282                         "value": "1.0",
283                       },
284                     ],
285                     "value": "1.0",
286                   },
287                   Object {
288                     "bestValue": true,
289                     "metric": "new_code_smells",
290                     "periods": Array [
291                       Object {
292                         "bestValue": true,
293                         "index": 1,
294                         "value": "1.0",
295                       },
296                     ],
297                     "value": "1.0",
298                   },
299                   Object {
300                     "bestValue": true,
301                     "metric": "new_security_hotspots",
302                     "periods": Array [
303                       Object {
304                         "bestValue": true,
305                         "index": 1,
306                         "value": "1.0",
307                       },
308                     ],
309                     "value": "1.0",
310                   },
311                 ]
312               }
313               type="BUG"
314             />
315           </div>
316         </div>
317         <div
318           className="pr-overview-measurements-row display-flex-row"
319           key="VULNERABILITY"
320         >
321           <div
322             className="pr-overview-measurements-value flex-1 small display-flex-center"
323           >
324             <IssueLabel
325               branchLike={
326                 Object {
327                   "analysisDate": "2018-01-01",
328                   "base": "master",
329                   "branch": "feature/foo/bar",
330                   "key": "1001",
331                   "target": "master",
332                   "title": "Foo Bar feature",
333                 }
334               }
335               className="overview-domain-measure-value"
336               component={
337                 Object {
338                   "breadcrumbs": Array [],
339                   "key": "my-project",
340                   "name": "MyProject",
341                   "organization": "foo",
342                   "qualifier": "TRK",
343                   "qualityGate": Object {
344                     "isDefault": true,
345                     "key": "30",
346                     "name": "Sonar way",
347                   },
348                   "qualityProfiles": Array [
349                     Object {
350                       "deleted": false,
351                       "key": "my-qp",
352                       "language": "ts",
353                       "name": "Sonar way",
354                     },
355                   ],
356                   "tags": Array [],
357                 }
358               }
359               measures={
360                 Array [
361                   Object {
362                     "bestValue": true,
363                     "metric": "new_bugs ",
364                     "periods": Array [
365                       Object {
366                         "bestValue": true,
367                         "index": 1,
368                         "value": "1.0",
369                       },
370                     ],
371                     "value": "1.0",
372                   },
373                   Object {
374                     "bestValue": true,
375                     "metric": "new_vulnerabilities",
376                     "periods": Array [
377                       Object {
378                         "bestValue": true,
379                         "index": 1,
380                         "value": "1.0",
381                       },
382                     ],
383                     "value": "1.0",
384                   },
385                   Object {
386                     "bestValue": true,
387                     "metric": "new_code_smells",
388                     "periods": Array [
389                       Object {
390                         "bestValue": true,
391                         "index": 1,
392                         "value": "1.0",
393                       },
394                     ],
395                     "value": "1.0",
396                   },
397                   Object {
398                     "bestValue": true,
399                     "metric": "new_security_hotspots",
400                     "periods": Array [
401                       Object {
402                         "bestValue": true,
403                         "index": 1,
404                         "value": "1.0",
405                       },
406                     ],
407                     "value": "1.0",
408                   },
409                 ]
410               }
411               type="VULNERABILITY"
412             />
413           </div>
414           <div
415             className="pr-overview-measurements-value flex-1 small display-flex-center"
416           >
417             <IssueLabel
418               branchLike={
419                 Object {
420                   "analysisDate": "2018-01-01",
421                   "base": "master",
422                   "branch": "feature/foo/bar",
423                   "key": "1001",
424                   "target": "master",
425                   "title": "Foo Bar feature",
426                 }
427               }
428               className="huge"
429               component={
430                 Object {
431                   "breadcrumbs": Array [],
432                   "key": "my-project",
433                   "name": "MyProject",
434                   "organization": "foo",
435                   "qualifier": "TRK",
436                   "qualityGate": Object {
437                     "isDefault": true,
438                     "key": "30",
439                     "name": "Sonar way",
440                   },
441                   "qualityProfiles": Array [
442                     Object {
443                       "deleted": false,
444                       "key": "my-qp",
445                       "language": "ts",
446                       "name": "Sonar way",
447                     },
448                   ],
449                   "tags": Array [],
450                 }
451               }
452               docTooltip={Promise {}}
453               measures={
454                 Array [
455                   Object {
456                     "bestValue": true,
457                     "metric": "new_bugs ",
458                     "periods": Array [
459                       Object {
460                         "bestValue": true,
461                         "index": 1,
462                         "value": "1.0",
463                       },
464                     ],
465                     "value": "1.0",
466                   },
467                   Object {
468                     "bestValue": true,
469                     "metric": "new_vulnerabilities",
470                     "periods": Array [
471                       Object {
472                         "bestValue": true,
473                         "index": 1,
474                         "value": "1.0",
475                       },
476                     ],
477                     "value": "1.0",
478                   },
479                   Object {
480                     "bestValue": true,
481                     "metric": "new_code_smells",
482                     "periods": Array [
483                       Object {
484                         "bestValue": true,
485                         "index": 1,
486                         "value": "1.0",
487                       },
488                     ],
489                     "value": "1.0",
490                   },
491                   Object {
492                     "bestValue": true,
493                     "metric": "new_security_hotspots",
494                     "periods": Array [
495                       Object {
496                         "bestValue": true,
497                         "index": 1,
498                         "value": "1.0",
499                       },
500                     ],
501                     "value": "1.0",
502                   },
503                 ]
504               }
505               type="SECURITY_HOTSPOT"
506             />
507           </div>
508           <div
509             className="pr-overview-measurements-rating display-flex-center"
510           >
511             <IssueRating
512               branchLike={
513                 Object {
514                   "analysisDate": "2018-01-01",
515                   "base": "master",
516                   "branch": "feature/foo/bar",
517                   "key": "1001",
518                   "target": "master",
519                   "title": "Foo Bar feature",
520                 }
521               }
522               component={
523                 Object {
524                   "breadcrumbs": Array [],
525                   "key": "my-project",
526                   "name": "MyProject",
527                   "organization": "foo",
528                   "qualifier": "TRK",
529                   "qualityGate": Object {
530                     "isDefault": true,
531                     "key": "30",
532                     "name": "Sonar way",
533                   },
534                   "qualityProfiles": Array [
535                     Object {
536                       "deleted": false,
537                       "key": "my-qp",
538                       "language": "ts",
539                       "name": "Sonar way",
540                     },
541                   ],
542                   "tags": Array [],
543                 }
544               }
545               measures={
546                 Array [
547                   Object {
548                     "bestValue": true,
549                     "metric": "new_bugs ",
550                     "periods": Array [
551                       Object {
552                         "bestValue": true,
553                         "index": 1,
554                         "value": "1.0",
555                       },
556                     ],
557                     "value": "1.0",
558                   },
559                   Object {
560                     "bestValue": true,
561                     "metric": "new_vulnerabilities",
562                     "periods": Array [
563                       Object {
564                         "bestValue": true,
565                         "index": 1,
566                         "value": "1.0",
567                       },
568                     ],
569                     "value": "1.0",
570                   },
571                   Object {
572                     "bestValue": true,
573                     "metric": "new_code_smells",
574                     "periods": Array [
575                       Object {
576                         "bestValue": true,
577                         "index": 1,
578                         "value": "1.0",
579                       },
580                     ],
581                     "value": "1.0",
582                   },
583                   Object {
584                     "bestValue": true,
585                     "metric": "new_security_hotspots",
586                     "periods": Array [
587                       Object {
588                         "bestValue": true,
589                         "index": 1,
590                         "value": "1.0",
591                       },
592                     ],
593                     "value": "1.0",
594                   },
595                 ]
596               }
597               type="VULNERABILITY"
598             />
599           </div>
600         </div>
601         <div
602           className="pr-overview-measurements-row display-flex-row"
603           key="CODE_SMELL"
604         >
605           <div
606             className="pr-overview-measurements-value flex-1 small display-flex-center"
607           >
608             <IssueLabel
609               branchLike={
610                 Object {
611                   "analysisDate": "2018-01-01",
612                   "base": "master",
613                   "branch": "feature/foo/bar",
614                   "key": "1001",
615                   "target": "master",
616                   "title": "Foo Bar feature",
617                 }
618               }
619               className="overview-domain-measure-value"
620               component={
621                 Object {
622                   "breadcrumbs": Array [],
623                   "key": "my-project",
624                   "name": "MyProject",
625                   "organization": "foo",
626                   "qualifier": "TRK",
627                   "qualityGate": Object {
628                     "isDefault": true,
629                     "key": "30",
630                     "name": "Sonar way",
631                   },
632                   "qualityProfiles": Array [
633                     Object {
634                       "deleted": false,
635                       "key": "my-qp",
636                       "language": "ts",
637                       "name": "Sonar way",
638                     },
639                   ],
640                   "tags": Array [],
641                 }
642               }
643               measures={
644                 Array [
645                   Object {
646                     "bestValue": true,
647                     "metric": "new_bugs ",
648                     "periods": Array [
649                       Object {
650                         "bestValue": true,
651                         "index": 1,
652                         "value": "1.0",
653                       },
654                     ],
655                     "value": "1.0",
656                   },
657                   Object {
658                     "bestValue": true,
659                     "metric": "new_vulnerabilities",
660                     "periods": Array [
661                       Object {
662                         "bestValue": true,
663                         "index": 1,
664                         "value": "1.0",
665                       },
666                     ],
667                     "value": "1.0",
668                   },
669                   Object {
670                     "bestValue": true,
671                     "metric": "new_code_smells",
672                     "periods": Array [
673                       Object {
674                         "bestValue": true,
675                         "index": 1,
676                         "value": "1.0",
677                       },
678                     ],
679                     "value": "1.0",
680                   },
681                   Object {
682                     "bestValue": true,
683                     "metric": "new_security_hotspots",
684                     "periods": Array [
685                       Object {
686                         "bestValue": true,
687                         "index": 1,
688                         "value": "1.0",
689                       },
690                     ],
691                     "value": "1.0",
692                   },
693                 ]
694               }
695               type="CODE_SMELL"
696             />
697           </div>
698           <div
699             className="pr-overview-measurements-rating display-flex-center"
700           >
701             <IssueRating
702               branchLike={
703                 Object {
704                   "analysisDate": "2018-01-01",
705                   "base": "master",
706                   "branch": "feature/foo/bar",
707                   "key": "1001",
708                   "target": "master",
709                   "title": "Foo Bar feature",
710                 }
711               }
712               component={
713                 Object {
714                   "breadcrumbs": Array [],
715                   "key": "my-project",
716                   "name": "MyProject",
717                   "organization": "foo",
718                   "qualifier": "TRK",
719                   "qualityGate": Object {
720                     "isDefault": true,
721                     "key": "30",
722                     "name": "Sonar way",
723                   },
724                   "qualityProfiles": Array [
725                     Object {
726                       "deleted": false,
727                       "key": "my-qp",
728                       "language": "ts",
729                       "name": "Sonar way",
730                     },
731                   ],
732                   "tags": Array [],
733                 }
734               }
735               measures={
736                 Array [
737                   Object {
738                     "bestValue": true,
739                     "metric": "new_bugs ",
740                     "periods": Array [
741                       Object {
742                         "bestValue": true,
743                         "index": 1,
744                         "value": "1.0",
745                       },
746                     ],
747                     "value": "1.0",
748                   },
749                   Object {
750                     "bestValue": true,
751                     "metric": "new_vulnerabilities",
752                     "periods": Array [
753                       Object {
754                         "bestValue": true,
755                         "index": 1,
756                         "value": "1.0",
757                       },
758                     ],
759                     "value": "1.0",
760                   },
761                   Object {
762                     "bestValue": true,
763                     "metric": "new_code_smells",
764                     "periods": Array [
765                       Object {
766                         "bestValue": true,
767                         "index": 1,
768                         "value": "1.0",
769                       },
770                     ],
771                     "value": "1.0",
772                   },
773                   Object {
774                     "bestValue": true,
775                     "metric": "new_security_hotspots",
776                     "periods": Array [
777                       Object {
778                         "bestValue": true,
779                         "index": 1,
780                         "value": "1.0",
781                       },
782                     ],
783                     "value": "1.0",
784                   },
785                 ]
786               }
787               type="CODE_SMELL"
788             />
789           </div>
790         </div>
791         <div
792           className="pr-overview-measurements-row display-flex-row"
793           key="COVERAGE"
794         >
795           <div
796             className="pr-overview-measurements-value flex-1 small display-flex-center"
797           >
798             <MeasurementLabel
799               branchLike={
800                 Object {
801                   "analysisDate": "2018-01-01",
802                   "base": "master",
803                   "branch": "feature/foo/bar",
804                   "key": "1001",
805                   "target": "master",
806                   "title": "Foo Bar feature",
807                 }
808               }
809               className="overview-domain-measure-value"
810               component={
811                 Object {
812                   "breadcrumbs": Array [],
813                   "key": "my-project",
814                   "name": "MyProject",
815                   "organization": "foo",
816                   "qualifier": "TRK",
817                   "qualityGate": Object {
818                     "isDefault": true,
819                     "key": "30",
820                     "name": "Sonar way",
821                   },
822                   "qualityProfiles": Array [
823                     Object {
824                       "deleted": false,
825                       "key": "my-qp",
826                       "language": "ts",
827                       "name": "Sonar way",
828                     },
829                   ],
830                   "tags": Array [],
831                 }
832               }
833               measures={
834                 Array [
835                   Object {
836                     "bestValue": true,
837                     "metric": "new_bugs ",
838                     "periods": Array [
839                       Object {
840                         "bestValue": true,
841                         "index": 1,
842                         "value": "1.0",
843                       },
844                     ],
845                     "value": "1.0",
846                   },
847                   Object {
848                     "bestValue": true,
849                     "metric": "new_vulnerabilities",
850                     "periods": Array [
851                       Object {
852                         "bestValue": true,
853                         "index": 1,
854                         "value": "1.0",
855                       },
856                     ],
857                     "value": "1.0",
858                   },
859                   Object {
860                     "bestValue": true,
861                     "metric": "new_code_smells",
862                     "periods": Array [
863                       Object {
864                         "bestValue": true,
865                         "index": 1,
866                         "value": "1.0",
867                       },
868                     ],
869                     "value": "1.0",
870                   },
871                   Object {
872                     "bestValue": true,
873                     "metric": "new_security_hotspots",
874                     "periods": Array [
875                       Object {
876                         "bestValue": true,
877                         "index": 1,
878                         "value": "1.0",
879                       },
880                     ],
881                     "value": "1.0",
882                   },
883                 ]
884               }
885               type="COVERAGE"
886             />
887           </div>
888           <AfterMergeEstimate
889             className="pr-overview-measurements-estimate"
890             measures={
891               Array [
892                 Object {
893                   "bestValue": true,
894                   "metric": "new_bugs ",
895                   "periods": Array [
896                     Object {
897                       "bestValue": true,
898                       "index": 1,
899                       "value": "1.0",
900                     },
901                   ],
902                   "value": "1.0",
903                 },
904                 Object {
905                   "bestValue": true,
906                   "metric": "new_vulnerabilities",
907                   "periods": Array [
908                     Object {
909                       "bestValue": true,
910                       "index": 1,
911                       "value": "1.0",
912                     },
913                   ],
914                   "value": "1.0",
915                 },
916                 Object {
917                   "bestValue": true,
918                   "metric": "new_code_smells",
919                   "periods": Array [
920                     Object {
921                       "bestValue": true,
922                       "index": 1,
923                       "value": "1.0",
924                     },
925                   ],
926                   "value": "1.0",
927                 },
928                 Object {
929                   "bestValue": true,
930                   "metric": "new_security_hotspots",
931                   "periods": Array [
932                     Object {
933                       "bestValue": true,
934                       "index": 1,
935                       "value": "1.0",
936                     },
937                   ],
938                   "value": "1.0",
939                 },
940               ]
941             }
942             type="COVERAGE"
943           />
944         </div>
945         <div
946           className="pr-overview-measurements-row display-flex-row"
947           key="DUPLICATION"
948         >
949           <div
950             className="pr-overview-measurements-value flex-1 small display-flex-center"
951           >
952             <MeasurementLabel
953               branchLike={
954                 Object {
955                   "analysisDate": "2018-01-01",
956                   "base": "master",
957                   "branch": "feature/foo/bar",
958                   "key": "1001",
959                   "target": "master",
960                   "title": "Foo Bar feature",
961                 }
962               }
963               className="overview-domain-measure-value"
964               component={
965                 Object {
966                   "breadcrumbs": Array [],
967                   "key": "my-project",
968                   "name": "MyProject",
969                   "organization": "foo",
970                   "qualifier": "TRK",
971                   "qualityGate": Object {
972                     "isDefault": true,
973                     "key": "30",
974                     "name": "Sonar way",
975                   },
976                   "qualityProfiles": Array [
977                     Object {
978                       "deleted": false,
979                       "key": "my-qp",
980                       "language": "ts",
981                       "name": "Sonar way",
982                     },
983                   ],
984                   "tags": Array [],
985                 }
986               }
987               measures={
988                 Array [
989                   Object {
990                     "bestValue": true,
991                     "metric": "new_bugs ",
992                     "periods": Array [
993                       Object {
994                         "bestValue": true,
995                         "index": 1,
996                         "value": "1.0",
997                       },
998                     ],
999                     "value": "1.0",
1000                   },
1001                   Object {
1002                     "bestValue": true,
1003                     "metric": "new_vulnerabilities",
1004                     "periods": Array [
1005                       Object {
1006                         "bestValue": true,
1007                         "index": 1,
1008                         "value": "1.0",
1009                       },
1010                     ],
1011                     "value": "1.0",
1012                   },
1013                   Object {
1014                     "bestValue": true,
1015                     "metric": "new_code_smells",
1016                     "periods": Array [
1017                       Object {
1018                         "bestValue": true,
1019                         "index": 1,
1020                         "value": "1.0",
1021                       },
1022                     ],
1023                     "value": "1.0",
1024                   },
1025                   Object {
1026                     "bestValue": true,
1027                     "metric": "new_security_hotspots",
1028                     "periods": Array [
1029                       Object {
1030                         "bestValue": true,
1031                         "index": 1,
1032                         "value": "1.0",
1033                       },
1034                     ],
1035                     "value": "1.0",
1036                   },
1037                 ]
1038               }
1039               type="DUPLICATION"
1040             />
1041           </div>
1042           <AfterMergeEstimate
1043             className="pr-overview-measurements-estimate"
1044             measures={
1045               Array [
1046                 Object {
1047                   "bestValue": true,
1048                   "metric": "new_bugs ",
1049                   "periods": Array [
1050                     Object {
1051                       "bestValue": true,
1052                       "index": 1,
1053                       "value": "1.0",
1054                     },
1055                   ],
1056                   "value": "1.0",
1057                 },
1058                 Object {
1059                   "bestValue": true,
1060                   "metric": "new_vulnerabilities",
1061                   "periods": Array [
1062                     Object {
1063                       "bestValue": true,
1064                       "index": 1,
1065                       "value": "1.0",
1066                     },
1067                   ],
1068                   "value": "1.0",
1069                 },
1070                 Object {
1071                   "bestValue": true,
1072                   "metric": "new_code_smells",
1073                   "periods": Array [
1074                     Object {
1075                       "bestValue": true,
1076                       "index": 1,
1077                       "value": "1.0",
1078                     },
1079                   ],
1080                   "value": "1.0",
1081                 },
1082                 Object {
1083                   "bestValue": true,
1084                   "metric": "new_security_hotspots",
1085                   "periods": Array [
1086                     Object {
1087                       "bestValue": true,
1088                       "index": 1,
1089                       "value": "1.0",
1090                     },
1091                   ],
1092                   "value": "1.0",
1093                 },
1094               ]
1095             }
1096             type="DUPLICATION"
1097           />
1098         </div>
1099       </div>
1100     </div>
1101   </div>
1102 </div>
1103 `;
1104
1105 exports[`should render correctly for a passed QG 1`] = `
1106 <div
1107   className="page page-limited"
1108 >
1109   <div
1110     className="pr-overview"
1111   >
1112     <div
1113       className="display-flex-row"
1114     >
1115       <div
1116         className="pr-overview-quality-gate big-spacer-right"
1117       >
1118         <h3
1119           className="spacer-bottom small"
1120         >
1121           overview.quality_gate
1122           <DocTooltip
1123             className="spacer-left"
1124             doc={Promise {}}
1125           />
1126         </h3>
1127         <LargeQualityGateBadge
1128           component={
1129             Object {
1130               "breadcrumbs": Array [],
1131               "key": "my-project",
1132               "name": "MyProject",
1133               "organization": "foo",
1134               "qualifier": "TRK",
1135               "qualityGate": Object {
1136                 "isDefault": true,
1137                 "key": "30",
1138                 "name": "Sonar way",
1139               },
1140               "qualityProfiles": Array [
1141                 Object {
1142                   "deleted": false,
1143                   "key": "my-qp",
1144                   "language": "ts",
1145                   "name": "Sonar way",
1146                 },
1147               ],
1148               "tags": Array [],
1149             }
1150           }
1151           level="OK"
1152         />
1153       </div>
1154       <div
1155         className="pr-overview-measurements flex-1"
1156       >
1157         <h3
1158           className="spacer-bottom small"
1159         >
1160           overview.metrics
1161         </h3>
1162         <div
1163           className="pr-overview-measurements-row display-flex-row"
1164           key="BUG"
1165         >
1166           <div
1167             className="pr-overview-measurements-value flex-1 small display-flex-center"
1168           >
1169             <IssueLabel
1170               branchLike={
1171                 Object {
1172                   "analysisDate": "2018-01-01",
1173                   "base": "master",
1174                   "branch": "feature/foo/bar",
1175                   "key": "1001",
1176                   "target": "master",
1177                   "title": "Foo Bar feature",
1178                 }
1179               }
1180               className="overview-domain-measure-value"
1181               component={
1182                 Object {
1183                   "breadcrumbs": Array [],
1184                   "key": "my-project",
1185                   "name": "MyProject",
1186                   "organization": "foo",
1187                   "qualifier": "TRK",
1188                   "qualityGate": Object {
1189                     "isDefault": true,
1190                     "key": "30",
1191                     "name": "Sonar way",
1192                   },
1193                   "qualityProfiles": Array [
1194                     Object {
1195                       "deleted": false,
1196                       "key": "my-qp",
1197                       "language": "ts",
1198                       "name": "Sonar way",
1199                     },
1200                   ],
1201                   "tags": Array [],
1202                 }
1203               }
1204               measures={
1205                 Array [
1206                   Object {
1207                     "bestValue": true,
1208                     "metric": "new_bugs ",
1209                     "periods": Array [
1210                       Object {
1211                         "bestValue": true,
1212                         "index": 1,
1213                         "value": "1.0",
1214                       },
1215                     ],
1216                     "value": "1.0",
1217                   },
1218                   Object {
1219                     "bestValue": true,
1220                     "metric": "new_vulnerabilities",
1221                     "periods": Array [
1222                       Object {
1223                         "bestValue": true,
1224                         "index": 1,
1225                         "value": "1.0",
1226                       },
1227                     ],
1228                     "value": "1.0",
1229                   },
1230                   Object {
1231                     "bestValue": true,
1232                     "metric": "new_code_smells",
1233                     "periods": Array [
1234                       Object {
1235                         "bestValue": true,
1236                         "index": 1,
1237                         "value": "1.0",
1238                       },
1239                     ],
1240                     "value": "1.0",
1241                   },
1242                   Object {
1243                     "bestValue": true,
1244                     "metric": "new_security_hotspots",
1245                     "periods": Array [
1246                       Object {
1247                         "bestValue": true,
1248                         "index": 1,
1249                         "value": "1.0",
1250                       },
1251                     ],
1252                     "value": "1.0",
1253                   },
1254                 ]
1255               }
1256               type="BUG"
1257             />
1258           </div>
1259           <div
1260             className="pr-overview-measurements-rating display-flex-center"
1261           >
1262             <IssueRating
1263               branchLike={
1264                 Object {
1265                   "analysisDate": "2018-01-01",
1266                   "base": "master",
1267                   "branch": "feature/foo/bar",
1268                   "key": "1001",
1269                   "target": "master",
1270                   "title": "Foo Bar feature",
1271                 }
1272               }
1273               component={
1274                 Object {
1275                   "breadcrumbs": Array [],
1276                   "key": "my-project",
1277                   "name": "MyProject",
1278                   "organization": "foo",
1279                   "qualifier": "TRK",
1280                   "qualityGate": Object {
1281                     "isDefault": true,
1282                     "key": "30",
1283                     "name": "Sonar way",
1284                   },
1285                   "qualityProfiles": Array [
1286                     Object {
1287                       "deleted": false,
1288                       "key": "my-qp",
1289                       "language": "ts",
1290                       "name": "Sonar way",
1291                     },
1292                   ],
1293                   "tags": Array [],
1294                 }
1295               }
1296               measures={
1297                 Array [
1298                   Object {
1299                     "bestValue": true,
1300                     "metric": "new_bugs ",
1301                     "periods": Array [
1302                       Object {
1303                         "bestValue": true,
1304                         "index": 1,
1305                         "value": "1.0",
1306                       },
1307                     ],
1308                     "value": "1.0",
1309                   },
1310                   Object {
1311                     "bestValue": true,
1312                     "metric": "new_vulnerabilities",
1313                     "periods": Array [
1314                       Object {
1315                         "bestValue": true,
1316                         "index": 1,
1317                         "value": "1.0",
1318                       },
1319                     ],
1320                     "value": "1.0",
1321                   },
1322                   Object {
1323                     "bestValue": true,
1324                     "metric": "new_code_smells",
1325                     "periods": Array [
1326                       Object {
1327                         "bestValue": true,
1328                         "index": 1,
1329                         "value": "1.0",
1330                       },
1331                     ],
1332                     "value": "1.0",
1333                   },
1334                   Object {
1335                     "bestValue": true,
1336                     "metric": "new_security_hotspots",
1337                     "periods": Array [
1338                       Object {
1339                         "bestValue": true,
1340                         "index": 1,
1341                         "value": "1.0",
1342                       },
1343                     ],
1344                     "value": "1.0",
1345                   },
1346                 ]
1347               }
1348               type="BUG"
1349             />
1350           </div>
1351         </div>
1352         <div
1353           className="pr-overview-measurements-row display-flex-row"
1354           key="VULNERABILITY"
1355         >
1356           <div
1357             className="pr-overview-measurements-value flex-1 small display-flex-center"
1358           >
1359             <IssueLabel
1360               branchLike={
1361                 Object {
1362                   "analysisDate": "2018-01-01",
1363                   "base": "master",
1364                   "branch": "feature/foo/bar",
1365                   "key": "1001",
1366                   "target": "master",
1367                   "title": "Foo Bar feature",
1368                 }
1369               }
1370               className="overview-domain-measure-value"
1371               component={
1372                 Object {
1373                   "breadcrumbs": Array [],
1374                   "key": "my-project",
1375                   "name": "MyProject",
1376                   "organization": "foo",
1377                   "qualifier": "TRK",
1378                   "qualityGate": Object {
1379                     "isDefault": true,
1380                     "key": "30",
1381                     "name": "Sonar way",
1382                   },
1383                   "qualityProfiles": Array [
1384                     Object {
1385                       "deleted": false,
1386                       "key": "my-qp",
1387                       "language": "ts",
1388                       "name": "Sonar way",
1389                     },
1390                   ],
1391                   "tags": Array [],
1392                 }
1393               }
1394               measures={
1395                 Array [
1396                   Object {
1397                     "bestValue": true,
1398                     "metric": "new_bugs ",
1399                     "periods": Array [
1400                       Object {
1401                         "bestValue": true,
1402                         "index": 1,
1403                         "value": "1.0",
1404                       },
1405                     ],
1406                     "value": "1.0",
1407                   },
1408                   Object {
1409                     "bestValue": true,
1410                     "metric": "new_vulnerabilities",
1411                     "periods": Array [
1412                       Object {
1413                         "bestValue": true,
1414                         "index": 1,
1415                         "value": "1.0",
1416                       },
1417                     ],
1418                     "value": "1.0",
1419                   },
1420                   Object {
1421                     "bestValue": true,
1422                     "metric": "new_code_smells",
1423                     "periods": Array [
1424                       Object {
1425                         "bestValue": true,
1426                         "index": 1,
1427                         "value": "1.0",
1428                       },
1429                     ],
1430                     "value": "1.0",
1431                   },
1432                   Object {
1433                     "bestValue": true,
1434                     "metric": "new_security_hotspots",
1435                     "periods": Array [
1436                       Object {
1437                         "bestValue": true,
1438                         "index": 1,
1439                         "value": "1.0",
1440                       },
1441                     ],
1442                     "value": "1.0",
1443                   },
1444                 ]
1445               }
1446               type="VULNERABILITY"
1447             />
1448           </div>
1449           <div
1450             className="pr-overview-measurements-value flex-1 small display-flex-center"
1451           >
1452             <IssueLabel
1453               branchLike={
1454                 Object {
1455                   "analysisDate": "2018-01-01",
1456                   "base": "master",
1457                   "branch": "feature/foo/bar",
1458                   "key": "1001",
1459                   "target": "master",
1460                   "title": "Foo Bar feature",
1461                 }
1462               }
1463               className="huge"
1464               component={
1465                 Object {
1466                   "breadcrumbs": Array [],
1467                   "key": "my-project",
1468                   "name": "MyProject",
1469                   "organization": "foo",
1470                   "qualifier": "TRK",
1471                   "qualityGate": Object {
1472                     "isDefault": true,
1473                     "key": "30",
1474                     "name": "Sonar way",
1475                   },
1476                   "qualityProfiles": Array [
1477                     Object {
1478                       "deleted": false,
1479                       "key": "my-qp",
1480                       "language": "ts",
1481                       "name": "Sonar way",
1482                     },
1483                   ],
1484                   "tags": Array [],
1485                 }
1486               }
1487               docTooltip={Promise {}}
1488               measures={
1489                 Array [
1490                   Object {
1491                     "bestValue": true,
1492                     "metric": "new_bugs ",
1493                     "periods": Array [
1494                       Object {
1495                         "bestValue": true,
1496                         "index": 1,
1497                         "value": "1.0",
1498                       },
1499                     ],
1500                     "value": "1.0",
1501                   },
1502                   Object {
1503                     "bestValue": true,
1504                     "metric": "new_vulnerabilities",
1505                     "periods": Array [
1506                       Object {
1507                         "bestValue": true,
1508                         "index": 1,
1509                         "value": "1.0",
1510                       },
1511                     ],
1512                     "value": "1.0",
1513                   },
1514                   Object {
1515                     "bestValue": true,
1516                     "metric": "new_code_smells",
1517                     "periods": Array [
1518                       Object {
1519                         "bestValue": true,
1520                         "index": 1,
1521                         "value": "1.0",
1522                       },
1523                     ],
1524                     "value": "1.0",
1525                   },
1526                   Object {
1527                     "bestValue": true,
1528                     "metric": "new_security_hotspots",
1529                     "periods": Array [
1530                       Object {
1531                         "bestValue": true,
1532                         "index": 1,
1533                         "value": "1.0",
1534                       },
1535                     ],
1536                     "value": "1.0",
1537                   },
1538                 ]
1539               }
1540               type="SECURITY_HOTSPOT"
1541             />
1542           </div>
1543           <div
1544             className="pr-overview-measurements-rating display-flex-center"
1545           >
1546             <IssueRating
1547               branchLike={
1548                 Object {
1549                   "analysisDate": "2018-01-01",
1550                   "base": "master",
1551                   "branch": "feature/foo/bar",
1552                   "key": "1001",
1553                   "target": "master",
1554                   "title": "Foo Bar feature",
1555                 }
1556               }
1557               component={
1558                 Object {
1559                   "breadcrumbs": Array [],
1560                   "key": "my-project",
1561                   "name": "MyProject",
1562                   "organization": "foo",
1563                   "qualifier": "TRK",
1564                   "qualityGate": Object {
1565                     "isDefault": true,
1566                     "key": "30",
1567                     "name": "Sonar way",
1568                   },
1569                   "qualityProfiles": Array [
1570                     Object {
1571                       "deleted": false,
1572                       "key": "my-qp",
1573                       "language": "ts",
1574                       "name": "Sonar way",
1575                     },
1576                   ],
1577                   "tags": Array [],
1578                 }
1579               }
1580               measures={
1581                 Array [
1582                   Object {
1583                     "bestValue": true,
1584                     "metric": "new_bugs ",
1585                     "periods": Array [
1586                       Object {
1587                         "bestValue": true,
1588                         "index": 1,
1589                         "value": "1.0",
1590                       },
1591                     ],
1592                     "value": "1.0",
1593                   },
1594                   Object {
1595                     "bestValue": true,
1596                     "metric": "new_vulnerabilities",
1597                     "periods": Array [
1598                       Object {
1599                         "bestValue": true,
1600                         "index": 1,
1601                         "value": "1.0",
1602                       },
1603                     ],
1604                     "value": "1.0",
1605                   },
1606                   Object {
1607                     "bestValue": true,
1608                     "metric": "new_code_smells",
1609                     "periods": Array [
1610                       Object {
1611                         "bestValue": true,
1612                         "index": 1,
1613                         "value": "1.0",
1614                       },
1615                     ],
1616                     "value": "1.0",
1617                   },
1618                   Object {
1619                     "bestValue": true,
1620                     "metric": "new_security_hotspots",
1621                     "periods": Array [
1622                       Object {
1623                         "bestValue": true,
1624                         "index": 1,
1625                         "value": "1.0",
1626                       },
1627                     ],
1628                     "value": "1.0",
1629                   },
1630                 ]
1631               }
1632               type="VULNERABILITY"
1633             />
1634           </div>
1635         </div>
1636         <div
1637           className="pr-overview-measurements-row display-flex-row"
1638           key="CODE_SMELL"
1639         >
1640           <div
1641             className="pr-overview-measurements-value flex-1 small display-flex-center"
1642           >
1643             <IssueLabel
1644               branchLike={
1645                 Object {
1646                   "analysisDate": "2018-01-01",
1647                   "base": "master",
1648                   "branch": "feature/foo/bar",
1649                   "key": "1001",
1650                   "target": "master",
1651                   "title": "Foo Bar feature",
1652                 }
1653               }
1654               className="overview-domain-measure-value"
1655               component={
1656                 Object {
1657                   "breadcrumbs": Array [],
1658                   "key": "my-project",
1659                   "name": "MyProject",
1660                   "organization": "foo",
1661                   "qualifier": "TRK",
1662                   "qualityGate": Object {
1663                     "isDefault": true,
1664                     "key": "30",
1665                     "name": "Sonar way",
1666                   },
1667                   "qualityProfiles": Array [
1668                     Object {
1669                       "deleted": false,
1670                       "key": "my-qp",
1671                       "language": "ts",
1672                       "name": "Sonar way",
1673                     },
1674                   ],
1675                   "tags": Array [],
1676                 }
1677               }
1678               measures={
1679                 Array [
1680                   Object {
1681                     "bestValue": true,
1682                     "metric": "new_bugs ",
1683                     "periods": Array [
1684                       Object {
1685                         "bestValue": true,
1686                         "index": 1,
1687                         "value": "1.0",
1688                       },
1689                     ],
1690                     "value": "1.0",
1691                   },
1692                   Object {
1693                     "bestValue": true,
1694                     "metric": "new_vulnerabilities",
1695                     "periods": Array [
1696                       Object {
1697                         "bestValue": true,
1698                         "index": 1,
1699                         "value": "1.0",
1700                       },
1701                     ],
1702                     "value": "1.0",
1703                   },
1704                   Object {
1705                     "bestValue": true,
1706                     "metric": "new_code_smells",
1707                     "periods": Array [
1708                       Object {
1709                         "bestValue": true,
1710                         "index": 1,
1711                         "value": "1.0",
1712                       },
1713                     ],
1714                     "value": "1.0",
1715                   },
1716                   Object {
1717                     "bestValue": true,
1718                     "metric": "new_security_hotspots",
1719                     "periods": Array [
1720                       Object {
1721                         "bestValue": true,
1722                         "index": 1,
1723                         "value": "1.0",
1724                       },
1725                     ],
1726                     "value": "1.0",
1727                   },
1728                 ]
1729               }
1730               type="CODE_SMELL"
1731             />
1732           </div>
1733           <div
1734             className="pr-overview-measurements-rating display-flex-center"
1735           >
1736             <IssueRating
1737               branchLike={
1738                 Object {
1739                   "analysisDate": "2018-01-01",
1740                   "base": "master",
1741                   "branch": "feature/foo/bar",
1742                   "key": "1001",
1743                   "target": "master",
1744                   "title": "Foo Bar feature",
1745                 }
1746               }
1747               component={
1748                 Object {
1749                   "breadcrumbs": Array [],
1750                   "key": "my-project",
1751                   "name": "MyProject",
1752                   "organization": "foo",
1753                   "qualifier": "TRK",
1754                   "qualityGate": Object {
1755                     "isDefault": true,
1756                     "key": "30",
1757                     "name": "Sonar way",
1758                   },
1759                   "qualityProfiles": Array [
1760                     Object {
1761                       "deleted": false,
1762                       "key": "my-qp",
1763                       "language": "ts",
1764                       "name": "Sonar way",
1765                     },
1766                   ],
1767                   "tags": Array [],
1768                 }
1769               }
1770               measures={
1771                 Array [
1772                   Object {
1773                     "bestValue": true,
1774                     "metric": "new_bugs ",
1775                     "periods": Array [
1776                       Object {
1777                         "bestValue": true,
1778                         "index": 1,
1779                         "value": "1.0",
1780                       },
1781                     ],
1782                     "value": "1.0",
1783                   },
1784                   Object {
1785                     "bestValue": true,
1786                     "metric": "new_vulnerabilities",
1787                     "periods": Array [
1788                       Object {
1789                         "bestValue": true,
1790                         "index": 1,
1791                         "value": "1.0",
1792                       },
1793                     ],
1794                     "value": "1.0",
1795                   },
1796                   Object {
1797                     "bestValue": true,
1798                     "metric": "new_code_smells",
1799                     "periods": Array [
1800                       Object {
1801                         "bestValue": true,
1802                         "index": 1,
1803                         "value": "1.0",
1804                       },
1805                     ],
1806                     "value": "1.0",
1807                   },
1808                   Object {
1809                     "bestValue": true,
1810                     "metric": "new_security_hotspots",
1811                     "periods": Array [
1812                       Object {
1813                         "bestValue": true,
1814                         "index": 1,
1815                         "value": "1.0",
1816                       },
1817                     ],
1818                     "value": "1.0",
1819                   },
1820                 ]
1821               }
1822               type="CODE_SMELL"
1823             />
1824           </div>
1825         </div>
1826         <div
1827           className="pr-overview-measurements-row display-flex-row"
1828           key="COVERAGE"
1829         >
1830           <div
1831             className="pr-overview-measurements-value flex-1 small display-flex-center"
1832           >
1833             <MeasurementLabel
1834               branchLike={
1835                 Object {
1836                   "analysisDate": "2018-01-01",
1837                   "base": "master",
1838                   "branch": "feature/foo/bar",
1839                   "key": "1001",
1840                   "target": "master",
1841                   "title": "Foo Bar feature",
1842                 }
1843               }
1844               className="overview-domain-measure-value"
1845               component={
1846                 Object {
1847                   "breadcrumbs": Array [],
1848                   "key": "my-project",
1849                   "name": "MyProject",
1850                   "organization": "foo",
1851                   "qualifier": "TRK",
1852                   "qualityGate": Object {
1853                     "isDefault": true,
1854                     "key": "30",
1855                     "name": "Sonar way",
1856                   },
1857                   "qualityProfiles": Array [
1858                     Object {
1859                       "deleted": false,
1860                       "key": "my-qp",
1861                       "language": "ts",
1862                       "name": "Sonar way",
1863                     },
1864                   ],
1865                   "tags": Array [],
1866                 }
1867               }
1868               measures={
1869                 Array [
1870                   Object {
1871                     "bestValue": true,
1872                     "metric": "new_bugs ",
1873                     "periods": Array [
1874                       Object {
1875                         "bestValue": true,
1876                         "index": 1,
1877                         "value": "1.0",
1878                       },
1879                     ],
1880                     "value": "1.0",
1881                   },
1882                   Object {
1883                     "bestValue": true,
1884                     "metric": "new_vulnerabilities",
1885                     "periods": Array [
1886                       Object {
1887                         "bestValue": true,
1888                         "index": 1,
1889                         "value": "1.0",
1890                       },
1891                     ],
1892                     "value": "1.0",
1893                   },
1894                   Object {
1895                     "bestValue": true,
1896                     "metric": "new_code_smells",
1897                     "periods": Array [
1898                       Object {
1899                         "bestValue": true,
1900                         "index": 1,
1901                         "value": "1.0",
1902                       },
1903                     ],
1904                     "value": "1.0",
1905                   },
1906                   Object {
1907                     "bestValue": true,
1908                     "metric": "new_security_hotspots",
1909                     "periods": Array [
1910                       Object {
1911                         "bestValue": true,
1912                         "index": 1,
1913                         "value": "1.0",
1914                       },
1915                     ],
1916                     "value": "1.0",
1917                   },
1918                 ]
1919               }
1920               type="COVERAGE"
1921             />
1922           </div>
1923           <AfterMergeEstimate
1924             className="pr-overview-measurements-estimate"
1925             measures={
1926               Array [
1927                 Object {
1928                   "bestValue": true,
1929                   "metric": "new_bugs ",
1930                   "periods": Array [
1931                     Object {
1932                       "bestValue": true,
1933                       "index": 1,
1934                       "value": "1.0",
1935                     },
1936                   ],
1937                   "value": "1.0",
1938                 },
1939                 Object {
1940                   "bestValue": true,
1941                   "metric": "new_vulnerabilities",
1942                   "periods": Array [
1943                     Object {
1944                       "bestValue": true,
1945                       "index": 1,
1946                       "value": "1.0",
1947                     },
1948                   ],
1949                   "value": "1.0",
1950                 },
1951                 Object {
1952                   "bestValue": true,
1953                   "metric": "new_code_smells",
1954                   "periods": Array [
1955                     Object {
1956                       "bestValue": true,
1957                       "index": 1,
1958                       "value": "1.0",
1959                     },
1960                   ],
1961                   "value": "1.0",
1962                 },
1963                 Object {
1964                   "bestValue": true,
1965                   "metric": "new_security_hotspots",
1966                   "periods": Array [
1967                     Object {
1968                       "bestValue": true,
1969                       "index": 1,
1970                       "value": "1.0",
1971                     },
1972                   ],
1973                   "value": "1.0",
1974                 },
1975               ]
1976             }
1977             type="COVERAGE"
1978           />
1979         </div>
1980         <div
1981           className="pr-overview-measurements-row display-flex-row"
1982           key="DUPLICATION"
1983         >
1984           <div
1985             className="pr-overview-measurements-value flex-1 small display-flex-center"
1986           >
1987             <MeasurementLabel
1988               branchLike={
1989                 Object {
1990                   "analysisDate": "2018-01-01",
1991                   "base": "master",
1992                   "branch": "feature/foo/bar",
1993                   "key": "1001",
1994                   "target": "master",
1995                   "title": "Foo Bar feature",
1996                 }
1997               }
1998               className="overview-domain-measure-value"
1999               component={
2000                 Object {
2001                   "breadcrumbs": Array [],
2002                   "key": "my-project",
2003                   "name": "MyProject",
2004                   "organization": "foo",
2005                   "qualifier": "TRK",
2006                   "qualityGate": Object {
2007                     "isDefault": true,
2008                     "key": "30",
2009                     "name": "Sonar way",
2010                   },
2011                   "qualityProfiles": Array [
2012                     Object {
2013                       "deleted": false,
2014                       "key": "my-qp",
2015                       "language": "ts",
2016                       "name": "Sonar way",
2017                     },
2018                   ],
2019                   "tags": Array [],
2020                 }
2021               }
2022               measures={
2023                 Array [
2024                   Object {
2025                     "bestValue": true,
2026                     "metric": "new_bugs ",
2027                     "periods": Array [
2028                       Object {
2029                         "bestValue": true,
2030                         "index": 1,
2031                         "value": "1.0",
2032                       },
2033                     ],
2034                     "value": "1.0",
2035                   },
2036                   Object {
2037                     "bestValue": true,
2038                     "metric": "new_vulnerabilities",
2039                     "periods": Array [
2040                       Object {
2041                         "bestValue": true,
2042                         "index": 1,
2043                         "value": "1.0",
2044                       },
2045                     ],
2046                     "value": "1.0",
2047                   },
2048                   Object {
2049                     "bestValue": true,
2050                     "metric": "new_code_smells",
2051                     "periods": Array [
2052                       Object {
2053                         "bestValue": true,
2054                         "index": 1,
2055                         "value": "1.0",
2056                       },
2057                     ],
2058                     "value": "1.0",
2059                   },
2060                   Object {
2061                     "bestValue": true,
2062                     "metric": "new_security_hotspots",
2063                     "periods": Array [
2064                       Object {
2065                         "bestValue": true,
2066                         "index": 1,
2067                         "value": "1.0",
2068                       },
2069                     ],
2070                     "value": "1.0",
2071                   },
2072                 ]
2073               }
2074               type="DUPLICATION"
2075             />
2076           </div>
2077           <AfterMergeEstimate
2078             className="pr-overview-measurements-estimate"
2079             measures={
2080               Array [
2081                 Object {
2082                   "bestValue": true,
2083                   "metric": "new_bugs ",
2084                   "periods": Array [
2085                     Object {
2086                       "bestValue": true,
2087                       "index": 1,
2088                       "value": "1.0",
2089                     },
2090                   ],
2091                   "value": "1.0",
2092                 },
2093                 Object {
2094                   "bestValue": true,
2095                   "metric": "new_vulnerabilities",
2096                   "periods": Array [
2097                     Object {
2098                       "bestValue": true,
2099                       "index": 1,
2100                       "value": "1.0",
2101                     },
2102                   ],
2103                   "value": "1.0",
2104                 },
2105                 Object {
2106                   "bestValue": true,
2107                   "metric": "new_code_smells",
2108                   "periods": Array [
2109                     Object {
2110                       "bestValue": true,
2111                       "index": 1,
2112                       "value": "1.0",
2113                     },
2114                   ],
2115                   "value": "1.0",
2116                 },
2117                 Object {
2118                   "bestValue": true,
2119                   "metric": "new_security_hotspots",
2120                   "periods": Array [
2121                     Object {
2122                       "bestValue": true,
2123                       "index": 1,
2124                       "value": "1.0",
2125                     },
2126                   ],
2127                   "value": "1.0",
2128                 },
2129               ]
2130             }
2131             type="DUPLICATION"
2132           />
2133         </div>
2134       </div>
2135     </div>
2136   </div>
2137 </div>
2138 `;