Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wp-checkout component tests #36722

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
e4f007e
Checkout: Add README for new wp-checkout package
sirbrillig Oct 4, 2019
79275b1
Some updates
sirbrillig Oct 4, 2019
5fe767f
Add list update callback idea
sirbrillig Oct 4, 2019
659c652
Switch onChangeItems to onDeleteItem
sirbrillig Oct 4, 2019
3866fbb
Hoist math requirement and onDeleteItem to parent
sirbrillig Oct 5, 2019
37b2e61
Remove defaultBillingContact
sirbrillig Oct 5, 2019
6c97327
Implement updatePricesForAddress
sirbrillig Oct 6, 2019
6dac580
Prettier example
sirbrillig Oct 6, 2019
2b6a075
Add missing useEffect import
sirbrillig Oct 7, 2019
6c220f1
Switch to use single `total` prop like Apple Pay
sirbrillig Oct 7, 2019
0df983e
Calculate taxes whenever items change
sirbrillig Oct 7, 2019
d3ffb36
Add todo for styles
sirbrillig Oct 7, 2019
97aca31
Remove splitCheckoutLineItemsByType
sirbrillig Oct 7, 2019
0d0035b
Add event to change plan length
sirbrillig Oct 7, 2019
962e96f
Move main state to custom hook
sirbrillig Oct 7, 2019
9a30995
Run Prettier again
sirbrillig Oct 7, 2019
b591e71
Make UpSellCoupon a div
sirbrillig Oct 8, 2019
d5c4832
Add Advanced API
sirbrillig Oct 8, 2019
e0bac3f
Some adjustments from recent meeting
sirbrillig Oct 8, 2019
1366106
Add onEdit prop to CheckoutStep
sirbrillig Oct 8, 2019
64b0c72
Add Styles section
sirbrillig Oct 8, 2019
c97f120
Add credits/coupons section
sirbrillig Oct 8, 2019
909988e
Add some comments to MyCheckout and useShoppingCart
sirbrillig Oct 8, 2019
9a33a5d
Correct spelling error
sirbrillig Oct 8, 2019
8d83039
Add Installation section
sirbrillig Oct 8, 2019
98690e7
Add hooks and submit functions to API ref
sirbrillig Oct 8, 2019
cb49354
Add args to submitCheckout
sirbrillig Oct 8, 2019
6d814e5
Clean up prose and naming
sirbrillig Oct 9, 2019
2b3942e
Add icons to h2
sirbrillig Oct 9, 2019
f687f7a
Add types to Checkout props list
sirbrillig Oct 9, 2019
13074e2
Fix strike-through
sirbrillig Oct 9, 2019
e2c5e38
Add simpler example
sirbrillig Oct 9, 2019
199103e
Add screenshots
sirbrillig Oct 9, 2019
43c2409
Add README images
sirbrillig Oct 9, 2019
bc354a2
Set image urls
sirbrillig Oct 9, 2019
055fc95
Add missing image
sirbrillig Oct 9, 2019
a8c0eb8
Fix review order step image url
sirbrillig Oct 9, 2019
e6dc5e4
Fix deleteItem typo
sirbrillig Oct 9, 2019
f4d14e1
Fix onDeleteItem
sirbrillig Oct 9, 2019
109019f
Add FAQ
sirbrillig Oct 10, 2019
b22af85
Sort API section by alpha
sirbrillig Oct 10, 2019
4d75378
Add CheckoutSection to wrap CheckoutStep and CheckoutStepCollapsed
sirbrillig Oct 10, 2019
ce19f74
Undo last commit
sirbrillig Oct 10, 2019
7c57f59
Remove metion of collapsedContent
sirbrillig Oct 10, 2019
7820ea8
Add collapsed prop to CheckoutPaymentMethods
sirbrillig Oct 10, 2019
834fc45
Add Payment Methods section
sirbrillig Oct 10, 2019
fd48c5c
Add initial code
sirbrillig Oct 11, 2019
5fba4a1
Add idea for payment methods
sirbrillig Oct 11, 2019
0d25a5c
Move components to components dir
sirbrillig Oct 11, 2019
69e908c
Fix imports for components dir
sirbrillig Oct 11, 2019
4816812
Move default component to own file
sirbrillig Oct 11, 2019
d863c1a
Add package.json
sirbrillig Oct 11, 2019
7c27b54
Add local-web-server
sirbrillig Oct 11, 2019
f2c3137
Add local webserver
sirbrillig Oct 11, 2019
aca9541
Add Development section to README
sirbrillig Oct 11, 2019
453e610
Add registerPaymentMethod
sirbrillig Oct 11, 2019
37695ff
Add test script
Oct 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 147 additions & 22 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
"source-map-support": "0.5.12",
"store": "2.0.12",
"striptags": "2.2.1",
"styled-components": "4.4.0",
"superagent": "3.8.3",
"svg4everybody": "2.1.9",
"textarea-caret": "3.1.0",
Expand All @@ -201,6 +202,7 @@
"valid-url": "1.0.9",
"webpack-bundle-analyzer": "3.5.0",
"webpack-dev-middleware": "3.7.0",
"wp-checkout": "file:packages/wp-checkout",
"wpcom": "5.4.2",
"wpcom-proxy-request": "5.0.2",
"wpcom-xhr-request": "1.1.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/wp-checkout/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/env", "@babel/preset-react"]
}
Loading