]> source.dussan.org Git - sonarqube.git/blob
68879175e51d2e78bd62ed7b213ec045b9ba41ad
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: loading 1`] = `
4 <Fragment>
5   <CreateProjectPageHeader
6     additionalActions={
7       <div
8         className="display-flex-center pull-right"
9       >
10         <DeferredSpinner
11           className="spacer-right"
12           loading={false}
13         />
14         <Button
15           className="button-large button-primary"
16           disabled={true}
17           onClick={[MockFunction]}
18         >
19           onboarding.create_project.import_selected_repo
20         </Button>
21       </div>
22     }
23     title={
24       <span
25         className="text-middle"
26       >
27         <img
28           alt=""
29           className="spacer-right"
30           height="24"
31           src="/images/alm/azure.svg"
32         />
33         onboarding.create_project.azure.title
34       </span>
35     }
36   />
37   <i
38     className="spinner"
39   />
40 </Fragment>
41 `;
42
43 exports[`should render correctly: no settings 1`] = `
44 <Fragment>
45   <CreateProjectPageHeader
46     additionalActions={
47       <div
48         className="display-flex-center pull-right"
49       >
50         <DeferredSpinner
51           className="spacer-right"
52           loading={false}
53         />
54         <Button
55           className="button-large button-primary"
56           disabled={true}
57           onClick={[MockFunction]}
58         >
59           onboarding.create_project.import_selected_repo
60         </Button>
61       </div>
62     }
63     title={
64       <span
65         className="text-middle"
66       >
67         <img
68           alt=""
69           className="spacer-right"
70           height="24"
71           src="/images/alm/azure.svg"
72         />
73         onboarding.create_project.azure.title
74       </span>
75     }
76   />
77   <WrongBindingCountAlert
78     alm="azure"
79     canAdmin={true}
80   />
81 </Fragment>
82 `;
83
84 exports[`should render correctly: project list 1`] = `
85 <Fragment>
86   <CreateProjectPageHeader
87     additionalActions={
88       <div
89         className="display-flex-center pull-right"
90       >
91         <DeferredSpinner
92           className="spacer-right"
93           loading={false}
94         />
95         <Button
96           className="button-large button-primary"
97           disabled={true}
98           onClick={[MockFunction]}
99         >
100           onboarding.create_project.import_selected_repo
101         </Button>
102       </div>
103     }
104     title={
105       <span
106         className="text-middle"
107       >
108         <img
109           alt=""
110           className="spacer-right"
111           height="24"
112           src="/images/alm/azure.svg"
113         />
114         onboarding.create_project.azure.title
115       </span>
116     }
117   />
118   <div
119     className="huge-spacer-bottom"
120   >
121     <SearchBox
122       onChange={[MockFunction]}
123       placeholder="onboarding.create_project.search_repositories_by_name"
124     />
125   </div>
126   <DeferredSpinner
127     loading={false}
128   >
129     <AzureProjectsList
130       importing={false}
131       loadingRepositories={Object {}}
132       onOpenProject={[MockFunction]}
133       onSelectRepository={[MockFunction]}
134       projects={
135         Array [
136           Object {
137             "description": "Azure Project",
138             "name": "azure-project-1",
139           },
140         ]
141       }
142       repositories={
143         Object {
144           "azure-project-1": Array [
145             Object {
146               "name": "Azure repo 1",
147               "projectName": "Azure Project",
148             },
149           ],
150         }
151       }
152     />
153   </DeferredSpinner>
154 </Fragment>
155 `;
156
157 exports[`should render correctly: token form 1`] = `
158 <Fragment>
159   <CreateProjectPageHeader
160     additionalActions={false}
161     title={
162       <span
163         className="text-middle"
164       >
165         <img
166           alt=""
167           className="spacer-right"
168           height="24"
169           src="/images/alm/azure.svg"
170         />
171         onboarding.create_project.azure.title
172       </span>
173     }
174   />
175   <div
176     className="display-flex-justify-center"
177   >
178     <AzurePersonalAccessTokenForm
179       almSetting={
180         Object {
181           "alm": "azure",
182           "key": "key",
183         }
184       }
185       onPersonalAccessTokenCreate={[MockFunction]}
186       submitting={false}
187       validationFailed={false}
188     />
189   </div>
190 </Fragment>
191 `;