]> source.dussan.org Git - sonarqube.git/blob
e17d30f0a596f421e2b472a3cbeb26147db6df40
[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     "transition",
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       <SetTransitionPopup
21         fromHotspot={false}
22         onSelect={[Function]}
23         transitions={
24           Array [
25             "confirm",
26             "resolve",
27             "falsepositive",
28             "wontfix",
29           ]
30         }
31         type="BUG"
32       />
33     }
34   >
35     <ButtonLink
36       className="issue-action issue-action-with-options js-issue-transition"
37       onClick={[Function]}
38     >
39       <StatusHelper
40         className="issue-meta-label"
41         status="OPEN"
42       />
43       <DropdownIcon
44         className="little-spacer-left"
45       />
46     </ButtonLink>
47   </Toggler>
48 </div>
49 `;
50
51 exports[`should render with a resolution 1`] = `
52 <div
53   className="dropdown"
54 >
55   <Toggler
56     onRequestClose={[Function]}
57     open={false}
58     overlay={
59       <SetTransitionPopup
60         fromHotspot={false}
61         onSelect={[Function]}
62         transitions={
63           Array [
64             "reopen",
65           ]
66         }
67         type="BUG"
68       />
69     }
70   >
71     <ButtonLink
72       className="issue-action issue-action-with-options js-issue-transition"
73       onClick={[Function]}
74     >
75       <StatusHelper
76         className="issue-meta-label"
77         resolution="FIXED"
78         status="RESOLVED"
79       />
80       <DropdownIcon
81         className="little-spacer-left"
82       />
83     </ButtonLink>
84   </Toggler>
85 </div>
86 `;
87
88 exports[`should render with the action 1`] = `
89 <div
90   className="dropdown"
91 >
92   <Toggler
93     onRequestClose={[Function]}
94     open={false}
95     overlay={
96       <SetTransitionPopup
97         fromHotspot={false}
98         onSelect={[Function]}
99         transitions={
100           Array [
101             "confirm",
102             "resolve",
103             "falsepositive",
104             "wontfix",
105           ]
106         }
107         type="BUG"
108       />
109     }
110   >
111     <ButtonLink
112       className="issue-action issue-action-with-options js-issue-transition"
113       onClick={[Function]}
114     >
115       <StatusHelper
116         className="issue-meta-label"
117         status="OPEN"
118       />
119       <DropdownIcon
120         className="little-spacer-left"
121       />
122     </ButtonLink>
123   </Toggler>
124 </div>
125 `;
126
127 exports[`should render without the action when there is no transitions 1`] = `
128 <StatusHelper
129   className="issue-meta-label"
130   status="CLOSED"
131 />
132 `;