]> source.dussan.org Git - sonarqube.git/blob
204c5941596357c327e83ed3dc921eb4c4304d4b
[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 `;
76
77 exports[`should render another message when there are branches 1`] = `
78 <div
79   className="page page-limited"
80 >
81   <Alert
82     variant="warning"
83   >
84     <FormattedMessage
85       defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
86       id="provisioning.no_analysis_on_main_branch.bad_configuration"
87       values={
88         Object {
89           "branchName": "master",
90           "branchType": "branches.main_branch",
91         }
92       }
93     />
94   </Alert>
95 </div>
96 `;
97
98 exports[`should render another message when there are branches 2`] = `
99 <div
100   className="page page-limited"
101 >
102   <Alert
103     variant="warning"
104   >
105     <FormattedMessage
106       defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
107       id="provisioning.no_analysis_on_main_branch.bad_configuration"
108       values={
109         Object {
110           "branchName": "master",
111           "branchType": "branches.main_branch",
112         }
113       }
114     />
115   </Alert>
116 </div>
117 `;