]> source.dussan.org Git - sonarqube.git/blob
531d5bf7ab29a8ac5c921924c685091b9fe7b585
[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     "changelog",
7     undefined,
8   ],
9 ]
10 `;
11
12 exports[`should open the popup when the button is clicked 2`] = `
13 <BubblePopupHelper
14   isOpen={true}
15   popup={
16     <ChangelogPopup
17       issue={
18         Object {
19           "author": "john.david.dalton@gmail.com",
20           "creationDate": "2017-03-01T09:36:01+0100",
21           "key": "issuekey",
22         }
23       }
24       onFail={[Function]}
25     />
26   }
27   position="bottomright"
28   togglePopup={[Function]}
29 >
30   <Tooltip
31     mouseEnterDelay={0.5}
32     overlay={
33       <DateTimeFormatter
34         date="2017-03-01T09:36:01+0100"
35       />
36     }
37     placement="left"
38   >
39     <button
40       className="button-link issue-action issue-action-with-options js-issue-show-changelog"
41       onClick={[Function]}
42     >
43       <span
44         className="issue-meta-label"
45       >
46         <FormattedRelative
47           updateInterval={10000}
48           value="2017-03-01T09:36:01+0100"
49         />
50       </span>
51       <i
52         className="icon-dropdown little-spacer-left"
53       />
54     </button>
55   </Tooltip>
56 </BubblePopupHelper>
57 `;
58
59 exports[`should render correctly 1`] = `
60 <BubblePopupHelper
61   isOpen={false}
62   popup={
63     <ChangelogPopup
64       issue={
65         Object {
66           "author": "john.david.dalton@gmail.com",
67           "creationDate": "2017-03-01T09:36:01+0100",
68           "key": "issuekey",
69         }
70       }
71       onFail={[Function]}
72     />
73   }
74   position="bottomright"
75   togglePopup={[Function]}
76 >
77   <Tooltip
78     mouseEnterDelay={0.5}
79     overlay={
80       <DateTimeFormatter
81         date="2017-03-01T09:36:01+0100"
82       />
83     }
84     placement="left"
85   >
86     <button
87       className="button-link issue-action issue-action-with-options js-issue-show-changelog"
88       onClick={[Function]}
89     >
90       <span
91         className="issue-meta-label"
92       >
93         <FormattedRelative
94           updateInterval={10000}
95           value="2017-03-01T09:36:01+0100"
96         />
97       </span>
98       <i
99         className="icon-dropdown little-spacer-left"
100       />
101     </button>
102   </Tooltip>
103 </BubblePopupHelper>
104 `;