]> source.dussan.org Git - sonarqube.git/blob
eabae33e7ae2e8a1c945c509b3eac39c73c26b91
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders correctly 1`] = `
4 <Modal
5   contentLabel="onboarding.header"
6   onRequestClose={[MockFunction]}
7   shouldCloseOnOverlayClick={false}
8   size="small"
9 >
10   <div
11     className="modal-head"
12   >
13     <h2>
14       onboarding.header
15     </h2>
16     <p
17       className="spacer-top"
18     >
19       onboarding.header.description
20     </p>
21   </div>
22   <div
23     className="modal-body text-center display-flex-row huge-spacer-top huge-spacer-bottom"
24   >
25     <div
26       className="flex-1"
27     >
28       <OnboardingProjectIcon
29         className="big-spacer-bottom"
30       />
31       <h3
32         className="big-spacer-bottom"
33       >
34         onboarding.analyze_your_code
35       </h3>
36       <Button
37         onClick={[MockFunction]}
38       >
39         onboarding.project.create
40       </Button>
41     </div>
42   </div>
43   <div
44     className="modal-foot text-right"
45   >
46     <ResetButtonLink
47       onClick={[MockFunction]}
48     >
49       not_now
50     </ResetButtonLink>
51   </div>
52 </Modal>
53 `;
54
55 exports[`should display organization list if any 1`] = `
56 <Modal
57   contentLabel="onboarding.header"
58   onRequestClose={[MockFunction]}
59   shouldCloseOnOverlayClick={false}
60   size="medium"
61 >
62   <div
63     className="modal-head"
64   >
65     <h2>
66       onboarding.header
67     </h2>
68     <p
69       className="spacer-top"
70     >
71       onboarding.header.description
72     </p>
73   </div>
74   <div
75     className="modal-body text-center display-flex-row huge-spacer-top huge-spacer-bottom"
76   >
77     <div
78       className="flex-1"
79     >
80       <OnboardingProjectIcon
81         className="big-spacer-bottom"
82       />
83       <h3
84         className="big-spacer-bottom"
85       >
86         onboarding.analyze_your_code
87       </h3>
88       <Button
89         onClick={[MockFunction]}
90       >
91         onboarding.project.create
92       </Button>
93     </div>
94     <div
95       className="vertical-pipe-separator"
96     >
97       <div
98         className="vertical-separator"
99       />
100     </div>
101     <div
102       className="flex-1"
103     >
104       <OnboardingTeamIcon
105         className="big-spacer-bottom"
106       />
107       <h3
108         className="big-spacer-bottom"
109       >
110         onboarding.browse_your_organizations
111       </h3>
112       <OrganizationsShortList
113         onClick={[MockFunction]}
114         organizations={
115           Array [
116             Object {
117               "key": "a",
118               "name": "Arthur",
119             },
120             Object {
121               "key": "b",
122               "name": "Boston Co",
123             },
124             Object {
125               "key": "d",
126               "name": "Daniel Inc",
127             },
128           ]
129         }
130       />
131     </div>
132   </div>
133   <div
134     className="modal-foot text-right"
135   >
136     <ResetButtonLink
137       onClick={[MockFunction]}
138     >
139       not_now
140     </ResetButtonLink>
141   </div>
142 </Modal>
143 `;