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