]> source.dussan.org Git - sonarqube.git/blob
e642a0c6573118e572d415404bc90a00082722f7
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Fragment>
5   <Suggestions
6     suggestions="project_baseline"
7   />
8   <div
9     className="page page-limited"
10   >
11     <AppHeader
12       canAdmin={true}
13     />
14     <div
15       className="panel-white project-baseline"
16     >
17       <h2>
18         project_baseline.default_setting
19       </h2>
20       <ProjectBaselineSelector
21         analysis=""
22         branch={
23           Object {
24             "analysisDate": "2018-01-01",
25             "excludedFromPurge": true,
26             "isMain": false,
27             "name": "branch-6.7",
28           }
29         }
30         branchList={
31           Array [
32             Object {
33               "analysisDate": "2018-01-01",
34               "excludedFromPurge": true,
35               "isMain": true,
36               "name": "master",
37             },
38           ]
39         }
40         branchesEnabled={true}
41         component="my-project"
42         currentSetting="PREVIOUS_VERSION"
43         days="30"
44         generalSetting={
45           Object {
46             "type": "PREVIOUS_VERSION",
47           }
48         }
49         onCancel={[Function]}
50         onSelectAnalysis={[Function]}
51         onSelectDays={[Function]}
52         onSelectReferenceBranch={[Function]}
53         onSelectSetting={[Function]}
54         onSubmit={[Function]}
55         onToggleSpecificSetting={[Function]}
56         overrideGeneralSetting={true}
57         referenceBranch="master"
58         saving={false}
59         selected="PREVIOUS_VERSION"
60       />
61       <div
62         className="spacer-top invisible"
63       >
64         <span
65           className="text-success"
66         >
67           <AlertSuccessIcon
68             className="spacer-right"
69           />
70           settings.state.saved
71         </span>
72       </div>
73       <div
74         className="huge-spacer-top branch-baseline-selector"
75       >
76         <hr />
77         <h2>
78           project_baseline.configure_branches
79         </h2>
80         <BranchList
81           branchList={
82             Array [
83               Object {
84                 "analysisDate": "2018-01-01",
85                 "excludedFromPurge": true,
86                 "isMain": true,
87                 "name": "master",
88               },
89             ]
90           }
91           component={
92             Object {
93               "breadcrumbs": Array [],
94               "key": "my-project",
95               "name": "MyProject",
96               "qualifier": "TRK",
97               "qualityGate": Object {
98                 "isDefault": true,
99                 "key": "30",
100                 "name": "Sonar way",
101               },
102               "qualityProfiles": Array [
103                 Object {
104                   "deleted": false,
105                   "key": "my-qp",
106                   "language": "ts",
107                   "name": "Sonar way",
108                 },
109               ],
110               "tags": Array [],
111             }
112           }
113           inheritedSetting={
114             Object {
115               "type": "PREVIOUS_VERSION",
116               "value": undefined,
117             }
118           }
119         />
120       </div>
121     </div>
122   </div>
123 </Fragment>
124 `;
125
126 exports[`should render correctly: without branch support 1`] = `
127 <Fragment>
128   <Suggestions
129     suggestions="project_baseline"
130   />
131   <div
132     className="page page-limited"
133   >
134     <AppHeader
135       canAdmin={true}
136     />
137     <div
138       className="panel-white project-baseline"
139     >
140       <ProjectBaselineSelector
141         analysis=""
142         branch={
143           Object {
144             "analysisDate": "2018-01-01",
145             "excludedFromPurge": true,
146             "isMain": false,
147             "name": "branch-6.7",
148           }
149         }
150         branchList={
151           Array [
152             Object {
153               "analysisDate": "2018-01-01",
154               "excludedFromPurge": true,
155               "isMain": true,
156               "name": "master",
157             },
158           ]
159         }
160         branchesEnabled={false}
161         component="my-project"
162         currentSetting="PREVIOUS_VERSION"
163         days="30"
164         generalSetting={
165           Object {
166             "type": "PREVIOUS_VERSION",
167           }
168         }
169         onCancel={[Function]}
170         onSelectAnalysis={[Function]}
171         onSelectDays={[Function]}
172         onSelectReferenceBranch={[Function]}
173         onSelectSetting={[Function]}
174         onSubmit={[Function]}
175         onToggleSpecificSetting={[Function]}
176         overrideGeneralSetting={true}
177         referenceBranch="master"
178         saving={false}
179         selected="PREVIOUS_VERSION"
180       />
181       <div
182         className="spacer-top invisible"
183       >
184         <span
185           className="text-success"
186         >
187           <AlertSuccessIcon
188             className="spacer-right"
189           />
190           settings.state.saved
191         </span>
192       </div>
193     </div>
194   </div>
195 </Fragment>
196 `;