@faststore/core 4.10.1 → 4.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/.turbo/turbo-generate.log +3 -3
  2. package/.turbo/turbo-test.log +278 -235
  3. package/@generated/graphql.ts +1 -0
  4. package/@generated/schema.graphql +1 -1
  5. package/CHANGELOG.md +86 -0
  6. package/package.json +6 -6
  7. package/src/components/account/Drawer/OrganizationDrawer/OrganizationDrawer.tsx +3 -3
  8. package/src/components/account/Drawer/OrganizationDrawer/OrganizationDrawerBody.tsx +5 -7
  9. package/src/components/account/Drawer/OrganizationSignInButton/OrganizationSignInButton.tsx +4 -1
  10. package/src/components/account/Layout/Layout.tsx +5 -7
  11. package/src/components/account/Menu/Menu.tsx +1 -1
  12. package/src/components/navigation/Navbar/Navbar.tsx +3 -3
  13. package/src/components/navigation/Navbar/NavbarAccountArea.tsx +5 -5
  14. package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +3 -3
  15. package/src/experimental/myAccountCmsServerSideProps.ts +3 -3
  16. package/src/experimental/myAccountServerSideProps.ts +4 -4
  17. package/src/pages/[slug]/p.tsx +18 -4
  18. package/src/pages/api/fs/logout.ts +18 -10
  19. package/src/pages/api/fs/switch-contract.ts +170 -21
  20. package/src/pages/api/graphql.ts +101 -60
  21. package/src/pages/pvt/account/403.tsx +5 -4
  22. package/src/pages/pvt/account/cards/index.tsx +5 -5
  23. package/src/pages/pvt/account/orders/[id].tsx +5 -5
  24. package/src/pages/pvt/account/orders/index.tsx +5 -5
  25. package/src/pages/pvt/account/profile.tsx +5 -5
  26. package/src/pages/pvt/account/quotes/index.tsx +5 -5
  27. package/src/pages/pvt/account/security.tsx +5 -5
  28. package/src/pages/pvt/account/user-details.tsx +6 -6
  29. package/src/sdk/account/getB2BSessionClaims.ts +1 -1
  30. package/src/sdk/account/getIsB2BBuyer.ts +28 -0
  31. package/src/sdk/account/refreshToken.ts +89 -11
  32. package/src/sdk/account/refreshTokenPaths.ts +25 -0
  33. package/src/sdk/account/useRefreshToken.ts +15 -11
  34. package/src/sdk/product/isProductNotFound.ts +13 -0
  35. package/src/sdk/product/usePageProductsQuery.ts +80 -21
  36. package/src/sdk/product/useProductNotFoundRedirect.ts +43 -0
  37. package/src/sdk/product/useProductQuery.ts +29 -0
  38. package/src/sdk/session/index.ts +46 -34
  39. package/src/server/cms/index.ts +59 -7
  40. package/src/server/cms/pdp.ts +10 -5
  41. package/src/server/cms/plp.ts +10 -5
  42. package/src/server/content/promiseCache.ts +68 -0
  43. package/src/server/content/service.ts +71 -51
  44. package/src/utils/getCheckoutParentDomain.ts +53 -0
  45. package/src/utils/isLocalHost.ts +2 -16
  46. package/src/utils/shouldBypassRefreshToken.ts +63 -0
  47. package/src/utils/trustedForwardedHost.ts +18 -0
  48. package/test/components/account/Layout.test.tsx +1 -1
  49. package/test/components/account/Menu.browser.test.tsx +7 -5
  50. package/test/components/account/OrganizationDrawer.browser.test.tsx +13 -13
  51. package/test/components/account/OrganizationDrawerBody.test.tsx +3 -3
  52. package/test/components/account/OrganizationSignInButton.browser.test.tsx +19 -4
  53. package/test/components/navigation/Navbar.browser.test.tsx +3 -3
  54. package/test/components/navigation/NavbarAccountArea.browser.test.tsx +5 -5
  55. package/test/components/navigation/NavbarSlider.browser.test.tsx +3 -3
  56. package/test/experimental/myAccountCmsServerSideProps.test.ts +5 -5
  57. package/test/pages/api/graphql.test.ts +175 -0
  58. package/test/pages/api/logout.test.ts +106 -0
  59. package/test/pages/api/switch-contract.test.ts +443 -15
  60. package/test/pages/pvt/account/403.test.ts +67 -0
  61. package/test/pages/pvt/account/cards/index.test.ts +3 -3
  62. package/test/sdk/account/getIsB2BBuyer.test.ts +52 -0
  63. package/test/sdk/account/refreshToken.browser.test.ts +10 -1
  64. package/test/sdk/account/refreshToken.test.ts +150 -18
  65. package/test/sdk/account/useRefreshToken.browser.test.ts +72 -0
  66. package/test/sdk/product/usePageProductsQuery.browser.test.ts +260 -0
  67. package/test/sdk/product/usePageProductsQuery.deliveryPromise.browser.test.ts +130 -0
  68. package/test/sdk/product/useProductNotFoundRedirect.browser.test.ts +83 -0
  69. package/test/sdk/product/useProductQuery.browser.test.ts +154 -0
  70. package/test/sdk/session/refreshTokenRoute.browser.test.ts +106 -0
  71. package/test/sdk/session/validateSession.browser.test.ts +111 -5
  72. package/test/server/cms/index.test.ts +102 -9
  73. package/test/server/content/promiseCache.test.ts +150 -0
  74. package/test/server/content/service.test.ts +277 -11
  75. package/test/utils/shouldBypassRefreshToken.browser.test.ts +38 -0
  76. package/test/utils/shouldBypassRefreshToken.test.ts +98 -0
  77. package/test/utils/trustedForwardedHost.test.ts +21 -0
  78. package/src/sdk/account/getIsRepresentative.ts +0 -20
  79. package/test/utils/isLocalHost.browser.test.ts +0 -37
