]> source.dussan.org Git - sonarqube.git/blob
ffd95a3904c9bdcb2269e1bd8ea5a48a24ee2656
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display the list of repositories 1`] = `
4 <div
5   className="create-project"
6 >
7   <div
8     className="flex-1 huge-spacer-right"
9   >
10     <div
11       className="spacer-bottom create-project-actions"
12     >
13       <div />
14     </div>
15     <DeferredSpinner
16       loading={true}
17       timeout={100}
18     >
19       <ul>
20         <li
21           className="big-spacer-top note"
22         >
23           onboarding.create_project.no_repositories
24         </li>
25       </ul>
26     </DeferredSpinner>
27   </div>
28   <div
29     className=""
30   >
31     <div
32       className="create-project-side-sticky"
33     >
34       <SetupProjectBox
35         onProjectCreate={[MockFunction]}
36         onProvisionFail={[Function]}
37         organization={
38           Object {
39             "alm": Object {
40               "key": "github",
41               "membersSync": false,
42               "personal": false,
43               "url": "https://github.com/foo",
44             },
45             "key": "foo",
46             "name": "Foo",
47             "subscription": "FREE",
48           }
49         }
50         selectedRepositories={Array []}
51       />
52     </div>
53   </div>
54 </div>
55 `;
56
57 exports[`should display the list of repositories 2`] = `
58 <div
59   className="create-project"
60 >
61   <div
62     className="flex-1 huge-spacer-right"
63   >
64     <div
65       className="spacer-bottom create-project-actions"
66     >
67       <div>
68         <Checkbox
69           checked={false}
70           disabled={false}
71           onCheck={[Function]}
72           thirdState={false}
73         >
74           onboarding.create_project.select_all_repositories
75         </Checkbox>
76       </div>
77     </div>
78     <DeferredSpinner
79       loading={false}
80       timeout={100}
81     >
82       <ul>
83         <AlmRepositoryItem
84           disabled={false}
85           highlightUpgradeBox={[Function]}
86           identityProvider={
87             Object {
88               "backgroundColor": "blue",
89               "iconPath": "icon/path",
90               "installationUrl": "https://alm.installation.url",
91               "key": "github",
92               "name": "GitHub",
93             }
94           }
95           key="github/cool"
96           repository={
97             Object {
98               "installationKey": "github/cool",
99               "label": "Cool Project",
100             }
101           }
102           selected={false}
103           toggleRepository={[Function]}
104         />
105         <AlmRepositoryItem
106           disabled={false}
107           highlightUpgradeBox={[Function]}
108           identityProvider={
109             Object {
110               "backgroundColor": "blue",
111               "iconPath": "icon/path",
112               "installationUrl": "https://alm.installation.url",
113               "key": "github",
114               "name": "GitHub",
115             }
116           }
117           key="github/awesome"
118           repository={
119             Object {
120               "installationKey": "github/awesome",
121               "label": "Awesome Project",
122             }
123           }
124           selected={false}
125           toggleRepository={[Function]}
126         />
127       </ul>
128     </DeferredSpinner>
129   </div>
130   <div
131     className=""
132   >
133     <div
134       className="create-project-side-sticky"
135     >
136       <SetupProjectBox
137         onProjectCreate={[MockFunction]}
138         onProvisionFail={[Function]}
139         organization={
140           Object {
141             "alm": Object {
142               "key": "github",
143               "membersSync": false,
144               "personal": false,
145               "url": "https://github.com/foo",
146             },
147             "key": "foo",
148             "name": "Foo",
149             "subscription": "FREE",
150           }
151         }
152         selectedRepositories={Array []}
153       />
154     </div>
155   </div>
156 </div>
157 `;
158
159 exports[`should display the organization upgrade box 1`] = `
160 <UpgradeOrganizationBox
161   className=""
162   onOrganizationUpgrade={[Function]}
163   organization={
164     Object {
165       "actions": Object {
166         "admin": true,
167       },
168       "alm": Object {
169         "key": "github",
170         "membersSync": false,
171         "personal": false,
172         "url": "https://github.com/foo",
173       },
174       "key": "foo",
175       "name": "Foo",
176       "subscription": "FREE",
177     }
178   }
179 />
180 `;
181
182 exports[`should select all repositories 1`] = `
183 Object {
184   "key-1": Object {
185     "installationKey": "key-1",
186     "label": "Project 1",
187   },
188 }
189 `;