]> source.dussan.org Git - sonarqube.git/blob
c7478b0de430ebe42c71871d975bcb100318566d
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renderOption should render correctly: branch 1`] = `
4 <React.Fragment>
5   <span>
6     branch-7.4
7   </span>
8 </React.Fragment>
9 `;
10
11 exports[`renderOption should render correctly: branch doesn't exist 1`] = `
12 <Tooltip
13   overlay="baseline.reference_branch.does_not_exist.branch-nope"
14 >
15   <span>
16     branch-nope
17      
18     <AlertErrorIcon />
19   </span>
20 </Tooltip>
21 `;
22
23 exports[`renderOption should render correctly: disabled 1`] = `
24 <React.Fragment>
25   <span
26     title="baseline.reference_branch.cannot_be_itself"
27   >
28     disabled
29   </span>
30 </React.Fragment>
31 `;
32
33 exports[`renderOption should render correctly: main 1`] = `
34 <React.Fragment>
35   <span>
36     master
37   </span>
38   <div
39     className="badge spacer-left"
40   >
41     branches.main_branch
42   </div>
43 </React.Fragment>
44 `;
45
46 exports[`should render correctly: Branch level - no other branches 1`] = `
47 <RadioCard
48   onClick={[Function]}
49   selected={true}
50   title="baseline.reference_branch"
51 >
52   <p>
53     baseline.reference_branch.description
54   </p>
55   <div
56     className="big-spacer-top display-flex-column"
57   >
58     <label
59       className="text-middle"
60       htmlFor="reference_branch"
61     >
62       <strong>
63         baseline.reference_branch.choose
64       </strong>
65       <em
66         className="mandatory"
67       >
68         *
69       </em>
70     </label>
71     <SearchSelect
72       autofocus={false}
73       className="little-spacer-top spacer-bottom"
74       defaultOptions={
75         Array [
76           Object {
77             "isMain": true,
78             "value": "master",
79           },
80         ]
81       }
82       minimumQueryLength={1}
83       onSearch={[Function]}
84       onSelect={[Function]}
85       renderOption={[Function]}
86       value={
87         Object {
88           "isMain": true,
89           "value": "master",
90         }
91       }
92     />
93   </div>
94 </RadioCard>
95 `;
96
97 exports[`should render correctly: Branch level 1`] = `
98 <RadioCard
99   onClick={[Function]}
100   selected={true}
101   title="baseline.reference_branch"
102 >
103   <p>
104     baseline.reference_branch.description
105   </p>
106   <div
107     className="big-spacer-top display-flex-column"
108   >
109     <label
110       className="text-middle"
111       htmlFor="reference_branch"
112     >
113       <strong>
114         baseline.reference_branch.choose
115       </strong>
116       <em
117         className="mandatory"
118       >
119         *
120       </em>
121     </label>
122     <SearchSelect
123       autofocus={false}
124       className="little-spacer-top spacer-bottom"
125       defaultOptions={
126         Array [
127           Object {
128             "isMain": true,
129             "value": "master",
130           },
131           Object {
132             "isMain": false,
133             "value": "branch-7.9",
134           },
135         ]
136       }
137       minimumQueryLength={1}
138       onSearch={[Function]}
139       onSelect={[Function]}
140       renderOption={[Function]}
141       value={
142         Object {
143           "isMain": true,
144           "value": "master",
145         }
146       }
147     />
148   </div>
149 </RadioCard>
150 `;
151
152 exports[`should render correctly: Project level 1`] = `
153 <RadioCard
154   onClick={[Function]}
155   selected={true}
156   title="baseline.reference_branch"
157 >
158   <p>
159     baseline.reference_branch.description
160   </p>
161   <p
162     className="spacer-top"
163   >
164     baseline.reference_branch.description2
165   </p>
166   <div
167     className="big-spacer-top display-flex-column"
168   >
169     <label
170       className="text-middle"
171       htmlFor="reference_branch"
172     >
173       <strong>
174         baseline.reference_branch.choose
175       </strong>
176       <em
177         className="mandatory"
178       >
179         *
180       </em>
181     </label>
182     <SearchSelect
183       autofocus={false}
184       className="little-spacer-top spacer-bottom"
185       defaultOptions={
186         Array [
187           Object {
188             "isMain": true,
189             "value": "master",
190           },
191           Object {
192             "isMain": false,
193             "value": "branch-7.9",
194           },
195         ]
196       }
197       minimumQueryLength={1}
198       onSearch={[Function]}
199       onSelect={[Function]}
200       renderOption={[Function]}
201       value={
202         Object {
203           "isMain": true,
204           "value": "master",
205         }
206       }
207     />
208   </div>
209 </RadioCard>
210 `;