]> source.dussan.org Git - sonarqube.git/blob
fc7aa1ecf74c84e76785ae40adcc71c015470082
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for SonarCloud 1`] = `
4 <div
5   className="layout-page"
6 >
7   <Helmet
8     defer={false}
9     encodeSpecialCharacters={true}
10     title="Lorem | documentation.page_title.sonarcloud"
11   />
12   <ScreenPositionHelper
13     className="layout-page-side-outer"
14   >
15     <Component />
16   </ScreenPositionHelper>
17   <div
18     className="layout-page-main"
19   >
20     <div
21       className="layout-page-main-inner"
22     >
23       <div
24         className="boxed-group"
25       >
26         <A11ySkipTarget
27           anchor="documentation_main"
28         />
29         <DocMarkdownBlock
30           className="documentation-content cut-margins boxed-group-inner"
31           content="Lorem ipsum dolor sit amet fredum"
32           stickyToc={true}
33           title="Lorem"
34         />
35       </div>
36     </div>
37   </div>
38 </div>
39 `;
40
41 exports[`should render correctly for SonarQube 1`] = `
42 <div
43   className="layout-page"
44 >
45   <Helmet
46     defer={false}
47     encodeSpecialCharacters={true}
48     title="Lorem | documentation.page_title.sonarqube"
49   >
50     <meta
51       content="noindex nofollow"
52       name="robots"
53     />
54   </Helmet>
55   <ScreenPositionHelper
56     className="layout-page-side-outer"
57   >
58     <Component />
59   </ScreenPositionHelper>
60   <div
61     className="layout-page-main"
62   >
63     <div
64       className="layout-page-main-inner"
65     >
66       <div
67         className="boxed-group"
68       >
69         <A11ySkipTarget
70           anchor="documentation_main"
71         />
72         <DocMarkdownBlock
73           className="documentation-content cut-margins boxed-group-inner"
74           content="Lorem ipsum dolor sit amet fredum"
75           stickyToc={true}
76           title="Lorem"
77         />
78       </div>
79     </div>
80   </div>
81 </div>
82 `;
83
84 exports[`should render correctly for SonarQube 2`] = `
85 <div
86   className="layout-page-side"
87   style={
88     Object {
89       "top": 0,
90     }
91   }
92 >
93   <div
94     className="layout-page-side-inner"
95   >
96     <div
97       className="layout-page-filters"
98     >
99       <div
100         className="documentation-page-header"
101       >
102         <A11ySkipTarget
103           anchor="documentation_menu"
104           label="documentation.skip_to_nav"
105           weight={10}
106         />
107         <Link
108           onlyActiveOnIndex={false}
109           style={Object {}}
110           to="/documentation/"
111         >
112           <h1>
113             documentation.page
114           </h1>
115         </Link>
116       </div>
117       <Sidebar
118         navigation={
119           Array [
120             Object {
121               "children": Array [
122                 "/lorem/ipsum/",
123                 "/analysis/languages/csharp/",
124                 Object {
125                   "children": Array [
126                     "/lorem/ipsum/dolor",
127                     Object {
128                       "children": Array [
129                         "/lorem/ipsum/sit",
130                       ],
131                       "title": "Grandchild category",
132                     },
133                     "/lorem/ipsum/amet",
134                   ],
135                   "title": "Child category",
136                 },
137               ],
138               "title": "SonarQube",
139             },
140           ]
141         }
142         pages={
143           Array [
144             Object {
145               "content": "Lorem ipsum dolor sit amet fredum",
146               "navTitle": undefined,
147               "relativeName": "Lorem",
148               "text": "Lorem ipsum dolor sit amet fredum",
149               "title": "Lorem",
150               "url": "/lorem/ipsum",
151             },
152             Object {
153               "content": "Lorem ipsum dolor sit amet fredum",
154               "navTitle": undefined,
155               "relativeName": "Lorem",
156               "text": "Lorem ipsum dolor sit amet fredum",
157               "title": "Lorem",
158               "url": "/analysis/languages/csharp/",
159             },
160           ]
161         }
162         splat="lorem/ipsum"
163       />
164     </div>
165   </div>
166 </div>
167 `;
168
169 exports[`should show a 404 if the page doesn't exist 1`] = `
170 <Fragment>
171   <Helmet
172     defer={true}
173     encodeSpecialCharacters={true}
174     title="documentation.page_title.sonarcloud"
175   >
176     <meta
177       content="noindex nofollow"
178       name="robots"
179     />
180   </Helmet>
181   <A11ySkipTarget
182     anchor="documentation_main"
183   />
184   <NotFound
185     withContainer={false}
186   />
187 </Fragment>
188 `;