]> source.dussan.org Git - sonarqube.git/blob
88ef96d3cebc69f3dced0150ae007e99b3d64131
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display error message when no issues available 1`] = `
4 <Modal
5   contentLabel="modal"
6   onRequestClose={[Function]}
7   size="small"
8 >
9   <form
10     id="bulk-change-form"
11     onSubmit={[Function]}
12   >
13     <div
14       className="modal-head"
15     >
16       <h2>
17         issue_bulk_change.form.title.0
18       </h2>
19     </div>
20     <div
21       className="modal-body modal-container"
22     >
23       <Alert
24         variant="warning"
25       >
26         issue_bulk_change.no_match
27       </Alert>
28     </div>
29     <div
30       className="modal-foot"
31     >
32       <Tooltip
33         overlay="issue_bulk_change.no_change_selected"
34       >
35         <SubmitButton
36           disabled={true}
37           id="bulk-change-submit"
38         >
39           apply
40         </SubmitButton>
41       </Tooltip>
42       <ResetButtonLink
43         onClick={[Function]}
44       >
45         cancel
46       </ResetButtonLink>
47     </div>
48   </form>
49 </Modal>
50 `;
51
52 exports[`should display form when issues are present 1`] = `
53 <Modal
54   contentLabel="modal"
55   onRequestClose={[Function]}
56   size="small"
57 >
58   <form
59     id="bulk-change-form"
60     onSubmit={[Function]}
61   >
62     <div
63       className="modal-head"
64     >
65       <h2>
66         issue_bulk_change.form.title.1
67       </h2>
68     </div>
69     <div
70       className="modal-body modal-container"
71     >
72       <Checkbox
73         checked={false}
74         className="display-inline-block spacer-top"
75         id="send-notifications"
76         onCheck={[Function]}
77         right={true}
78         thirdState={false}
79       >
80         <strong
81           className="little-spacer-right"
82         >
83           issue.send_notifications
84         </strong>
85       </Checkbox>
86     </div>
87     <div
88       className="modal-foot"
89     >
90       <Tooltip
91         overlay="issue_bulk_change.no_change_selected"
92       >
93         <SubmitButton
94           disabled={true}
95           id="bulk-change-submit"
96         >
97           apply
98         </SubmitButton>
99       </Tooltip>
100       <ResetButtonLink
101         onClick={[Function]}
102       >
103         cancel
104       </ResetButtonLink>
105     </div>
106   </form>
107 </Modal>
108 `;
109
110 exports[`should display warning when too many issues are passed 1`] = `
111 <h2>
112   issue_bulk_change.form.title.1
113 </h2>
114 `;
115
116 exports[`should display warning when too many issues are passed 2`] = `
117 <Alert
118   variant="warning"
119 >
120   <FormattedMessage
121     defaultMessage="issue_bulk_change.max_issues_reached"
122     id="issue_bulk_change.max_issues_reached"
123     values={
124       Object {
125         "max": <strong>
126           1
127         </strong>,
128       }
129     }
130   />
131 </Alert>
132 `;
133
134 exports[`should properly handle the search for assignee 1`] = `
135 Array [
136   Object {
137     "avatar": "##toto",
138     "label": "toto",
139     "value": "toto@toto",
140   },
141   Object {
142     "avatar": "##toto",
143     "label": "user.x_deleted.toto",
144     "value": "login@login",
145   },
146   Object {
147     "avatar": "##toto",
148     "label": "user.x_deleted.login@login",
149     "value": "login@login",
150   },
151 ]
152 `;