]> source.dussan.org Git - sonarqube.git/blob
50addeb1eab88eb932421397694abe8ab16628b0
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Fragment>
5   <Helmet
6     defer={true}
7     encodeSpecialCharacters={true}
8     title="onboarding.create_project.header"
9     titleTemplate="%s"
10   />
11   <div
12     className="page page-limited huge-spacer-top huge-spacer-bottom"
13   >
14     <header
15       className="page-header huge-spacer-bottom"
16     >
17       <h1
18         className="page-title huge"
19       >
20         <strong>
21           onboarding.create_project.header
22         </strong>
23       </h1>
24     </header>
25     <DeferredSpinner
26       timeout={100}
27     />
28   </div>
29 </Fragment>
30 `;
31
32 exports[`should render correctly 2`] = `
33 <Fragment>
34   <Helmet
35     defer={true}
36     encodeSpecialCharacters={true}
37     title="onboarding.create_project.header"
38     titleTemplate="%s"
39   />
40   <div
41     className="page page-limited huge-spacer-top huge-spacer-bottom"
42   >
43     <header
44       className="page-header huge-spacer-bottom"
45     >
46       <h1
47         className="page-title huge"
48       >
49         <strong>
50           onboarding.create_project.header
51         </strong>
52       </h1>
53     </header>
54     <Tabs
55       onChange={[Function]}
56       selected="auto"
57       tabs={
58         Array [
59           Object {
60             "key": "auto",
61             "node": "onboarding.create_project.select_repositories",
62           },
63           Object {
64             "key": "manual",
65             "node": "onboarding.create_project.setup_manually",
66           },
67         ]
68       }
69     />
70     <AutoProjectCreate
71       almApplication={
72         Object {
73           "backgroundColor": "blue",
74           "iconPath": "icon/path",
75           "installationUrl": "https://alm.installation.url",
76           "key": "github",
77           "name": "GitHub",
78         }
79       }
80       boundOrganizations={
81         Array [
82           Object {
83             "actions": Object {
84               "admin": false,
85               "provision": true,
86             },
87             "alm": Object {
88               "key": "github",
89               "membersSync": false,
90               "personal": false,
91               "url": "https://github.com/foo",
92             },
93             "key": "bar",
94             "name": "Bar",
95           },
96         ]
97       }
98       onProjectCreate={[Function]}
99     />
100   </div>
101 </Fragment>
102 `;
103
104 exports[`should render with Custom creation only 1`] = `
105 <Fragment>
106   <Helmet
107     defer={true}
108     encodeSpecialCharacters={true}
109     title="onboarding.create_project.header"
110     titleTemplate="%s"
111   />
112   <div
113     className="page page-limited huge-spacer-top huge-spacer-bottom"
114   >
115     <header
116       className="page-header huge-spacer-bottom"
117     >
118       <h1
119         className="page-title huge"
120       >
121         <strong>
122           onboarding.create_project.header
123         </strong>
124       </h1>
125     </header>
126     <ManualProjectCreate
127       currentUser={
128         Object {
129           "externalProvider": "microsoft",
130           "groups": Array [],
131           "isLoggedIn": true,
132           "login": "foo",
133           "name": "Foo",
134           "scmAccounts": Array [],
135         }
136       }
137       onProjectCreate={[Function]}
138       userOrganizations={
139         Array [
140           Object {
141             "actions": Object {
142               "admin": false,
143               "provision": true,
144             },
145             "key": "foo",
146             "name": "Foo",
147           },
148           Object {
149             "actions": Object {
150               "admin": false,
151               "provision": true,
152             },
153             "alm": Object {
154               "key": "github",
155               "membersSync": false,
156               "personal": false,
157               "url": "https://github.com/foo",
158             },
159             "key": "bar",
160             "name": "Bar",
161           },
162         ]
163       }
164     />
165   </div>
166 </Fragment>
167 `;
168
169 exports[`should switch tabs 1`] = `
170 <Fragment>
171   <Helmet
172     defer={true}
173     encodeSpecialCharacters={true}
174     title="onboarding.create_project.header"
175     titleTemplate="%s"
176   />
177   <div
178     className="page page-limited huge-spacer-top huge-spacer-bottom"
179   >
180     <header
181       className="page-header huge-spacer-bottom"
182     >
183       <h1
184         className="page-title huge"
185       >
186         <strong>
187           onboarding.create_project.header
188         </strong>
189       </h1>
190     </header>
191     <Tabs
192       onChange={[Function]}
193       selected="auto"
194       tabs={
195         Array [
196           Object {
197             "key": "auto",
198             "node": "onboarding.create_project.select_repositories",
199           },
200           Object {
201             "key": "manual",
202             "node": "onboarding.create_project.setup_manually",
203           },
204         ]
205       }
206     />
207     <AutoProjectCreate
208       almApplication={
209         Object {
210           "backgroundColor": "blue",
211           "iconPath": "icon/path",
212           "installationUrl": "https://alm.installation.url",
213           "key": "github",
214           "name": "GitHub",
215         }
216       }
217       boundOrganizations={
218         Array [
219           Object {
220             "actions": Object {
221               "admin": false,
222               "provision": true,
223             },
224             "alm": Object {
225               "key": "github",
226               "membersSync": false,
227               "personal": false,
228               "url": "https://github.com/foo",
229             },
230             "key": "bar",
231             "name": "Bar",
232           },
233         ]
234       }
235       onProjectCreate={[Function]}
236     />
237   </div>
238 </Fragment>
239 `;