]> source.dussan.org Git - sonarqube.git/blob
45021122b8d0c0d00afb6a15580414b9467c6602
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display BulkChangeModal 1`] = `
4 <BulkChangeModal
5   action="activate"
6   languages={
7     Object {
8       "js": Object {
9         "key": "js",
10         "name": "JavaScript",
11       },
12     }
13   }
14   onClose={[Function]}
15   query={
16     Object {
17       "activation": false,
18       "profile": "key",
19     }
20   }
21   referencedProfiles={
22     Object {
23       "key": Object {
24         "actions": Object {
25           "associateProjects": true,
26           "copy": true,
27           "delete": false,
28           "edit": true,
29           "setAsDefault": true,
30         },
31         "activeDeprecatedRuleCount": 2,
32         "activeRuleCount": 10,
33         "childrenCount": 0,
34         "depth": 1,
35         "isBuiltIn": false,
36         "isDefault": false,
37         "isInherited": false,
38         "key": "key",
39         "language": "js",
40         "languageName": "JavaScript",
41         "name": "name",
42         "projectCount": 3,
43       },
44     }
45   }
46   total={2}
47 />
48 `;
49
50 exports[`should not a disabled button when edition is not possible 1`] = `
51 <Tooltip
52   overlay="coding_rules.can_not_bulk_change"
53 >
54   <Button
55     className="js-bulk-change"
56     disabled={true}
57   >
58     bulk_change
59   </Button>
60 </Tooltip>
61 `;
62
63 exports[`should render correctly 1`] = `
64 <Fragment>
65   <Dropdown
66     overlay={
67       <ul
68         className="menu"
69       >
70         <li>
71           <a
72             href="#"
73             onClick={[Function]}
74           >
75             coding_rules.activate_in
76             …
77           </a>
78         </li>
79         <li>
80           <a
81             href="#"
82             onClick={[Function]}
83           >
84             coding_rules.activate_in
85              
86             <strong>
87               name
88             </strong>
89           </a>
90         </li>
91         <li>
92           <a
93             href="#"
94             onClick={[Function]}
95           >
96             coding_rules.deactivate_in
97             …
98           </a>
99         </li>
100       </ul>
101     }
102     overlayPlacement="bottom-left"
103   >
104     <Button
105       className="js-bulk-change"
106     >
107       bulk_change
108     </Button>
109   </Dropdown>
110 </Fragment>
111 `;