]> source.dussan.org Git - sonarqube.git/blob
6af3b059348ccb533e1a4f664827d1e9b00d4f17
[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-type",
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       <SetTypePopup
21         issue={
22           Object {
23             "type": "BUG",
24           }
25         }
26         onSelect={[Function]}
27       />
28     }
29   >
30     <ButtonLink
31       className="issue-action issue-action-with-options js-issue-set-type"
32       onClick={[Function]}
33     >
34       <IssueTypeIcon
35         className="little-spacer-right"
36         query="BUG"
37       />
38       issue.type.BUG
39       <DropdownIcon
40         className="little-spacer-left"
41       />
42     </ButtonLink>
43   </Toggler>
44 </div>
45 `;
46
47 exports[`should render with the action 1`] = `
48 <div
49   className="dropdown"
50 >
51   <Toggler
52     onRequestClose={[Function]}
53     open={false}
54     overlay={
55       <SetTypePopup
56         issue={
57           Object {
58             "type": "BUG",
59           }
60         }
61         onSelect={[Function]}
62       />
63     }
64   >
65     <ButtonLink
66       className="issue-action issue-action-with-options js-issue-set-type"
67       onClick={[Function]}
68     >
69       <IssueTypeIcon
70         className="little-spacer-right"
71         query="BUG"
72       />
73       issue.type.BUG
74       <DropdownIcon
75         className="little-spacer-left"
76       />
77     </ButtonLink>
78   </Toggler>
79 </div>
80 `;
81
82 exports[`should render without the action when the correct rights are missing 1`] = `
83 <span>
84   <IssueTypeIcon
85     className="little-spacer-right"
86     query="BUG"
87   />
88   issue.type.BUG
89 </span>
90 `;