]> source.dussan.org Git - sonarqube.git/blob
985f767d6c7cdc6dde017e93bb58a849dc82640e
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display choice between import or creation 1`] = `
4 <div
5   className="boxed-group"
6 >
7   <div
8     className="boxed-group-header"
9   >
10     <h2>
11       onboarding.import_organization.import_org_details
12     </h2>
13   </div>
14   <div
15     className="boxed-group-inner"
16   >
17     <div
18       className="huge-spacer-bottom"
19     >
20       <p
21         className="display-flex-center big-spacer-bottom"
22       >
23         <FormattedMessage
24           defaultMessage="onboarding.import_organization_x"
25           id="onboarding.import_organization_x"
26           values={
27             Object {
28               "avatar": <img
29                 alt="BitBucket"
30                 className="little-spacer-left"
31                 src="/images/sonarcloud/bitbucket.svg"
32                 width={16}
33               />,
34               "name": <strong>
35                 name-foo
36               </strong>,
37             }
38           }
39         />
40         <DeleteButton
41           className="little-spacer-left"
42           onClick={[Function]}
43         />
44       </p>
45       <RadioToggle
46         disabled={false}
47         name="filter"
48         onCheck={[Function]}
49         options={
50           Array [
51             Object {
52               "label": "onboarding.import_organization.create_new",
53               "value": "create",
54             },
55             Object {
56               "label": "onboarding.import_organization.bind_existing",
57               "value": "bind",
58             },
59           ]
60         }
61         value={null}
62       />
63     </div>
64   </div>
65 </div>
66 `;
67
68 exports[`should render prefilled and create org 1`] = `
69 <div
70   className="boxed-group"
71 >
72   <div
73     className="boxed-group-header"
74   >
75     <h2>
76       onboarding.import_organization.import_org_details
77     </h2>
78   </div>
79   <div
80     className="boxed-group-inner"
81   >
82     <div
83       className="huge-spacer-bottom"
84     >
85       <p
86         className="display-flex-center big-spacer-bottom"
87       >
88         <FormattedMessage
89           defaultMessage="onboarding.import_organization_x"
90           id="onboarding.import_organization_x"
91           values={
92             Object {
93               "avatar": <img
94                 alt="BitBucket"
95                 className="little-spacer-left"
96                 src="/images/sonarcloud/bitbucket.svg"
97                 width={16}
98               />,
99               "name": <strong>
100                 name-foo
101               </strong>,
102             }
103           }
104         />
105         <DeleteButton
106           className="little-spacer-left"
107           onClick={[Function]}
108         />
109       </p>
110     </div>
111     <OrganizationDetailsForm
112       onContinue={[Function]}
113       organization={
114         Object {
115           "avatar": "http://example.com/avatar",
116           "description": "description-foo",
117           "key": "key-foo",
118           "name": "name-foo",
119           "personal": false,
120           "url": "http://example.com/foo",
121         }
122       }
123       submitText="onboarding.import_organization.import"
124     />
125   </div>
126 </div>
127 `;
128
129 exports[`should render with import org button 1`] = `
130 <div
131   className="boxed-group"
132 >
133   <div
134     className="boxed-group-header"
135   >
136     <h2>
137       onboarding.import_organization.import_org_details
138     </h2>
139   </div>
140   <withRouter(RemoteOrganizationChoose)
141     almApplication={
142       Object {
143         "backgroundColor": "#0052CC",
144         "iconPath": "\\"/static/authbitbucket/bitbucket.svg\\"",
145         "installationUrl": "https://bitbucket.org/install/app",
146         "key": "bitbucket",
147         "name": "BitBucket",
148       }
149     }
150     almUnboundApplications={Array []}
151   />
152 </div>
153 `;