Create mocks for the entire Customer Account extension API#3905
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
8c15ddb to
4a0e80d
Compare
3e06b36 to
072992f
Compare
4a0e80d to
27fe3a8
Compare
072992f to
34763c2
Compare
27fe3a8 to
8fccf50
Compare
34763c2 to
c11b76b
Compare
8fccf50 to
b6b83e9
Compare
c11b76b to
bb5b1ed
Compare
bab7729 to
a303042
Compare
344b671 to
af00386
Compare
a303042 to
2db9df6
Compare
af00386 to
7049f9e
Compare
6e15cd7 to
83b81e0
Compare
7049f9e to
1a6144c
Compare
83b81e0 to
69f7238
Compare
1a6144c to
62487cd
Compare
69f7238 to
bb90420
Compare
62487cd to
4fd668d
Compare
bb90420 to
9707ec1
Compare
4fd668d to
d8892b1
Compare
9707ec1 to
2b029e3
Compare
ed2acf4 to
9c42619
Compare
6588884 to
dc785e2
Compare
9c42619 to
b1d8f34
Compare
dc785e2 to
ca3a20d
Compare
49e571c to
31b4fbd
Compare
ca3a20d to
6afbc5a
Compare
31b4fbd to
cc4dd82
Compare
6afbc5a to
e04bdfe
Compare
cc4dd82 to
d058148
Compare
e04bdfe to
4c9b881
Compare
d058148 to
e592271
Compare
4c9b881 to
1ab00cd
Compare
e592271 to
776e604
Compare
1ab00cd to
724d295
Compare
776e604 to
d619193
Compare
724d295 to
2364cea
Compare
d619193 to
ec9fbb4
Compare
2364cea to
6ec4c50
Compare
|
|
||
| const customerAccountMockFactories: CustomerAccountMockFactory = { | ||
| // StandardApi only | ||
| 'customer-account.page.render': createStandardApiProperties, |
There was a problem hiding this comment.
Should we also add the navigation api? https://shopify.dev/docs/api/customer-account-ui-extensions/latest/apis/navigation
navigate is available in all targets, full page extensions have more properties available
There was a problem hiding this comment.
oh yeah. Is this available for Admin, too? I can't tell.
There was a problem hiding this comment.
I added a mock for all surfaces (on the base branch). Good call, thanks!
There was a problem hiding this comment.
Why all surfaces? 😅 Checkout doesn't have it, right?
There was a problem hiding this comment.
if at least two surfaces include it then I think it's good to include it everywhere. We could make navigate() throw an error if the extension under test is in an unsupported target.
6ec4c50 to
32fb2a4
Compare
ec9fbb4 to
44a456a
Compare
44a456a to
f7c9ffa
Compare
32fb2a4 to
a026d49
Compare

Follow up to #3899 that adds a complete, type-safe mock of the Customer Account extension API
👁️ How to review this PR