]> source.dussan.org Git - sonarqube.git/blob
b5ea540762ff178fc46be2ad9c34d26db0d1bd61
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <header
5   className="page-header"
6 >
7   <h1
8     className="page-title"
9   >
10     quality_profiles.page
11   </h1>
12   <div
13     className="page-description markdown"
14   >
15     quality_profiles.intro1
16     <br />
17     quality_profiles.intro2
18     <withAppStateContext(DocLink)
19       className="spacer-left"
20       to="/instance-administration/quality-profiles/"
21     >
22       learn_more
23     </withAppStateContext(DocLink)>
24   </div>
25 </header>
26 `;
27
28 exports[`should render correctly 2`] = `
29 <header
30   className="page-header"
31 >
32   <h1
33     className="page-title"
34   >
35     quality_profiles.page
36   </h1>
37   <div
38     className="page-actions"
39   >
40     <Button
41       disabled={false}
42       id="quality-profiles-create"
43       onClick={[Function]}
44     >
45       create
46     </Button>
47     <Button
48       className="little-spacer-left"
49       id="quality-profiles-restore"
50       onClick={[Function]}
51     >
52       restore
53     </Button>
54   </div>
55   <div
56     className="page-description markdown"
57   >
58     quality_profiles.intro1
59     <br />
60     quality_profiles.intro2
61     <withAppStateContext(DocLink)
62       className="spacer-left"
63       to="/instance-administration/quality-profiles/"
64     >
65       learn_more
66     </withAppStateContext(DocLink)>
67   </div>
68 </header>
69 `;
70
71 exports[`should render correctly 3`] = `
72 <header
73   className="page-header"
74 >
75   <h1
76     className="page-title"
77   >
78     quality_profiles.page
79   </h1>
80   <div
81     className="page-actions"
82   >
83     <Button
84       disabled={true}
85       id="quality-profiles-create"
86       onClick={[Function]}
87     >
88       create
89     </Button>
90     <Button
91       className="little-spacer-left"
92       id="quality-profiles-restore"
93       onClick={[Function]}
94     >
95       restore
96     </Button>
97     <Alert
98       className="spacer-top"
99       variant="warning"
100     >
101       quality_profiles.no_languages_available
102     </Alert>
103   </div>
104   <div
105     className="page-description markdown"
106   >
107     quality_profiles.intro1
108     <br />
109     quality_profiles.intro2
110     <withAppStateContext(DocLink)
111       className="spacer-left"
112       to="/instance-administration/quality-profiles/"
113     >
114       learn_more
115     </withAppStateContext(DocLink)>
116   </div>
117 </header>
118 `;
119
120 exports[`should show a create form 1`] = `
121 <header
122   className="page-header"
123 >
124   <h1
125     className="page-title"
126   >
127     quality_profiles.page
128   </h1>
129   <div
130     className="page-actions"
131   >
132     <Button
133       disabled={false}
134       id="quality-profiles-create"
135       onClick={[Function]}
136     >
137       create
138     </Button>
139     <Button
140       className="little-spacer-left"
141       id="quality-profiles-restore"
142       onClick={[Function]}
143     >
144       restore
145     </Button>
146   </div>
147   <div
148     className="page-description markdown"
149   >
150     quality_profiles.intro1
151     <br />
152     quality_profiles.intro2
153     <withAppStateContext(DocLink)
154       className="spacer-left"
155       to="/instance-administration/quality-profiles/"
156     >
157       learn_more
158     </withAppStateContext(DocLink)>
159   </div>
160   <CreateProfileForm
161     languages={
162       [
163         {
164           "key": "css",
165           "name": "CSS",
166         },
167       ]
168     }
169     location={
170       {
171         "hash": "",
172         "key": "key",
173         "pathname": "/path",
174         "query": {},
175         "search": "",
176         "state": {},
177       }
178     }
179     onClose={[Function]}
180     onCreate={[Function]}
181     profiles={
182       [
183         {
184           "activeDeprecatedRuleCount": 2,
185           "activeRuleCount": 10,
186           "childrenCount": 0,
187           "depth": 1,
188           "isBuiltIn": false,
189           "isDefault": false,
190           "isInherited": false,
191           "key": "key",
192           "language": "js",
193           "languageName": "JavaScript",
194           "name": "name",
195           "projectCount": 3,
196         },
197       ]
198     }
199   />
200 </header>
201 `;
202
203 exports[`should show a restore form 1`] = `
204 <header
205   className="page-header"
206 >
207   <h1
208     className="page-title"
209   >
210     quality_profiles.page
211   </h1>
212   <div
213     className="page-actions"
214   >
215     <Button
216       disabled={false}
217       id="quality-profiles-create"
218       onClick={[Function]}
219     >
220       create
221     </Button>
222     <Button
223       className="little-spacer-left"
224       id="quality-profiles-restore"
225       onClick={[Function]}
226     >
227       restore
228     </Button>
229   </div>
230   <div
231     className="page-description markdown"
232   >
233     quality_profiles.intro1
234     <br />
235     quality_profiles.intro2
236     <withAppStateContext(DocLink)
237       className="spacer-left"
238       to="/instance-administration/quality-profiles/"
239     >
240       learn_more
241     </withAppStateContext(DocLink)>
242   </div>
243   <RestoreProfileForm
244     onClose={[Function]}
245     onRestore={[MockFunction]}
246   />
247 </header>
248 `;