]> source.dussan.org Git - sonarqube.git/blob
e8fb769f86266a2189ba657abe7f81007d0162bc
[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       <SubmitButton
33         disabled={true}
34         id="bulk-change-submit"
35       >
36         apply
37       </SubmitButton>
38       <ResetButtonLink
39         onClick={[Function]}
40       >
41         cancel
42       </ResetButtonLink>
43     </div>
44   </form>
45 </Modal>
46 `;
47
48 exports[`should display form when issues are present 1`] = `
49 <Modal
50   contentLabel="modal"
51   onRequestClose={[Function]}
52   size="small"
53 >
54   <form
55     id="bulk-change-form"
56     onSubmit={[Function]}
57   >
58     <div
59       className="modal-head"
60     >
61       <h2>
62         issue_bulk_change.form.title.1
63       </h2>
64     </div>
65     <div
66       className="modal-body modal-container"
67     >
68       <Checkbox
69         checked={false}
70         className="display-inline-block spacer-top"
71         id="send-notifications"
72         onCheck={[Function]}
73         right={true}
74         thirdState={false}
75       >
76         <strong
77           className="little-spacer-right"
78         >
79           issue.send_notifications
80         </strong>
81       </Checkbox>
82     </div>
83     <div
84       className="modal-foot"
85     >
86       <SubmitButton
87         disabled={false}
88         id="bulk-change-submit"
89       >
90         apply
91       </SubmitButton>
92       <ResetButtonLink
93         onClick={[Function]}
94       >
95         cancel
96       </ResetButtonLink>
97     </div>
98   </form>
99 </Modal>
100 `;
101
102 exports[`should display warning when too many issues are passed 1`] = `
103 <h2>
104   issue_bulk_change.form.title.1
105 </h2>
106 `;
107
108 exports[`should display warning when too many issues are passed 2`] = `
109 <Alert
110   variant="warning"
111 >
112   <FormattedMessage
113     defaultMessage="issue_bulk_change.max_issues_reached"
114     id="issue_bulk_change.max_issues_reached"
115     values={
116       Object {
117         "max": <strong>
118           1
119         </strong>,
120       }
121     }
122   />
123 </Alert>
124 `;
125
126 exports[`should properly handle the search for assignee 1`] = `
127 Array [
128   Object {
129     "avatar": "##toto",
130     "label": "toto",
131     "value": "toto@toto",
132   },
133   Object {
134     "avatar": "##toto",
135     "label": "user.x_deleted.toto",
136     "value": "login@login",
137   },
138   Object {
139     "avatar": "##toto",
140     "label": "user.x_deleted.login@login",
141     "value": "login@login",
142   },
143 ]
144 `;