]> source.dussan.org Git - sonarqube.git/blob
68daeb9cdb4756c3c07e02637e3f1900d7ff8a6e
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should not render drilldown for estimated duplications 1`] = `
4 <div
5   id="component-measures"
6 >
7   <Suggestions
8     suggestions="component_measures"
9   />
10   <Helmet
11     defer={false}
12     encodeSpecialCharacters={true}
13     title="Coverage"
14   />
15   <div
16     className="layout-page"
17   >
18     <ScreenPositionHelper
19       className="layout-page-side-outer"
20     >
21       <Component />
22     </ScreenPositionHelper>
23     <div
24       className="layout-page-main"
25     >
26       <div
27         className="layout-page-main-inner"
28       >
29         <div
30           className="note"
31         >
32           component_measures.details_are_not_available
33         </div>
34       </div>
35     </div>
36   </div>
37 </div>
38 `;
39
40 exports[`should render a message when there are no measures 1`] = `
41 <div
42   id="component-measures"
43 >
44   <Suggestions
45     suggestions="component_measures"
46   />
47   <Helmet
48     defer={false}
49     encodeSpecialCharacters={true}
50     title="Coverage"
51   />
52   <MeasuresEmpty />
53 </div>
54 `;
55
56 exports[`should render a warning message when user does not have access to all projects whithin a Portfolio: Measure menu with warning (ScreenPositionHelper) 1`] = `
57 <div
58   className="layout-page-side-outer"
59 >
60   <div
61     className="layout-page-side"
62     style={
63       Object {
64         "top": 0,
65       }
66     }
67   >
68     <div
69       className="layout-page-side-inner"
70     >
71       <Alert
72         className="big-spacer-top big-spacer-right big-spacer-left"
73         variant="warning"
74       >
75         <Styled(div)>
76           component_measures.not_all_measures_are_shown
77           <HelpTooltip
78             ariaLabel="component_measures.not_all_measures_are_shown.help"
79             className="spacer-left"
80             overlay="component_measures.not_all_measures_are_shown.help"
81           />
82         </Styled(div)>
83       </Alert>
84       <div
85         className="layout-page-filters"
86       >
87         <Sidebar
88           measures={
89             Array [
90               Object {
91                 "leak": undefined,
92                 "metric": Object {
93                   "domain": "Coverage",
94                   "id": "2",
95                   "key": "coverage",
96                   "name": "Coverage",
97                   "type": "PERCENT",
98                 },
99                 "value": "80.0",
100               },
101             ]
102           }
103           selectedMetric="coverage"
104           showFullMeasures={true}
105           updateQuery={[Function]}
106         />
107       </div>
108     </div>
109   </div>
110 </div>
111 `;
112
113 exports[`should render correctly 1`] = `
114 <div
115   id="component-measures"
116 >
117   <Suggestions
118     suggestions="component_measures"
119   />
120   <Helmet
121     defer={false}
122     encodeSpecialCharacters={true}
123     title="Coverage"
124   />
125   <div
126     className="layout-page"
127   >
128     <ScreenPositionHelper
129       className="layout-page-side-outer"
130     >
131       <Component />
132     </ScreenPositionHelper>
133     <MeasureContent
134       branchLike={
135         Object {
136           "analysisDate": "2018-01-01",
137           "excludedFromPurge": true,
138           "isMain": true,
139           "name": "master",
140         }
141       }
142       metrics={
143         Object {
144           "coverage": Object {
145             "domain": "Coverage",
146             "id": "2",
147             "key": "coverage",
148             "name": "Coverage",
149             "type": "PERCENT",
150           },
151           "duplicated_lines_density": Object {
152             "domain": "Duplications",
153             "id": "3",
154             "key": "duplicated_lines_density",
155             "name": "Duplicated Lines (%)",
156             "type": "PERCENT",
157           },
158           "lines_to_cover": Object {
159             "domain": "Coverage",
160             "id": "1",
161             "key": "lines_to_cover",
162             "name": "Lines to Cover",
163             "type": "INT",
164           },
165           "new_bugs": Object {
166             "domain": "Reliability",
167             "id": "4",
168             "key": "new_bugs",
169             "name": "New Bugs",
170             "type": "INT",
171           },
172         }
173       }
174       onIssueChange={[Function]}
175       requestedMetric={
176         Object {
177           "domain": "Coverage",
178           "id": "2",
179           "key": "coverage",
180           "name": "Coverage",
181           "type": "PERCENT",
182         }
183       }
184       rootComponent={
185         Object {
186           "breadcrumbs": Array [],
187           "key": "foo",
188           "name": "Foo",
189           "qualifier": "TRK",
190           "qualityGate": Object {
191             "isDefault": true,
192             "key": "30",
193             "name": "Sonar way",
194           },
195           "qualityProfiles": Array [
196             Object {
197               "deleted": false,
198               "key": "my-qp",
199               "language": "ts",
200               "name": "Sonar way",
201             },
202           ],
203           "tags": Array [],
204         }
205       }
206       router={
207         Object {
208           "createHref": [MockFunction],
209           "createPath": [MockFunction],
210           "go": [MockFunction],
211           "goBack": [MockFunction],
212           "goForward": [MockFunction],
213           "isActive": [MockFunction],
214           "push": [MockFunction],
215           "replace": [MockFunction],
216           "setRouteLeaveHook": [MockFunction],
217         }
218       }
219       selected=""
220       updateQuery={[Function]}
221       view="tree"
222     />
223   </div>
224 </div>
225 `;