]> source.dussan.org Git - sonarqube.git/blob
92c500b06e7265d87041ebad05e50b0aaf621352
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display already bound alert message 1`] = `
4 <Alert
5   className="big-spacer-bottom width-60"
6   variant="error"
7 >
8   <FormattedMessage
9     defaultMessage="onboarding.import_organization.already_bound_x"
10     id="onboarding.import_organization.already_bound_x"
11     values={
12       Object {
13         "avatar": <img
14           alt="GitHub"
15           className="little-spacer-left"
16           src="/images/sonarcloud/github.svg"
17           width={16}
18         />,
19         "boundAvatar": <OrganizationAvatar
20           className="little-spacer-left"
21           organization={
22             Object {
23               "avatar": "bound-avatar",
24               "key": "bound",
25               "name": "Bound",
26             }
27           }
28           small={true}
29         />,
30         "boundName": <strong>
31           Bound
32         </strong>,
33         "name": <strong>
34           Foo
35         </strong>,
36       }
37     }
38   />
39 </Alert>
40 `;
41
42 exports[`should display an alert message 1`] = `
43 <Alert
44   className="big-spacer-bottom width-60"
45   variant="error"
46 >
47   <div
48     className="markdown"
49   >
50     onboarding.import_organization.org_not_found
51     <ul>
52       <li>
53         onboarding.import_organization.org_not_found.tips_1
54       </li>
55       <li>
56         onboarding.import_organization.org_not_found.tips_2
57       </li>
58     </ul>
59   </div>
60 </Alert>
61 `;
62
63 exports[`should display unbound installations 1`] = `
64 <div
65   className="boxed-group-inner"
66 >
67   <div
68     className="display-flex-center"
69   >
70     <div
71       className="display-inline-block"
72     >
73       <IdentityProviderLink
74         className="display-inline-block"
75         identityProvider={
76           Object {
77             "backgroundColor": "blue",
78             "iconPath": "icon/path",
79             "installationUrl": "https://alm.application.url",
80             "key": "github",
81             "name": "GitHub",
82           }
83         }
84         onClick={[Function]}
85         small={true}
86         url="https://alm.application.url"
87       >
88         onboarding.import_organization.choose_organization_button.github
89       </IdentityProviderLink>
90     </div>
91     <div
92       className="display-flex-stretch"
93     >
94       <div
95         className="vertical-pipe-separator"
96       >
97         <div
98           className="vertical-separator "
99         />
100         <span
101           className="note"
102         >
103           or
104         </span>
105         <div
106           className="vertical-separator"
107         />
108       </div>
109       <form
110         className="big-spacer-top big-spacer-bottom"
111         onSubmit={[Function]}
112       >
113         <div
114           className="form-field abs-width-400"
115         >
116           <label
117             htmlFor="select-unbound-installation"
118           >
119             onboarding.import_organization.choose_unbound_installation.github
120           </label>
121           <Select
122             className="input-super-large"
123             clearable={false}
124             id="select-unbound-installation"
125             labelKey="name"
126             onChange={[Function]}
127             optionRenderer={[Function]}
128             options={
129               Array [
130                 Object {
131                   "installationId": "12345",
132                   "key": "foo",
133                   "name": "Foo",
134                 },
135               ]
136             }
137             placeholder="onboarding.import_organization.choose_organization"
138             value=""
139             valueKey="installationId"
140             valueRenderer={[Function]}
141           />
142         </div>
143         <SubmitButton
144           disabled={true}
145         >
146           continue
147         </SubmitButton>
148       </form>
149     </div>
150   </div>
151 </div>
152 `;
153
154 exports[`should render 1`] = `
155 <div
156   className="boxed-group-inner"
157 >
158   <div
159     className="display-flex-center"
160   >
161     <div
162       className="display-inline-block"
163     >
164       <IdentityProviderLink
165         className="display-inline-block"
166         identityProvider={
167           Object {
168             "backgroundColor": "blue",
169             "iconPath": "icon/path",
170             "installationUrl": "https://alm.application.url",
171             "key": "github",
172             "name": "GitHub",
173           }
174         }
175         onClick={[Function]}
176         small={true}
177         url="https://alm.application.url"
178       >
179         onboarding.import_organization.choose_organization_button.github
180       </IdentityProviderLink>
181     </div>
182   </div>
183 </div>
184 `;