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