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