]> source.dussan.org Git - sonarqube.git/blob
0578972611b75f9736a7bab6592129b6767f12a9
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders with all permissions 1`] = `
4 <Fragment>
5   <ActionsDropdown>
6     <ActionsDropdownItem
7       id="quality-profile-activate-more-rules"
8       to={
9         Object {
10           "pathname": "/organizations/org/rules",
11           "query": Object {
12             "activation": "false",
13             "qprofile": "key",
14           },
15         }
16       }
17     >
18       quality_profiles.activate_more_rules
19     </ActionsDropdownItem>
20     <ActionsDropdownItem
21       download="key.xml"
22       id="quality-profile-backup"
23       to="/api/qualityprofiles/backup?profileKey=key"
24     >
25       backup_verb
26     </ActionsDropdownItem>
27     <ActionsDropdownItem
28       id="quality-profile-compare"
29       to={
30         Object {
31           "pathname": "/organizations/org/quality_profiles/compare",
32           "query": Object {
33             "language": "js",
34             "name": "name",
35           },
36         }
37       }
38     >
39       compare
40     </ActionsDropdownItem>
41     <ActionsDropdownItem
42       id="quality-profile-copy"
43       onClick={[Function]}
44     >
45       copy
46     </ActionsDropdownItem>
47     <ActionsDropdownItem
48       id="quality-profile-rename"
49       onClick={[Function]}
50     >
51       rename
52     </ActionsDropdownItem>
53     <ActionsDropdownItem
54       id="quality-profile-set-as-default"
55       onClick={[Function]}
56     >
57       set_as_default
58     </ActionsDropdownItem>
59     <ActionsDropdownDivider />
60     <ActionsDropdownItem
61       destructive={true}
62       id="quality-profile-delete"
63       onClick={[Function]}
64     >
65       delete
66     </ActionsDropdownItem>
67   </ActionsDropdown>
68 </Fragment>
69 `;
70
71 exports[`renders with no permissions 1`] = `
72 <Fragment>
73   <ActionsDropdown>
74     <ActionsDropdownItem
75       download="key.xml"
76       id="quality-profile-backup"
77       to="/api/qualityprofiles/backup?profileKey=key"
78     >
79       backup_verb
80     </ActionsDropdownItem>
81     <ActionsDropdownItem
82       id="quality-profile-compare"
83       to={
84         Object {
85           "pathname": "/organizations/org/quality_profiles/compare",
86           "query": Object {
87             "language": "js",
88             "name": "name",
89           },
90         }
91       }
92     >
93       compare
94     </ActionsDropdownItem>
95   </ActionsDropdown>
96 </Fragment>
97 `;
98
99 exports[`renders with permission to edit only 1`] = `
100 <Fragment>
101   <ActionsDropdown>
102     <ActionsDropdownItem
103       id="quality-profile-activate-more-rules"
104       to={
105         Object {
106           "pathname": "/organizations/org/rules",
107           "query": Object {
108             "activation": "false",
109             "qprofile": "key",
110           },
111         }
112       }
113     >
114       quality_profiles.activate_more_rules
115     </ActionsDropdownItem>
116     <ActionsDropdownItem
117       download="key.xml"
118       id="quality-profile-backup"
119       to="/api/qualityprofiles/backup?profileKey=key"
120     >
121       backup_verb
122     </ActionsDropdownItem>
123     <ActionsDropdownItem
124       id="quality-profile-compare"
125       to={
126         Object {
127           "pathname": "/organizations/org/quality_profiles/compare",
128           "query": Object {
129             "language": "js",
130             "name": "name",
131           },
132         }
133       }
134     >
135       compare
136     </ActionsDropdownItem>
137     <ActionsDropdownItem
138       id="quality-profile-rename"
139       onClick={[Function]}
140     >
141       rename
142     </ActionsDropdownItem>
143   </ActionsDropdown>
144 </Fragment>
145 `;