]> source.dussan.org Git - sonarqube.git/blob
666c4bb4d4741faf372665fc44b16e060b89eec1
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should open the popup when the button is clicked 1`] = `
4 Array [
5   Array [
6     "set-severity",
7     undefined,
8   ],
9 ]
10 `;
11
12 exports[`should open the popup when the button is clicked 2`] = `
13 <div
14   className="dropdown"
15 >
16   <Toggler
17     onRequestClose={[Function]}
18     open={true}
19     overlay={
20       <SetSeverityPopup
21         issue={
22           Object {
23             "severity": "BLOCKER",
24           }
25         }
26         onSelect={[Function]}
27       />
28     }
29   >
30     <ButtonLink
31       className="issue-action issue-action-with-options js-issue-set-severity"
32       onClick={[Function]}
33     >
34       <SeverityHelper
35         className="issue-meta-label"
36         severity="BLOCKER"
37       />
38       <DropdownIcon
39         className="little-spacer-left"
40       />
41     </ButtonLink>
42   </Toggler>
43 </div>
44 `;
45
46 exports[`should render with the action 1`] = `
47 <div
48   className="dropdown"
49 >
50   <Toggler
51     onRequestClose={[Function]}
52     open={false}
53     overlay={
54       <SetSeverityPopup
55         issue={
56           Object {
57             "severity": "BLOCKER",
58           }
59         }
60         onSelect={[Function]}
61       />
62     }
63   >
64     <ButtonLink
65       className="issue-action issue-action-with-options js-issue-set-severity"
66       onClick={[Function]}
67     >
68       <SeverityHelper
69         className="issue-meta-label"
70         severity="BLOCKER"
71       />
72       <DropdownIcon
73         className="little-spacer-left"
74       />
75     </ButtonLink>
76   </Toggler>
77 </div>
78 `;
79
80 exports[`should render without the action when the correct rights are missing 1`] = `
81 <SeverityHelper
82   className="issue-meta-label"
83   severity="BLOCKER"
84 />
85 `;