]> source.dussan.org Git - sonarqube.git/blob
001d1d6908fb69f5590929e0787bec0a3b99c3d8
[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     "edit-tags",
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       <SetIssueTagsPopup
21         selectedTags={
22           Array [
23             "mytag",
24             "test",
25           ]
26         }
27         setTags={[Function]}
28       />
29     }
30   >
31     <ButtonLink
32       className="issue-action issue-action-with-options js-issue-edit-tags"
33       onClick={[Function]}
34     >
35       <TagsList
36         allowUpdate={true}
37         tags={
38           Array [
39             "mytag",
40             "test",
41           ]
42         }
43       />
44     </ButtonLink>
45   </Toggler>
46 </div>
47 `;
48
49 exports[`should render with the action 1`] = `
50 <div
51   className="dropdown"
52 >
53   <Toggler
54     onRequestClose={[Function]}
55     open={false}
56     overlay={
57       <SetIssueTagsPopup
58         selectedTags={
59           Array [
60             "mytag",
61             "test",
62           ]
63         }
64         setTags={[Function]}
65       />
66     }
67   >
68     <ButtonLink
69       className="issue-action issue-action-with-options js-issue-edit-tags"
70       onClick={[Function]}
71     >
72       <TagsList
73         allowUpdate={true}
74         tags={
75           Array [
76             "mytag",
77             "test",
78           ]
79         }
80       />
81     </ButtonLink>
82   </Toggler>
83 </div>
84 `;
85
86 exports[`should render without the action when the correct rights are missing 1`] = `
87 <TagsList
88   allowUpdate={false}
89   className="note"
90   tags={
91     Array [
92       "issue.no_tag",
93     ]
94   }
95 />
96 `;