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