]> source.dussan.org Git - sonarqube.git/blob
b03f3c1ef55ac1b6d9647059d6f0f6e248eeb4b5
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should preselect paid plan 1`] = `
4 <Step
5   finished={false}
6   onOpen={[Function]}
7   open={true}
8   renderForm={[Function]}
9   renderResult={[Function]}
10   stepNumber={2}
11   stepTitle="onboarding.create_organization.enter_payment_details"
12 />
13 `;
14
15 exports[`should preselect paid plan 2`] = `
16 <div
17   className="boxed-group onboarding-step is-open"
18 >
19   <div
20     className="onboarding-step-number"
21   >
22     2
23   </div>
24   <div
25     className="boxed-group-header"
26   >
27     <h2>
28       onboarding.create_organization.enter_payment_details
29     </h2>
30   </div>
31   <div
32     className=""
33   >
34     <div
35       className="boxed-group-inner"
36     >
37       <Connect(withCurrentUser(BillingFormShim))
38         onCommit={[MockFunction]}
39         onFailToUpgrade={[MockFunction]}
40         organizationKey={[MockFunction]}
41         subscriptionPlans={
42           Array [
43             Object {
44               "maxNcloc": 1000,
45               "price": 100,
46             },
47           ]
48         }
49       >
50         <Component />
51       </Connect(withCurrentUser(BillingFormShim))>
52     </div>
53   </div>
54 </div>
55 `;
56
57 exports[`should render and use free plan 1`] = `
58 <Step
59   finished={false}
60   onOpen={[Function]}
61   open={true}
62   renderForm={[Function]}
63   renderResult={[Function]}
64   stepNumber={2}
65   stepTitle="onboarding.create_organization.choose_plan"
66 />
67 `;
68
69 exports[`should render and use free plan 2`] = `
70 <div
71   className="boxed-group onboarding-step is-open"
72 >
73   <div
74     className="onboarding-step-number"
75   >
76     2
77   </div>
78   <div
79     className="boxed-group-header"
80   >
81     <h2>
82       onboarding.create_organization.choose_plan
83     </h2>
84   </div>
85   <div
86     className=""
87   >
88     <div
89       className="boxed-group-inner"
90     >
91       <PlanSelect
92         onChange={[Function]}
93         plan="free"
94         startingPrice="billing.price_format.100"
95       />
96       <form
97         className="display-flex-center big-spacer-top"
98         id="organization-free-plan-form"
99         onSubmit={[Function]}
100       >
101         <SubmitButton
102           disabled={false}
103         >
104           my_account.create_organization
105         </SubmitButton>
106       </form>
107     </div>
108   </div>
109 </div>
110 `;
111
112 exports[`should upgrade 1`] = `
113 <div
114   className="boxed-group onboarding-step is-open"
115 >
116   <div
117     className="onboarding-step-number"
118   >
119     2
120   </div>
121   <div
122     className="boxed-group-header"
123   >
124     <h2>
125       onboarding.create_organization.choose_plan
126     </h2>
127   </div>
128   <div
129     className=""
130   >
131     <div
132       className="boxed-group-inner"
133     >
134       <PlanSelect
135         onChange={[Function]}
136         plan="paid"
137         startingPrice="billing.price_format.100"
138       />
139       <Connect(withCurrentUser(BillingFormShim))
140         onCommit={[MockFunction]}
141         onFailToUpgrade={[MockFunction]}
142         organizationKey={[MockFunction]}
143         subscriptionPlans={
144           Array [
145             Object {
146               "maxNcloc": 1000,
147               "price": 100,
148             },
149           ]
150         }
151       >
152         <Component />
153       </Connect(withCurrentUser(BillingFormShim))>
154     </div>
155   </div>
156 </div>
157 `;