]> source.dussan.org Git - sonarqube.git/blob
36de38354e61ecced6cc19eb0eda672c47244b4b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`render correctly 1`] = `
4 <SimpleModal
5   header="projects_role.apply_template_to_xxx.Foo"
6   onClose={[MockFunction]}
7   onSubmit={[Function]}
8   size="small"
9 >
10   <Component />
11 </SimpleModal>
12 `;
13
14 exports[`render correctly 2`] = `
15 <Modal
16   contentLabel="projects_role.apply_template_to_xxx.Foo"
17   onRequestClose={[MockFunction]}
18   size="small"
19 >
20   <form
21     id="project-permissions-apply-template-form"
22     onSubmit={[Function]}
23   >
24     <header
25       className="modal-head"
26     >
27       <h2>
28         projects_role.apply_template_to_xxx.Foo
29       </h2>
30     </header>
31     <div
32       className="modal-body"
33     >
34       <MandatoryFieldsExplanation
35         className="modal-field"
36       />
37       <div
38         className="modal-field"
39       >
40         <label
41           htmlFor="project-permissions-template"
42         >
43           template
44           <MandatoryFieldMarker />
45         </label>
46         <SelectLegacy
47           clearable={false}
48           id="project-permissions-template"
49           onChange={[Function]}
50           options={
51             Array [
52               Object {
53                 "label": "SonarSource projects",
54                 "value": "tmp1",
55               },
56             ]
57           }
58         />
59       </div>
60     </div>
61     <footer
62       className="modal-foot"
63     >
64       <DeferredSpinner
65         className="spacer-right"
66         loading={false}
67       />
68       <SubmitButton
69         disabled={true}
70       >
71         apply
72       </SubmitButton>
73       <ResetButtonLink
74         onClick={[Function]}
75       >
76         cancel
77       </ResetButtonLink>
78     </footer>
79   </form>
80 </Modal>
81 `;