]> source.dussan.org Git - sonarqube.git/blob
3fe5325afa76712391f13bd888e0429ef2d961d8
[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   <HelmetWrapper
8     defer={true}
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   <HelmetWrapper
46     defer={true}
47     encodeSpecialCharacters={true}
48     title="Lorem | documentation.page_title.sonarqube"
49   >
50     <meta
51       content="noindex nofollow"
52       name="robots"
53     />
54   </HelmetWrapper>
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         pages={
119           Array [
120             Object {
121               "content": "Lorem ipsum dolor sit amet fredum",
122               "navTitle": undefined,
123               "relativeName": "Lorem",
124               "text": "Lorem ipsum dolor sit amet fredum",
125               "title": "Lorem",
126               "url": "/lorem/ipsum",
127             },
128           ]
129         }
130         splat="lorem/ipsum"
131       />
132     </div>
133   </div>
134 </div>
135 `;
136
137 exports[`should show a 404 if the page doesn't exist 1`] = `
138 <Fragment>
139   <HelmetWrapper
140     defer={true}
141     encodeSpecialCharacters={true}
142     title="documentation.page_title.sonarcloud"
143   >
144     <meta
145       content="noindex nofollow"
146       name="robots"
147     />
148   </HelmetWrapper>
149   <A11ySkipTarget
150     anchor="documentation_main"
151   />
152   <NotFound
153     withContainer={false}
154   />
155 </Fragment>
156 `;