]> source.dussan.org Git - sonarqube.git/blob
b26d0feb600ea65f21dd557c9de77178d62811d1
[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   <AnalyzeTutorial
8     component={
9       Object {
10         "breadcrumbs": Array [],
11         "key": "my-project",
12         "name": "MyProject",
13         "organization": "foo",
14         "qualifier": "TRK",
15         "qualityGate": Object {
16           "isDefault": true,
17           "key": "30",
18           "name": "Sonar way",
19         },
20         "qualityProfiles": Array [
21           Object {
22             "deleted": false,
23             "key": "my-qp",
24             "language": "ts",
25             "name": "Sonar way",
26           },
27         ],
28         "tags": Array [],
29         "version": "0.0.1",
30       }
31     }
32     currentUser={
33       Object {
34         "groups": Array [],
35         "isLoggedIn": true,
36         "login": "luke",
37         "name": "Skywalker",
38         "scmAccounts": Array [],
39       }
40     }
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[`should not render the tutorial for applications 1`] = `
72 <div
73   className="page page-limited"
74 >
75   <Alert
76     variant="warning"
77   >
78     provisioning.no_analysis.application
79   </Alert>
80 </div>
81 `;
82
83 exports[`should render another message when there are branches 1`] = `
84 <div
85   className="page page-limited"
86 >
87   <Alert
88     variant="warning"
89   >
90     <FormattedMessage
91       defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
92       id="provisioning.no_analysis_on_main_branch.bad_configuration"
93       values={
94         Object {
95           "branchName": "master",
96           "branchType": "branches.main_branch",
97         }
98       }
99     />
100   </Alert>
101 </div>
102 `;
103
104 exports[`should render another message when there are branches 2`] = `
105 <div
106   className="page page-limited"
107 >
108   <Alert
109     variant="warning"
110   >
111     <FormattedMessage
112       defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
113       id="provisioning.no_analysis_on_main_branch.bad_configuration"
114       values={
115         Object {
116           "branchName": "master",
117           "branchType": "branches.main_branch",
118         }
119       }
120     />
121   </Alert>
122 </div>
123 `;