@@ -1,5 +1,5 @@
1
1
 
2
- > @faststore/core@4.10.0 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.10.2-dev.0 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
@@ -7,34 +7,28 @@
7
7
 
8
8
  Not implemented: navigation to another Document
9
9
  Not implemented: navigation to another Document
10
- ✓  browser  test/sdk/ui/useScrollRestoration.browser.test.ts (43 tests) 1184ms
10
+ ✓  browser  test/sdk/ui/useScrollRestoration.browser.test.ts (43 tests) 912ms
11
11
  Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
12
12
  npx update-browserslist-db@latest
13
13
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
14
- ✓  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 2807ms
15
- ✓ shows the tab bar and renders Personal cards by default  1154ms
16
- ✓ paginates when there are more than 25 cards  432ms
17
- ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (22 tests) 4137ms
18
- ✓ shows a loading state while contracts load  332ms
19
- ✓ shows an error state when the list fails to load  944ms
20
- ✓ requires selecting a contract before Confirm is enabled, then switches (REQ-03)  521ms
21
- ✓ keeps Confirm disabled until a different contract is selected  319ms
22
- ✓ keeps Confirm disabled when switching is unavailable  388ms
23
- ✓ keeps Confirm disabled when the selected contract is filtered out  365ms
24
- ✓  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 2904ms
25
- ✓ opens the reject confirmation modal with the default English copy  1018ms
26
- ✓ opens the reject confirmation modal with CMS-provided labels  307ms
27
- ✓ shows the default English toast when a policy is rejected  369ms
28
- ✓ shows the CMS-provided error toast when rejecting a policy fails  338ms
29
- ✓  browser  test/components/ui/RichText/RichText.browser.test.tsx (8 tests) 389ms
30
- ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1914ms
31
- ✓ renders the menu view with contract details and manage footer  1093ms
32
- ✓ opens the contract switcher and returns to the menu on back  338ms
33
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 301ms
34
- ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 66ms
35
- ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (6 tests) 11ms
36
- ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 80ms
14
+ ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (22 tests) 3419ms
15
+ ✓ shows an error state when the list fails to load  763ms
16
+ ✓ requires selecting a contract before Confirm is enabled, then switches (REQ-03)  423ms
17
+ ✓  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 2030ms
18
+ ✓ shows the tab bar and renders Personal cards by default  1099ms
19
+ ✓  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 1982ms
20
+ ✓ opens the reject confirmation modal with the default English copy  726ms
21
+ ✓ opens the reject confirmation modal with CMS-provided labels  346ms
22
+ ✓  browser  test/components/ui/RichText/RichText.browser.test.tsx (8 tests) 440ms
23
+ ✓  browser  test/sdk/product/usePageProductsQuery.browser.test.ts (9 tests) 96ms
24
+ ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1935ms
25
+ ✓ renders the menu view with contract details and manage footer  1092ms
26
+ ✓ opens the contract switcher and returns to the menu on back  370ms
27
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 98ms
28
+ ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (6 tests) 7ms
29
+ ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 47ms
37
30
  ✓  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 79ms
