]> source.dussan.org Git - sonarqube.git/blob
4d6058f355aa80a94b9d26bea555b2b8d0d79ad2
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: loading 1`] = `
4 <Fragment>
5   <CreateProjectPageHeader
6     title={
7       <span
8         className="text-middle"
9       >
10         <img
11           alt=""
12           className="spacer-right"
13           height="24"
14           src="/images/alm/azure.svg"
15         />
16         onboarding.create_project.azure.title
17       </span>
18     }
19   />
20   <i
21     className="spinner"
22   />
23 </Fragment>
24 `;
25
26 exports[`should render correctly: no settings 1`] = `
27 <Fragment>
28   <CreateProjectPageHeader
29     title={
30       <span
31         className="text-middle"
32       >
33         <img
34           alt=""
35           className="spacer-right"
36           height="24"
37           src="/images/alm/azure.svg"
38         />
39         onboarding.create_project.azure.title
40       </span>
41     }
42   />
43   <WrongBindingCountAlert
44     alm="azure"
45     canAdmin={true}
46   />
47 </Fragment>
48 `;
49
50 exports[`should render correctly: project list 1`] = `
51 <Fragment>
52   <CreateProjectPageHeader
53     title={
54       <span
55         className="text-middle"
56       >
57         <img
58           alt=""
59           className="spacer-right"
60           height="24"
61           src="/images/alm/azure.svg"
62         />
63         onboarding.create_project.azure.title
64       </span>
65     }
66   />
67   <div
68     className="huge-spacer-bottom"
69   >
70     <SearchBox
71       onChange={[MockFunction]}
72       placeholder="onboarding.create_project.search_repositories_by_name"
73     />
74   </div>
75   <DeferredSpinner
76     loading={false}
77   >
78     <AzureProjectsList
79       loadingRepositories={Object {}}
80       onOpenProject={[MockFunction]}
81       projects={
82         Array [
83           Object {
84             "key": "azure-project-1",
85             "name": "Azure Project",
86           },
87         ]
88       }
89       repositories={
90         Object {
91           "azure-project-1": Array [
92             Object {
93               "name": "Azure repo 1",
94               "projectName": "Azure Project",
95             },
96           ],
97         }
98       }
99     />
100   </DeferredSpinner>
101 </Fragment>
102 `;
103
104 exports[`should render correctly: token form 1`] = `
105 <Fragment>
106   <CreateProjectPageHeader
107     title={
108       <span
109         className="text-middle"
110       >
111         <img
112           alt=""
113           className="spacer-right"
114           height="24"
115           src="/images/alm/azure.svg"
116         />
117         onboarding.create_project.azure.title
118       </span>
119     }
120   />
121   <div
122     className="display-flex-justify-center"
123   >
124     <AzurePersonalAccessTokenForm
125       almSetting={
126         Object {
127           "alm": "azure",
128           "key": "key",
129         }
130       }
131       onPersonalAccessTokenCreate={[MockFunction]}
132       submitting={false}
133       validationFailed={false}
134     />
135   </div>
136 </Fragment>
137 `;