]> source.dussan.org Git - sonarqube.git/blob
0feced6e7c721a871aad80610845542390e50d35
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders correctly 1`] = `
4 <div
5   className="page page-limited"
6 >
7   <withRouter(TutorialSelection)
8     component={
9       Object {
10         "breadcrumbs": Array [],
11         "key": "my-project",
12         "name": "MyProject",
13         "qualifier": "TRK",
14         "qualityGate": Object {
15           "isDefault": true,
16           "key": "30",
17           "name": "Sonar way",
18         },
19         "qualityProfiles": Array [
20           Object {
21             "deleted": false,
22             "key": "my-qp",
23             "language": "ts",
24             "name": "Sonar way",
25           },
26         ],
27         "tags": Array [],
28         "version": "0.0.1",
29       }
30     }
31     currentUser={
32       Object {
33         "groups": Array [],
34         "isLoggedIn": true,
35         "login": "luke",
36         "name": "Skywalker",
37         "scmAccounts": Array [],
38       }
39     }
40     willRefreshAutomatically={true}
41   />
42 </div>
43 `;
44
45 exports[`renders correctly 2`] = `
46 <div
47   className="page page-limited"
48 />
49 `;
50
51 exports[`renders correctly 3`] = `
52 <div
53   className="page page-limited"
54 >
55   <Alert
56     variant="warning"
57   >
58     <FormattedMessage
59       defaultMessage="provisioning.no_analysis_on_main_branch"
60       id="provisioning.no_analysis_on_main_branch"
61       values={
62         Object {
63           "branchName": "master",
64         }
65       }
66     />
67   </Alert>
68 </div>
69 `;
70
71 exports[`renders correctly 4`] = `
72 <div
73   className="page page-limited"
74 >
75   <withRouter(TutorialSelection)
76     component={
77       Object {
78         "breadcrumbs": Array [],
79         "key": "my-project",
80         "name": "MyProject",
81         "qualifier": "TRK",
82         "qualityGate": Object {
83           "isDefault": true,
84           "key": "30",
85           "name": "Sonar way",
86         },
87         "qualityProfiles": Array [
88           Object {
89             "deleted": false,
90             "key": "my-qp",
91             "language": "ts",
92             "name": "Sonar way",
93           },
94         ],
95         "tags": Array [],
96         "version": "0.0.1",
97       }
98     }
99     currentUser={
100       Object {
101         "groups": Array [],
102         "isLoggedIn": true,
103         "login": "luke",
104         "name": "Skywalker",
105         "scmAccounts": Array [],
106       }
107     }
108     projectBinding={
109       Object {
110         "alm": "github",
111         "key": "foo",
112         "monorepo": true,
113         "repository": "PROJECT_KEY",
114       }
115     }
116     willRefreshAutomatically={true}
117   />
118 </div>
119 `;
120
121 exports[`should not render the tutorial for applications 1`] = `
122 <div
123   className="page page-limited"
124 >
125   <Alert
126     variant="warning"
127   >
128     provisioning.no_analysis.application
129   </Alert>
130 </div>
131 `;
132
133 exports[`should render another message when there are branches 1`] = `
134 <div
135   className="page page-limited"
136 >
137   <Alert
138     variant="warning"
139   >
140     <FormattedMessage
141       defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
142       id="provisioning.no_analysis_on_main_branch.bad_configuration"
143       values={
144         Object {
145           "branchName": "master",
146           "branchType": "branches.main_branch",
147         }
148       }
149     />
150   </Alert>
151 </div>
152 `;
153
154 exports[`should render another message when there are branches 2`] = `
155 <div
156   className="page page-limited"
157 >
158   <Alert
159     variant="warning"
160   >
161     <FormattedMessage
162       defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
163       id="provisioning.no_analysis_on_main_branch.bad_configuration"
164       values={
165         Object {
166           "branchName": "master",
167           "branchType": "branches.main_branch",
168         }
169       }
170     />
171   </Alert>
172 </div>
173 `;