]> source.dussan.org Git - sonarqube.git/blob
211f66c346ca7b97a3e9d3906878899d8019c159
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Modal
5   contentLabel="settings.almintegration.form.header.create"
6   onRequestClose={[MockFunction]}
7   size="medium"
8 >
9   <form
10     className="views-form"
11     onSubmit={[Function]}
12   >
13     <div
14       className="modal-head"
15     >
16       <h2>
17         settings.almintegration.form.header.create
18       </h2>
19     </div>
20     <div
21       className="modal-body modal-container"
22     >
23       <div
24         className="display-flex-start"
25       >
26         <div
27           className="flex-1"
28         >
29           <Component />
30         </div>
31       </div>
32     </div>
33     <div
34       className="modal-foot"
35     >
36       <DeferredSpinner
37         className="spacer-right"
38         loading={false}
39       />
40       <SubmitButton
41         disabled={true}
42       >
43         settings.almintegration.form.save
44       </SubmitButton>
45       <ResetButtonLink
46         onClick={[Function]}
47       >
48         cancel
49       </ResetButtonLink>
50     </div>
51   </form>
52 </Modal>
53 `;
54
55 exports[`should render correctly: second instance 1`] = `
56 <Modal
57   contentLabel="settings.almintegration.form.header.create"
58   onRequestClose={[MockFunction]}
59   size="medium"
60 >
61   <form
62     className="views-form"
63     onSubmit={[Function]}
64   >
65     <div
66       className="modal-head"
67     >
68       <h2>
69         settings.almintegration.form.header.create
70       </h2>
71     </div>
72     <div
73       className="modal-body modal-container"
74     >
75       <Alert
76         className="big-spacer-bottom"
77         variant="warning"
78       >
79         settings.almintegration.form.second_instance_warning
80       </Alert>
81       <div
82         className="display-flex-start"
83       >
84         <div
85           className="flex-1"
86         >
87           <Component />
88         </div>
89       </div>
90     </div>
91     <div
92       className="modal-foot"
93     >
94       <DeferredSpinner
95         className="spacer-right"
96         loading={false}
97       />
98       <SubmitButton
99         disabled={true}
100       >
101         settings.almintegration.form.save
102       </SubmitButton>
103       <ResetButtonLink
104         onClick={[Function]}
105       >
106         cancel
107       </ResetButtonLink>
108     </div>
109   </form>
110 </Modal>
111 `;
112
113 exports[`should render correctly: with help 1`] = `
114 <Modal
115   contentLabel="settings.almintegration.form.header.create"
116   onRequestClose={[MockFunction]}
117   size="medium"
118 >
119   <form
120     className="views-form"
121     onSubmit={[Function]}
122   >
123     <div
124       className="modal-head"
125     >
126       <h2>
127         settings.almintegration.form.header.create
128       </h2>
129     </div>
130     <div
131       className="modal-body modal-container"
132     >
133       <div
134         className="display-flex-start"
135       >
136         <div
137           className="flex-1"
138         >
139           <Component />
140         </div>
141         <Alert
142           className="huge-spacer-left flex-1"
143           variant="info"
144         >
145           <span>
146             Help me
147           </span>
148         </Alert>
149       </div>
150     </div>
151     <div
152       className="modal-foot"
153     >
154       <DeferredSpinner
155         className="spacer-right"
156         loading={false}
157       />
158       <SubmitButton
159         disabled={true}
160       >
161         settings.almintegration.form.save
162       </SubmitButton>
163       <ResetButtonLink
164         onClick={[Function]}
165       >
166         cancel
167       </ResetButtonLink>
168     </div>
169   </form>
170 </Modal>
171 `;