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