31
+ ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 72ms
38
32
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx
39
33
  Error in optimistic validation: TypeError: Failed to parse URL from /api/graphql?operationName=ValidateCartMutation&operationHash=3c71b0d3fc2bade14df68abfa271858beb361b12
40
34
   at node:internal/deps/undici/undici:16416:13
@@ -64,10 +58,11 @@ Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
64
58
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx > RecommendationShelf > renders nothing when there is an error
65
59
  Error fetching recommendations undefined boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
66
60
 
67
- ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 121ms
68
- ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 79ms
69
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (7 tests) 21ms
70
- ✓  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 72ms
61
+ ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 98ms
62
+ ✓  browser  test/sdk/product/useProductQuery.browser.test.ts (5 tests) 329ms
63
+ ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 83ms
64
+ ✓  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 64ms
65
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (7 tests) 10ms
71
66
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
72
67
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
73
68
 
@@ -297,10 +292,17 @@ act(() => {
297
292
  This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
298
293
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
299
294
 
300
- ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 757ms
301
- ✓ renders the password protection form  318ms
302
- ✓  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 64ms
303
- ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 513ms
295
+ ✓  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 42ms
296
+ ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 570ms
297
+ stderr | test/sdk/session/validateSession.browser.test.ts
298
+ Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
299
+ at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
300
+ at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
301
+ at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
302
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
303
+  at processTicksAndRejections (node:internal/process/task_queues:103:5)
304
+
305
+ ✓  browser  test/sdk/session/validateSession.browser.test.ts (9 tests) 10ms
304
306
  stderr | test/components/cms/RenderSections.browser.test.tsx
305
307
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
306
308
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -309,10 +311,11 @@ This ensures that you're testing the behavior the user would see in the browser.
309
311
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
310
312
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
311
313
 
312
- ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 40ms
313
- ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 43ms
314
- ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 70ms
315
- ✓  browser  test/components/account/Menu.browser.test.tsx (6 tests) 334ms
314
+ ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 277ms
315
+ ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 29ms
316
+ ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 64ms
317
+ ✓  browser  test/sdk/product/usePageProductsQuery.deliveryPromise.browser.test.ts (3 tests) 31ms
318
+ ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 35ms
316
319
  stderr | test/sdk/localization/store-url.browser.test.ts
317
320
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
318
321
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -321,15 +324,10 @@ This ensures that you're testing the behavior the user would see in the browser.
321
324
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
322
325
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
323
326
 
324
- ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 27ms
325
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 5ms
326
- ✓  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 30ms
327
- ✓  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 135ms
328
- ✓  browser  test/components/sections/Account/AccountListQuotes.browser.test.tsx (4 tests) 144ms
329
- ✓  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 65ms
330
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 49ms
331
- ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 24ms
332
- stderr | test/components/account/doLogout.browser.test.ts
327
+ ✓  browser  test/components/account/Menu.browser.test.tsx (6 tests) 267ms
328
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 4ms
329
+ ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 32ms
330
+ stderr | test/sdk/session/refreshTokenRoute.browser.test.ts
333
331
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
334
332
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
335
333
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -337,10 +335,14 @@ This ensures that you're testing the behavior the user would see in the browser.
337
335
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
338
336
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
339
337
 
340
- ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 24ms
341
- ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 71ms
342
- ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (5 tests) 408ms
343
- stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
338
+ ✓  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 22ms
339
+ ✓  browser  test/sdk/session/refreshTokenRoute.browser.test.ts (3 tests) 11ms
340
+ ✓  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 126ms
341
+ ✓  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 70ms
342
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 36ms
343
+ ✓  browser  test/components/sections/Account/AccountListQuotes.browser.test.tsx (4 tests) 98ms
344
+ ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 16ms
345
+ stderr | test/components/account/doLogout.browser.test.ts
344
346
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
345
347
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
346
348
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -348,16 +350,13 @@ This ensures that you're testing the behavior the user would see in the browser.
348
350
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
349
351
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
350
352
 
351
- ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 24ms
352
- ✓  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 97ms
353
- ✓  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 110ms
354
- ✓  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 133ms
355
- ✓  browser  test/components/region/useRegion.browser.test.ts (1 test) 26ms
356
- ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 88ms
357
- ✓  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 24ms
358
- ✓  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 117ms
359
- ✓  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (2 tests) 213ms
360
- stderr | test/sdk/session/sessionStore.browser.test.ts
353
+ ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 19ms
354
+ ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (5 tests) 310ms
355
+ ✓  browser  test/sdk/product/useProductNotFoundRedirect.browser.test.ts (7 tests) 24ms
356
+ ✓  browser  test/sdk/account/useRefreshToken.browser.test.ts (4 tests) 134ms
357
+ ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 33ms
358
+ ✓  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (4 tests) 202ms
359
+ stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
361
360
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
362
361
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
363
362
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -365,9 +364,14 @@ This ensures that you're testing the behavior the user would see in the browser.
365
364
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
366
365
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
367
366
 
368
- ✓  browser  test/sdk/session/sessionStore.browser.test.ts (2 tests) 7ms
369
- ✓  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 39ms
370
- stderr | test/sdk/session/validateSession.browser.test.ts
367
+ ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 14ms
368
+ ✓  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 78ms
369
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 85ms
370
+ ✓  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 92ms
371
+ ✓  browser  test/components/region/useRegion.browser.test.ts (1 test) 18ms
372
+ ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 58ms
373
+ ✓  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 21ms
374
+ stderr | test/sdk/session/sessionStore.browser.test.ts
371
375
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
372
376
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
373
377
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -375,14 +379,10 @@ This ensures that you're testing the behavior the user would see in the browser.
375
379
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
376
380
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
377
381
 
378
- ✓  browser  test/sdk/session/validateSession.browser.test.ts (1 test) 6ms
379
- ✓  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 120ms
380
- ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 6ms
381
- ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 3ms
382
- ✓  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 36ms
383
- ✓  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 53ms
384
- ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 34ms
385
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 30ms
382
+ ✓  browser  test/sdk/session/sessionStore.browser.test.ts (2 tests) 5ms
383
+ ✓  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 63ms
384
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 37ms
385
+ ✓  browser  test/utils/shouldBypassRefreshToken.browser.test.ts (5 tests) 4ms
386
386
  stderr | test/sdk/account/refreshToken.browser.test.ts
387
387
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
388
388
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -391,13 +391,18 @@ This ensures that you're testing the behavior the user would see in the browser.
391
391
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
392
392
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
393
393
 
394
- ✓  node  test/server/password-protection-service.test.ts (22 tests) 40ms
395
- ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 6ms
396
- ✓  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 248ms
397
- ✓  node  test/pages/api/switch-contract.test.ts (25 tests) 72ms
398
- ✓  node  test/server/content/service.test.ts (15 tests) 28ms
399
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 12ms
400
- ✓  node  test/utils/match-url.test.ts (10 tests) 10ms
394
+ ✓  browser  test/sdk/account/refreshToken.browser.test.ts (2 tests) 4ms
395
+ ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 2ms
396
+ ✓  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 91ms
397
+ ✓  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 35ms
398
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 33ms
399
+ ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 21ms
400
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 20ms
401
+ ✓  node  test/pages/api/switch-contract.test.ts (61 tests) 128ms
402
+ ✓  node  test/server/password-protection-service.test.ts (22 tests) 28ms
403
+ ✓  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 185ms
404
+ ✓  node  test/server/content/service.test.ts (27 tests) 30ms
405
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 10ms
401
406
  stderr | test/sdk/deliveryPromise/provider.effect.test.tsx > DeliveryPromiseProvider pickup fetch > clears the loading flag after a failed request and retries on the next update
402
407
  Failed to fetch pickup points: Error: network
403
408
  at /home/runner/work/faststore/faststore/packages/core/test/sdk/deliveryPromise/provider.effect.test.tsx:250:30
@@ -424,90 +429,6 @@ This ensures that you're testing the behavior the user would see in the browser.
424
429
  at trace (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@20.19.13_jiti@2.6.1_jsdom@27.4.0_sas_13be941c57d55f08f06eeaf1c180ddfe/node_modules/vitest/dist/chunks/test.B8ej_ZHS.js:239:21)
425
430
  at runTest (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1653:12)
426
431
 
427
- ✓  node  test/sdk/deliveryPromise/provider.effect.test.tsx (9 tests) 84ms
428
- ✓  node  test/pages/api/unlock.test.ts (15 tests) 147ms
429
- ✓  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (14 tests) 10ms
430
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 11ms
431
- stderr | test/components/search/SearchInputComponent.test.tsx
432
- Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
433
-
434
- stderr | test/components/search/SearchInputComponent.test.tsx > SearchInput (OES integration) > renders without crashing
435
- Warning: React does not recognize the `visibleDropdown` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `visibledropdown` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
436
- at div
437
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
438
- at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
439
- at Suspense
440
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
441
- Warning: Unknown event handler property `onSearchSelection`. It will be ignored.
442
- at div
443
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
444
- at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
445
- at Suspense
446
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
447
- Warning: React does not recognize the `isLoading` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isloading` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
448
- at div
449
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
450
- at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
451
- at Suspense
452
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
453
- Warning: React does not recognize the `searchId` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `searchid` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
454
- at div
455
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
456
- at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
457
- at Suspense
458
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
459
- Warning: Unknown event handler property `onCloseDrawer`. It will be ignored.
460
- at div
461
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
462
- at div
463
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
464
- at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
465
- at Suspense
466
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
467
- Warning: Invalid value for prop `formatter` on <div> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior
468
- at div
469
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
470
- at div
471
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
472
- at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
473
- at Suspense
474
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
475
- Warning: React does not recognize the `isOpen` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isopen` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
476
- at div
477
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
478
- at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
479
- at Suspense
480
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
481
- Warning: React does not recognize the `overlayProps` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `overlayprops` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
482
- at div
483
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
484
- at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
485
- at Suspense
486
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
487
- Warning: React does not recognize the `providerProps` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `providerprops` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
488
- at div
489
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
490
- at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
491
- at Suspense
492
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
493
-
494
- ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 74ms
495
- ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (15 tests) 416ms
496
- stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > redirects to /pvt/account/403 when the query fails with 401/403
497
- { extensions: { status: 401 } }
498
-
499
- stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > renders the error state (no redirect) when the query fails with a non-auth status
500
- { extensions: { status: 502 } }
501
-
502
- ✓  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 12ms
503
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 40ms
504
- ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (11 tests) 839ms
505
- ✓ navigates with the search term on blur  361ms
506
- ✓ navigates without a label param when the search is cleared  361ms
507
- ✓  node  test/components/quotes/quoteFilters.test.ts (26 tests) 42ms
508
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 16ms
509
- ✓  node  test/utils/productJsonLd.test.ts (36 tests) 17ms
510
- ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 9ms
511
432
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
512
433
  Graphql execution returned with error: [
513
434
  {
@@ -554,14 +475,15 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
554
475
  { message: 'bad', status: 400, type: 'BadRequestError' }
555
476
  ]
556
477
 
478
+ ✓  node  test/sdk/deliveryPromise/provider.effect.test.tsx (9 tests) 60ms
557
479
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > sets cache-control: no-store on error responses so a bare 404/410 is not cached by intermediaries
558
480
  Graphql execution returned with error: [ { message: 'missing', status: 404, type: 'NotFoundError' } ]
559
481
 
560
482
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps BadRequestError thrown by execute to its status
561
483
  Something unexpected occurred querying Graphql endpoint:
562
- U [FastStoreError]: malformed
563
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:201:31
564
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:207:39
484
+ k [FastStoreError]: malformed
485
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:210:31
486
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:216:39
565
487
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1024:60
566
488
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
567
489
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
@@ -576,8 +498,8 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
576
498
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps UnauthorizedError thrown by execute to its status
577
499
  Something unexpected occurred querying Graphql endpoint:
578
500
  de [FastStoreError]: expired
579
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:202:33
580
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:207:39
501
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:211:33
502
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:216:39
581
503
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1024:60
582
504
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
583
505
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
@@ -592,8 +514,8 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
592
514
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps an unexpected failure thrown by execute to its status
593
515
  Something unexpected occurred querying Graphql endpoint:
594
516
  Error: socket hang up
595
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:203:37
596
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:207:39
517
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:212:37
518
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:216:39
597
519
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1024:60
598
520
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
599
521
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
@@ -606,7 +528,7 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
606
528
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > skips the cache-control header when headers were already sent
607
529
  Something unexpected occurred querying Graphql endpoint:
608
530
  Error: boom after flush
609
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:219:37
531
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:228:37
610
532
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
611
533
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
612
534
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1243:20
@@ -617,76 +539,197 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
617
539
  at trace (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@20.19.13_jiti@2.6.1_jsdom@27.4.0_sas_13be941c57d55f08f06eeaf1c180ddfe/node_modules/vitest/dist/chunks/test.B8ej_ZHS.js:239:21)
618
540
  at runTest (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1653:12)
619
541
 
620
- ✓  node  test/pages/api/graphql.test.ts (19 tests) 29ms
621
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 30ms
622
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 7ms
542
+ stderr | test/pages/api/graphql.test.ts > /api/graphql ValidateSession refresh-token bypass > forces a 401 on the production host brandless.vtex.app
543
+ Something unexpected occurred querying Graphql endpoint:
544
+ de [FastStoreError]: Unauthorized: Token expired. Please login again or refresh the page.
545
+ at assertValidateSessionTokenIsFresh (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:295:11)
546
+ at Module.handler (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:372:5)
547
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:306:13
548
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1026:60
549
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
550
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
551
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1243:20
552
+ at new Promise (<anonymous>)
553
+ at runWithTimeout (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1209:10)
554
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1653:37 {
555
+ extensions: { status: 401, type: 'UnauthorizedError' }
556
+ }
557
+
558
+ stderr | test/pages/api/graphql.test.ts > /api/graphql ValidateSession refresh-token bypass > forces a 401 on the production host brandless.fast.store
559
+ Something unexpected occurred querying Graphql endpoint:
560
+ de [FastStoreError]: Unauthorized: Token expired. Please login again or refresh the page.
561
+ at assertValidateSessionTokenIsFresh (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:295:11)
562
+ at Module.handler (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:372:5)
563
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:306:13
564
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1026:60
565
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
566
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
567
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1243:20
568
+ at new Promise (<anonymous>)
569
+ at runWithTimeout (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1209:10)
570
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1653:37 {
571
+ extensions: { status: 401, type: 'UnauthorizedError' }
572
+ }
573
+
574
+ ✓  node  test/pages/api/graphql.test.ts (30 tests) 32ms
575
+ ✓  node  test/utils/match-url.test.ts (10 tests) 8ms
576
+ ✓  node  test/pages/api/unlock.test.ts (15 tests) 124ms
577
+ ✓  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (14 tests) 10ms
578
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 6ms
579
+ stderr | test/components/search/SearchInputComponent.test.tsx
580
+ Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
581
+
582
+ stderr | test/components/search/SearchInputComponent.test.tsx > SearchInput (OES integration) > renders without crashing
583
+ Warning: React does not recognize the `visibleDropdown` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `visibledropdown` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
584
+ at div
585
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
586
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
587
+ at Suspense
588
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
589
+ Warning: Unknown event handler property `onSearchSelection`. It will be ignored.
590
+ at div
591
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
592
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
593
+ at Suspense
594
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
595
+ Warning: React does not recognize the `isLoading` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isloading` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
596
+ at div
597
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
598
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
599
+ at Suspense
600
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
601
+ Warning: React does not recognize the `searchId` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `searchid` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
602
+ at div
603
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
604
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
605
+ at Suspense
606
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
607
+ Warning: Unknown event handler property `onCloseDrawer`. It will be ignored.
608
+ at div
609
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
610
+ at div
611
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
612
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
613
+ at Suspense
614
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
615
+ Warning: Invalid value for prop `formatter` on <div> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior
616
+ at div
617
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
618
+ at div
619
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
620
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
621
+ at Suspense
622
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
623
+ Warning: React does not recognize the `isOpen` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isopen` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
624
+ at div
625
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
626
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
627
+ at Suspense
628
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
629
+ Warning: React does not recognize the `overlayProps` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `overlayprops` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
630
+ at div
631
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
632
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
633
+ at Suspense
634
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
635
+ Warning: React does not recognize the `providerProps` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `providerprops` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
636
+ at div
637
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
638
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
639
+ at Suspense
640
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
641
+
642
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 72ms
643
+ ✓  node  test/sdk/account/refreshToken.test.ts (21 tests) 11ms
644
+ ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (15 tests) 350ms
645
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 39ms
646
+ stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > redirects to /pvt/account/403 when the query fails with 401/403
647
+ { extensions: { status: 401 } }
648
+
649
+ stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > renders the error state (no redirect) when the query fails with a non-auth status
650
+ { extensions: { status: 502 } }
651
+
652
+ ✓  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 7ms
653
+ ✓  node  test/components/quotes/quoteFilters.test.ts (26 tests) 20ms
654
+ ✓  node  test/utils/productJsonLd.test.ts (36 tests) 7ms
655
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 7ms
656
+ ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (11 tests) 807ms
657
+ ✓ navigates with the search term on blur  359ms
658
+ ✓ navigates without a label param when the search is cleared  358ms
659
+ ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 12ms
660
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 23ms
661
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 6ms
623
662
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
624
663
  Set password request failed: Bad Request
625
664
 
626
- ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 49ms
627
- ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 45ms
628
- ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 5ms
629
- ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (14 tests) 130ms
630
- ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (8 tests) 191ms
631
- ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 8ms
632
- ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 8ms
633
- ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (10 tests) 125ms
634
- ✓  node  test/sdk/redirects/index.test.ts (7 tests) 46ms
635
- ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 50ms
636
- ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 51ms
637
- ✓  node  test/proxy.localization.test.ts (5 tests) 73ms
638
- ✓  node  test/components/account/orders/getDeliveryOptionLabel.test.ts (21 tests) 9ms
639
- ✓  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 24ms
640
- ✓  node  test/server/cms/myAccountDefaultSections.test.ts (9 tests) 7ms
641
- ✓  node  test/utils/productJsonLdRendering.test.tsx (5 tests) 15ms
642
- ✓  node  test/utils/trustedForwardedHost.test.ts (27 tests) 6ms
643
- ✓  node  test/server/index.test.ts (7 tests) 1067ms
644
- ✓ should handle options and execute  493ms
645
- ✓  node  test/proxy.test.ts (4 tests) 21ms
646
- ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 52ms
647
- ✓  node  test/server/webops-api.test.ts (9 tests) 16ms
648
- ✓  node  test/sdk/localization/store-url.test.ts (4 tests) 5ms
649
- ✓  node  test/components/account/orders/StatusCard.test.ts (3 tests) 37ms
650
- ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 45ms
651
- ✓  node  test/sdk/deliveryPromise/queries.test.ts (4 tests) 14ms
652
- ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 12ms
653
- ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 6ms
665
+ ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 35ms
666
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 23ms
667
+ ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 4ms
668
+ ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (8 tests) 108ms
669
+ ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (14 tests) 145ms
670
+ ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 11ms
671
+ ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (10 tests) 93ms
672
+ ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 7ms
673
+ ✓  node  test/server/cms/index.test.ts (7 tests) 9ms
674
+ ✓  node  test/server/content/promiseCache.test.ts (10 tests) 12ms
675
+ ✓  node  test/sdk/redirects/index.test.ts (7 tests) 49ms
676
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 43ms
677
+ ✓  node  test/proxy.localization.test.ts (5 tests) 51ms
678
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 35ms
679
+ ✓  node  test/utils/trustedForwardedHost.test.ts (36 tests) 6ms
680
+ ✓  node  test/components/account/orders/getDeliveryOptionLabel.test.ts (21 tests) 5ms
681
+ ✓  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 18ms
682
+ ✓  node  test/server/cms/myAccountDefaultSections.test.ts (9 tests) 5ms
683
+ ✓  node  test/utils/productJsonLdRendering.test.tsx (5 tests) 11ms
684
+ ✓  node  test/server/index.test.ts (7 tests) 815ms
685
+ ✓ should handle options and execute  348ms
686
+ ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 57ms
687
+ ✓  node  test/proxy.test.ts (4 tests) 22ms
688
+ ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 30ms
689
+ ✓  node  test/pages/api/logout.test.ts (4 tests) 29ms
690
+ ✓  node  test/utils/shouldBypassRefreshToken.test.ts (14 tests) 5ms
691
+ ✓  node  test/server/webops-api.test.ts (9 tests) 9ms
692
+ ✓  node  test/components/account/orders/StatusCard.test.ts (3 tests) 22ms
693
+ ✓  node  test/sdk/localization/store-url.test.ts (4 tests) 3ms
694
+ ✓  node  test/sdk/deliveryPromise/queries.test.ts (4 tests) 7ms
695
+ ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 9ms
654
696
  ✓  node  test/server/cms/global.test.ts (3 tests) 5ms
655
- ✓  node  test/sdk/deliveryPromise/provider.test.ts (11 tests) 7ms
656
- ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 31ms
657
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 7ms
658
- ✓  node  test/components/account/Layout.test.tsx (6 tests) 78ms
659
- ✓  node  test/server/rootSpan.test.ts (4 tests) 38ms
660
- ✓  node  test/pages/api/preview.test.ts (2 tests) 10ms
661
- ✓  node  test/components/search/SearchInput.test.ts (6 tests) 9ms
662
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 6ms
697
+ ✓  node  test/sdk/deliveryPromise/provider.test.ts (11 tests) 5ms
698
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 27ms
699
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 6ms
700
+ ✓  node  test/components/account/Layout.test.tsx (6 tests) 74ms
701
+ ✓  node  test/server/rootSpan.test.ts (4 tests) 29ms
702
+ ✓  node  test/pages/api/preview.test.ts (2 tests) 7ms
703
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 3ms
704
+ ✓  node  test/components/search/SearchInput.test.ts (6 tests) 5ms
705
+ ✓  node  test/pages/pvt/account/403.test.ts (5 tests) 5ms
706
+ ✓  node  test/components/region/useRegion.test.ts (1 test) 18ms
663
707
  ✓  node  test/sdk/recommendations/vrn.test.ts (5 tests) 4ms
664
- ✓  node  test/server/cms/index.test.ts (2 tests) 6ms
665
- ✓  node  test/components/region/useRegion.test.ts (1 test) 29ms
666
- ✓  node  test/utils/retry.test.ts (5 tests) 13ms
667
- ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 5ms
668
- ✓  node  test/utils/userOrderStatus.test.ts (4 tests) 6ms
669
- ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 193ms
670
- ✓  node  test/utils/unlockResponse.test.ts (11 tests) 7ms
671
- ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 47ms
672
- ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 7ms
673
- ✓  node  test/sdk/deliveryPromise/reducer.test.ts (2 tests) 4ms
674
- ✓  node  test/utils/isLocalHost.test.ts (7 tests) 5ms
675
- ✓  node  test/sdk/session/toSessionInput.test.ts (3 tests) 4ms
676
- ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (4 tests) 54ms
708
+ ✓  node  test/utils/retry.test.ts (5 tests) 11ms
709
+ ✓  node  test/sdk/account/getIsB2BBuyer.test.ts (7 tests) 5ms
710
+ ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 179ms
711
+ ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 4ms
712
+ ✓  node  test/utils/userOrderStatus.test.ts (4 tests) 4ms
713
+ ✓  node  test/utils/unlockResponse.test.ts (11 tests) 3ms
714
+ ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 4ms
715
+ ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 38ms
716
+ ✓  node  test/sdk/deliveryPromise/reducer.test.ts (2 tests) 7ms
717
+ ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (4 tests) 37ms
718
+ ✓  node  test/utils/isLocalHost.test.ts (7 tests) 3ms
719
+ ✓  node  test/sdk/session/toSessionInput.test.ts (3 tests) 3ms
677
720
  ✓  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 4ms
678
721
  ✓  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 3ms
679
- ✓  node  test/utils/getCookie.test.ts (4 tests) 5ms
680
- ✓  node  test/sdk/session/isSignInAreaResolved.test.ts (3 tests) 4ms
681
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 43ms
682
- ✓  node  test/utils/filterChannel.test.ts (2 tests) 5ms
683
- ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 5ms
684
- ✓  node  test/instrumentation.test.ts (3 tests) 7ms
685
- ✓  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 4ms
686
- ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 12ms
687
-
688
-  Test Files  135 passed (135)
689
-  Tests  1076 passed (1076)
690
-  Start at  19:21:02
691
-  Duration  63.77s (transform 15.47s, setup 0ms, import 57.20s, tests 23.12s, environment 78.69s)
722
+ ✓  node  test/utils/getCookie.test.ts (4 tests) 4ms
723
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 27ms
724
+ ✓  node  test/sdk/session/isSignInAreaResolved.test.ts (3 tests) 3ms
725
+ ✓  node  test/utils/filterChannel.test.ts (2 tests) 3ms
726
+ ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 3ms
727
+ ✓  node  test/instrumentation.test.ts (3 tests) 5ms
728
+ ✓  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 3ms
729
+ ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 7ms
730
+
731
+  Test Files  146 passed (146)
732
+  Tests  1249 passed (1249)
733
+  Start at  00:15:46
734
+  Duration  52.52s (transform 12.61s, setup 0ms, import 46.19s, tests 19.06s, environment 64.17s)
692
735