]> source.dussan.org Git - sonarqube.git/blob
abbcb357af1b4aceda3a78ed880f47d3c8bb84bc
[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   />
41 </div>
42 `;
43
44 exports[`renders correctly 2`] = `
45 <div
46   className="page page-limited"
47 />
48 `;
49
50 exports[`renders correctly 3`] = `
51 <div
52   className="page page-limited"
53 >
54   <Alert
55     variant="warning"
56   >
57     <FormattedMessage
58       defaultMessage="provisioning.no_analysis_on_main_branch"
59       id="provisioning.no_analysis_on_main_branch"
60       values={
61         Object {
62           "branchName": "master",
63         }
64       }
65     />
66   </Alert>
67 </div>
68 `;
69
70 exports[`should not render the tutorial for applications 1`] = `
71 <div
72   className="page page-limited"
73 >
74   <Alert
75     variant="warning"
76   >
77     provisioning.no_analysis.application
78   </Alert>
79 </div>
80 `;
81
82 exports[`should render another message when there are branches 1`] = `
83 <div
84   className="page page-limited"
85 >
86   <Alert
87     variant="warning"
88   >
89     <FormattedMessage
90       defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
91       id="provisioning.no_analysis_on_main_branch.bad_configuration"
92       values={
93         Object {
94           "branchName": "master",
95           "branchType": "branches.main_branch",
96         }
97       }
98     />
99   </Alert>
100 </div>
101 `;
102
103 exports[`should render another message when there are branches 2`] = `
104 <div
105   className="page page-limited"
106 >
107   <Alert
108     variant="warning"
109   >
110     <FormattedMessage
111       defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
112       id="provisioning.no_analysis_on_main_branch.bad_configuration"
113       values={
114         Object {
115           "branchName": "master",
116           "branchType": "branches.main_branch",
117         }
118       }
119     />
120   </Alert>
121 </div>
122 `;