]> source.dussan.org Git - sonarqube.git/blob
dee9ad781a1abfb7b0b722ca2fc5a57508eb415d
[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   <AzureProjectsList
68     loadingRepositories={Object {}}
69     onOpenProject={[MockFunction]}
70     projects={
71       Array [
72         Object {
73           "key": "azure-project-1",
74           "name": "Azure Project",
75         },
76       ]
77     }
78     repositories={
79       Object {
80         "azure-project-1": Array [
81           Object {
82             "name": "Azure repo 1",
83             "projectName": "Azure Project",
84           },
85         ],
86       }
87     }
88   />
89 </Fragment>
90 `;
91
92 exports[`should render correctly: token form 1`] = `
93 <Fragment>
94   <CreateProjectPageHeader
95     title={
96       <span
97         className="text-middle"
98       >
99         <img
100           alt=""
101           className="spacer-right"
102           height="24"
103           src="/images/alm/azure.svg"
104         />
105         onboarding.create_project.azure.title
106       </span>
107     }
108   />
109   <div
110     className="display-flex-justify-center"
111   >
112     <AzurePersonalAccessTokenForm
113       almSetting={
114         Object {
115           "alm": "azure",
116           "key": "key",
117         }
118       }
119       onPersonalAccessTokenCreate={[MockFunction]}
120       submitting={false}
121       validationFailed={false}
122     />
123   </div>
124 </Fragment>
125 `;