@faststore/core 4.11.4-dev.3 β†’ 4.11.4-dev.4

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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @faststore/core@4.11.4-dev.2 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.11.4-dev.3 generate /home/runner/work/faststore/faststore/packages/core
3
3
  > pnpm run gen-types && pnpm run cache-graphql
4
4
 
5
5
 
6
- > @faststore/core@4.11.4-dev.2 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.11.4-dev.3 gen-types /home/runner/work/faststore/faststore/packages/core
7
7
  > node ../cli/bin/run generate-types .
8
8
 
9
9
  [STARTED] Parse Configuration
@@ -19,7 +19,7 @@
19
19
  [COMPLETED] Generate to @generated/
20
20
  [COMPLETED] Generate outputs
21
21
 
22
- > @faststore/core@4.11.4-dev.2 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.11.4-dev.3 cache-graphql /home/runner/work/faststore/faststore/packages/core
23
23
  > node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json
24
24
 
25
25
  [Info] - Config file location: /home/runner/work/faststore/faststore/packages/core/discovery.config.default.js
@@ -1,5 +1,5 @@
1
1
 
2
- > @faststore/core@4.11.4-dev.2 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.11.4-dev.3 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
@@ -7,25 +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) 991ms
10
+ βœ“  browser  test/sdk/ui/useScrollRestoration.browser.test.ts (43 tests) 992ms
11
11
  Browserslist: browsers data (caniuse-lite) is 9 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/ContractSwitcher.browser.test.tsx (22 tests) 2246ms
15
- βœ“ shows an error state when the list fails to load  501ms
16
- βœ“  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 1654ms
17
- βœ“ shows the tab bar and renders Personal cards by default  844ms
18
- βœ“  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 1555ms
19
- βœ“ opens the reject confirmation modal with the default English copy  861ms
20
- βœ“  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1190ms
21
- βœ“ renders the menu view with contract details and manage footer  671ms
22
- βœ“  browser  test/components/ui/RichText/RichText.browser.test.tsx (8 tests) 290ms
23
- βœ“  browser  test/sdk/product/usePageProductsQuery.browser.test.ts (9 tests) 50ms
24
- βœ“  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 75ms
25
- βœ“  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 27ms
26
- βœ“  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (6 tests) 12ms
27
- βœ“  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 48ms
28
- βœ“  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 75ms
14
+ βœ“  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 2255ms
15
+ βœ“ shows the tab bar and renders Personal cards by default  814ms
16
+ βœ“ paginates when there are more than 25 cards  405ms
17
+ βœ“  browser  test/components/account/ContractSwitcher.browser.test.tsx (22 tests) 3149ms
18
+ βœ“ shows an error state when the list fails to load  666ms
19
+ βœ“ keeps Confirm disabled until a different contract is selected  355ms
20
+ βœ“  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 2411ms
21
+ βœ“ opens the reject confirmation modal with the default English copy  728ms
22
+ βœ“ opens the reject confirmation modal with CMS-provided labels  359ms
23
+ βœ“  browser  test/sdk/product/usePageProductsQuery.browser.test.ts (9 tests) 96ms
24
+ βœ“  browser  test/components/ui/RichText/RichText.browser.test.tsx (8 tests) 388ms
25
+ βœ“  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1694ms
26
+ βœ“ renders the menu view with contract details and manage footer  971ms
27
+ βœ“  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 94ms
28
+ βœ“  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 100ms
29
+ βœ“  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (6 tests) 10ms
30
+ βœ“  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 93ms
31
+ βœ“  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 84ms
29
32
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx
30
33
  Error in optimistic validation: TypeError: Failed to parse URL from /api/graphql?operationName=ValidateCartMutation&operationHash=3c71b0d3fc2bade14df68abfa271858beb361b12
31
34
   at node:internal/deps/undici/undici:16416:13
@@ -55,20 +58,12 @@ Browserslist: browsers data (caniuse-lite) is 9 months old. Please run:
55
58
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx > RecommendationShelf > renders nothing when there is an error
56
59
  Error fetching recommendations undefined boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
57
60
 
58
- βœ“  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 89ms
59
- βœ“  browser  test/sdk/product/useProductQuery.browser.test.ts (5 tests) 311ms
60
- βœ“  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 43ms
61
- βœ“  browser  test/sdk/session/getInitialSession.browser.test.ts (7 tests) 14ms
62
- βœ“  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 54ms
63
- stderr | test/sdk/session/validateSession.browser.test.ts
64
- Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
65
- at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
66
- at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
67
- at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
68
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
69
-  at processTicksAndRejections (node:internal/process/task_queues:103:5)
70
-
71
- βœ“  browser  test/sdk/session/validateSession.browser.test.ts (9 tests) 20ms
61
+ βœ“  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 116ms
62
+ βœ“  browser  test/sdk/product/useProductQuery.browser.test.ts (5 tests) 371ms
63
+ βœ“  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 59ms
64
+ βœ“  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 126ms
65
+ βœ“  browser  test/sdk/session/getInitialSession.browser.test.ts (7 tests) 15ms
66
+ βœ“  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 60ms
72
67
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
73
68
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
74
69
 
@@ -298,10 +293,19 @@ act(() => {
298
293
  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
299
294
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
300
295
 
301
- βœ“  browser  test/pages/password-protection.browser.test.tsx (6 tests) 649ms
302
- βœ“  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 89ms
303
- βœ“  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 433ms
304
- βœ“  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 68ms
296
+ βœ“  browser  test/pages/password-protection.browser.test.tsx (6 tests) 852ms
297
+ βœ“ renders the password protection form  405ms
298
+ stderr | test/sdk/session/validateSession.browser.test.ts
299
+ Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
300
+ at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
301
+ at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
302
+ at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
303
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
304
+  at processTicksAndRejections (node:internal/process/task_queues:103:5)
305
+
306
+ βœ“  browser  test/sdk/session/validateSession.browser.test.ts (9 tests) 22ms
307
+ βœ“  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 824ms
308
+ βœ“ shows manage link for organization managers  501ms
305
309
  stderr | test/components/cms/RenderSections.browser.test.tsx
306
310
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
307
311
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -310,9 +314,10 @@ This ensures that you're testing the behavior the user would see in the browser.
310
314
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
311
315
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
312
316
 
313
- βœ“  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 52ms
314
- βœ“  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 21ms
315
- βœ“  browser  test/sdk/product/usePageProductsQuery.deliveryPromise.browser.test.ts (3 tests) 26ms
317
+ βœ“  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 60ms
318
+ βœ“  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 107ms
319
+ βœ“  browser  test/sdk/product/usePageProductsQuery.deliveryPromise.browser.test.ts (3 tests) 32ms
320
+ βœ“  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 28ms
316
321
  stderr | test/sdk/localization/store-url.browser.test.ts
317
322
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
318
323
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -322,9 +327,8 @@ This ensures that you're testing the behavior the user would see in the browser.
322
327
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
323
328
 
324
329
  βœ“  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 5ms
325
- βœ“  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 25ms
326
- βœ“  browser  test/components/account/Menu.browser.test.tsx (6 tests) 202ms
327
- βœ“  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 17ms
330
+ βœ“  browser  test/components/account/Menu.browser.test.tsx (6 tests) 290ms
331
+ βœ“  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 24ms
328
332
  stderr | test/sdk/session/refreshTokenRoute.browser.test.ts
329
333
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
330
334
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -333,12 +337,13 @@ This ensures that you're testing the behavior the user would see in the browser.
333
337
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
334
338
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
335
339
 
336
- βœ“  browser  test/sdk/session/refreshTokenRoute.browser.test.ts (3 tests) 5ms
337
- βœ“  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 120ms
338
- βœ“  browser  test/components/sections/Account/AccountListQuotes.browser.test.tsx (4 tests) 87ms
339
- βœ“  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 35ms
340
- βœ“  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 26ms
341
- βœ“  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 9ms
340
+ βœ“  browser  test/sdk/session/refreshTokenRoute.browser.test.ts (3 tests) 8ms
341
+ βœ“  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 33ms
342
+ βœ“  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 131ms
343
+ βœ“  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 55ms
344
+ βœ“  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 60ms
345
+ βœ“  browser  test/components/sections/Account/AccountListQuotes.browser.test.tsx (4 tests) 114ms
346
+ βœ“  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 19ms
342
347
  stderr | test/components/account/doLogout.browser.test.ts
343
348
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
344
349
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -347,12 +352,11 @@ This ensures that you're testing the behavior the user would see in the browser.
347
352
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
348
353
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
349
354
 
350
- βœ“  browser  test/components/account/doLogout.browser.test.ts (1 test) 28ms
351
- βœ“  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (5 tests) 195ms
352
- βœ“  browser  test/sdk/product/useProductNotFoundRedirect.browser.test.ts (7 tests) 20ms
353
- βœ“  browser  test/sdk/account/useRefreshToken.browser.test.ts (4 tests) 134ms
354
- βœ“  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 27ms
355
- βœ“  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (4 tests) 140ms
355
+ βœ“  browser  test/components/account/doLogout.browser.test.ts (1 test) 21ms
356
+ βœ“  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (5 tests) 266ms
357
+ βœ“  browser  test/sdk/product/useProductNotFoundRedirect.browser.test.ts (7 tests) 35ms
358
+ βœ“  browser  test/sdk/account/useRefreshToken.browser.test.ts (4 tests) 139ms
359
+ βœ“  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 44ms
356
360
  stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
357
361
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
358
362
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -361,12 +365,15 @@ This ensures that you're testing the behavior the user would see in the browser.
361
365
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
362
366
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
363
367
 
364
- βœ“  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 13ms
365
- βœ“  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 58ms
366
- βœ“  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 61ms
367
- βœ“  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 61ms
368
- βœ“  browser  test/components/region/useRegion.browser.test.ts (1 test) 14ms
369
- βœ“  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 49ms
368
+ βœ“  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (4 tests) 251ms
369
+ βœ“  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 18ms
370
+ βœ“  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 81ms
371
+ βœ“  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 104ms
372
+ βœ“  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 102ms
373
+ βœ“  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 66ms
374
+ βœ“  browser  test/components/region/useRegion.browser.test.ts (1 test) 22ms
375
+ βœ“  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 25ms
376
+ βœ“  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 100ms
370
377
  stderr | test/sdk/session/sessionStore.browser.test.ts
371
378
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
372
379
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -375,11 +382,9 @@ This ensures that you're testing the behavior the user would see in the browser.
375
382
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
376
383
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
377
384
 
378
- βœ“  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 19ms
379
- βœ“  browser  test/sdk/session/sessionStore.browser.test.ts (2 tests) 4ms
380
- βœ“  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 40ms
381
- βœ“  browser  test/utils/shouldBypassRefreshToken.browser.test.ts (5 tests) 3ms
382
- βœ“  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 27ms
385
+ βœ“  browser  test/sdk/session/sessionStore.browser.test.ts (2 tests) 7ms
386
+ βœ“  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 40ms
387
+ βœ“  browser  test/utils/shouldBypassRefreshToken.browser.test.ts (5 tests) 4ms
383
388
  stderr | test/sdk/account/refreshToken.browser.test.ts
384
389
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
385
390
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -388,18 +393,19 @@ This ensures that you're testing the behavior the user would see in the browser.
388
393
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
389
394
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
390
395
 
391
- βœ“  browser  test/sdk/account/refreshToken.browser.test.ts (2 tests) 4ms
392
- βœ“  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 2ms
393
- βœ“  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 70ms
394
- βœ“  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 28ms
395
- βœ“  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 26ms
396
- βœ“  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 23ms
397
- βœ“  node  test/pages/api/switch-contract.test.ts (61 tests) 139ms
398
- βœ“  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 116ms
399
- βœ“  node  test/utils/localization/bindingPaths.test.ts (71 tests) 14ms
400
- βœ“  node  test/server/password-protection-service.test.ts (22 tests) 22ms
401
- βœ“  node  test/server/content/service.test.ts (32 tests) 30ms
402
- βœ“  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 8ms
396
+ βœ“  browser  test/sdk/account/refreshToken.browser.test.ts (2 tests) 6ms
397
+ βœ“  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 7ms
398
+ βœ“  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 106ms
399
+ βœ“  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 43ms
400
+ βœ“  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 39ms
401
+ βœ“  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 25ms
402
+ βœ“  node  test/pages/api/switch-contract.test.ts (61 tests) 141ms
403
+ βœ“  node  test/utils/localization/bindingPaths.test.ts (71 tests) 20ms
404
+ βœ“  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 161ms
405
+ βœ“  node  test/server/password-protection-service.test.ts (22 tests) 32ms
406
+ βœ“  node  test/server/content/service.test.ts (32 tests) 42ms
407
+ βœ“  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 9ms
408
+ βœ“  node  test/utils/match-url.test.ts (10 tests) 10ms
403
409
  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
404
410
  Failed to fetch pickup points: Error: network
405
411
  at /home/runner/work/faststore/faststore/packages/core/test/sdk/deliveryPromise/provider.effect.test.tsx:250:30
@@ -426,8 +432,7 @@ This ensures that you're testing the behavior the user would see in the browser.
426
432
  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)
427
433
  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)
428
434
 
429
- βœ“  node  test/sdk/deliveryPromise/provider.effect.test.tsx (9 tests) 50ms
430
- βœ“  node  test/utils/match-url.test.ts (10 tests) 5ms
435
+ βœ“  node  test/sdk/deliveryPromise/provider.effect.test.tsx (9 tests) 86ms
431
436
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
432
437
  Graphql execution returned with error: [
433
438
  {
@@ -569,131 +574,141 @@ This ensures that you're testing the behavior the user would see in the browser.
569
574
  extensions: { status: 401, type: 'UnauthorizedError' }
570
575
  }
571
576
 
572
- βœ“  node  test/pages/api/graphql.test.ts (30 tests) 25ms
573
- βœ“  node  test/pages/api/unlock.test.ts (15 tests) 83ms
574
- βœ“  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (14 tests) 10ms
577
+ βœ“  node  test/pages/api/graphql.test.ts (30 tests) 40ms
578
+ βœ“  node  test/pages/api/unlock.test.ts (15 tests) 129ms
579
+ βœ“  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (14 tests) 11ms
580
+ βœ“  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 6ms
575
581
  stderr | test/components/search/SearchInputComponent.test.tsx
576
582
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
577
583
 
578
- βœ“  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 5ms
579
584
  stderr | test/components/search/SearchInputComponent.test.tsx > SearchInput (OES integration) > renders without crashing
580
585
  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.
581
586
  at div
582
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
587
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
583
588
  at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
584
589
  at Suspense
585
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
590
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
586
591
  Warning: Unknown event handler property `onSearchSelection`. It will be ignored.
587
592
  at div
588
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
593
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
589
594
  at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
590
595
  at Suspense
591
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
596
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
592
597
  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.
593
598
  at div
594
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
599
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
595
600
  at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
596
601
  at Suspense
597
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
602
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
598
603
  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.
599
604
  at div
600
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
605
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
601
606
  at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
602
607
  at Suspense
603
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
608
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
604
609
  Warning: Unknown event handler property `onCloseDrawer`. It will be ignored.
605
610
  at div
606
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
611
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
607
612
  at div
608
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
613
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
609
614
  at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
610
615
  at Suspense
611
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
616
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
612
617
  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
613
618
  at div
614
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
619
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
615
620
  at div
616
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
621
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
617
622
  at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
618
623
  at Suspense
619
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
624
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
620
625
  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.
621
626
  at div
622
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
627
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
623
628
  at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
624
629
  at Suspense
625
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
630
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
626
631
  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.
627
632
  at div
628
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
633
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
629
634
  at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
630
635
  at Suspense
631
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
636
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
632
637
  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.
633
638
  at div
634
- at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
639
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
640
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
641
+ at Suspense
642
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
643
+
644
+ stderr | test/components/search/SearchInputComponent.test.tsx > SearchInput (OES integration) > does not render attachment button when user is not authenticated
645
+ Warning: React does not recognize the `attachmentButtonAriaLabel` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `attachmentbuttonarialabel` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
646
+ at input
647
+ at InputField (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:4:5)
648
+ at div
649
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:47:5
635
650
  at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
636
651
  at Suspense
637
- at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
652
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
638
653
 
639
- βœ“  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 58ms
640
- βœ“  node  test/sdk/account/refreshToken.test.ts (21 tests) 6ms
641
- βœ“  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (15 tests) 269ms
642
- βœ“  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 34ms
654
+ βœ“  node  test/components/search/SearchInputComponent.test.tsx (8 tests) 148ms
655
+ βœ“  node  test/sdk/account/refreshToken.test.ts (21 tests) 11ms
656
+ βœ“  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (15 tests) 398ms
657
+ βœ“  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 43ms
643
658
  stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > redirects to /pvt/account/403 when the query fails with 401/403
644
659
  { extensions: { status: 401 } }
645
660
 
646
661
  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
647
662
  { extensions: { status: 502 } }
648
663
 
649
- βœ“  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 6ms
650
- βœ“  node  test/components/quotes/quoteFilters.test.ts (26 tests) 16ms
651
- βœ“  node  test/utils/cookieCacheBusting.test.ts (10 tests) 6ms
652
- βœ“  node  test/utils/productJsonLd.test.ts (36 tests) 5ms
653
- βœ“  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 4ms
654
- βœ“  node  test/components/quotes/MyAccountListQuotes.test.tsx (11 tests) 788ms
655
- βœ“ navigates with the search term on blur  355ms
656
- βœ“ navigates without a label param when the search is cleared  356ms
657
- βœ“  node  test/utils/clearCookies.test.ts (20 tests) 16ms
664
+ βœ“  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 7ms
665
+ βœ“  node  test/components/quotes/quoteFilters.test.ts (26 tests) 22ms
666
+ βœ“  node  test/utils/productJsonLd.test.ts (36 tests) 8ms
667
+ βœ“  node  test/components/quotes/MyAccountListQuotes.test.tsx (11 tests) 808ms
668
+ βœ“ navigates with the search term on blur  359ms
669
+ βœ“ navigates without a label param when the search is cleared  357ms
670
+ βœ“  node  test/utils/cookieCacheBusting.test.ts (10 tests) 11ms
671
+ βœ“  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 6ms
672
+ βœ“  node  test/utils/clearCookies.test.ts (20 tests) 27ms
658
673
  βœ“  node  test/utils/multipleTemplates.test.ts (8 tests) 4ms
659
674
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
660
675
  Set password request failed: Bad Request
661
676
 
662
- βœ“  node  test/sdk/account/useSetPassword.test.ts (6 tests) 27ms
663
- βœ“  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 24ms
664
- βœ“  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 4ms
665
- βœ“  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (8 tests) 90ms
666
- βœ“  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (14 tests) 82ms
667
- βœ“  node  test/utils/localization/hreflang.test.ts (8 tests) 6ms
668
- βœ“  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 6ms
669
- βœ“  node  test/server/cms/index.test.ts (7 tests) 5ms
670
- βœ“  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (10 tests) 60ms
671
- βœ“  node  test/server/content/promiseCache.test.ts (10 tests) 7ms
672
- βœ“  node  test/sdk/redirects/index.test.ts (7 tests) 23ms
673
- βœ“  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 32ms
674
- βœ“  node  test/utils/toRevalidate.test.ts (16 tests) 30ms
675
- βœ“  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 30ms
676
- βœ“  node  test/utils/trustedForwardedHost.test.ts (36 tests) 6ms
677
- βœ“  node  test/proxy.localization.test.ts (5 tests) 58ms
677
+ βœ“  node  test/sdk/account/useSetPassword.test.ts (6 tests) 42ms
678
+ βœ“  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 36ms
679
+ βœ“  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 6ms
680
+ βœ“  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (8 tests) 149ms
681
+ βœ“  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (14 tests) 122ms
682
+ βœ“  node  test/utils/localization/hreflang.test.ts (8 tests) 7ms
683
+ βœ“  node  test/server/cms/index.test.ts (7 tests) 7ms
684
+ βœ“  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (10 tests) 101ms
685
+ βœ“  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 8ms
686
+ βœ“  node  test/server/content/promiseCache.test.ts (10 tests) 14ms
687
+ βœ“  node  test/sdk/redirects/index.test.ts (7 tests) 43ms
688
+ βœ“  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 45ms
689
+ βœ“  node  test/utils/toRevalidate.test.ts (16 tests) 32ms
690
+ βœ“  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 46ms
691
+ βœ“  node  test/utils/trustedForwardedHost.test.ts (36 tests) 9ms
692
+ βœ“  node  test/proxy.localization.test.ts (5 tests) 54ms
678
693
  βœ“  node  test/components/account/orders/getDeliveryOptionLabel.test.ts (21 tests) 5ms
679
- βœ“  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 9ms
680
- βœ“  node  test/server/cms/myAccountDefaultSections.test.ts (9 tests) 3ms
681
- βœ“  node  test/utils/productJsonLdRendering.test.tsx (5 tests) 7ms
682
- βœ“  node  test/server/index.test.ts (7 tests) 761ms
683
- βœ“ should handle options and execute  463ms
684
- βœ“  node  test/proxy.test.ts (4 tests) 15ms
685
- βœ“  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 32ms
686
- βœ“  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 22ms
687
- βœ“  node  test/pages/api/logout.test.ts (4 tests) 21ms
688
- βœ“  node  test/utils/shouldBypassRefreshToken.test.ts (14 tests) 4ms
689
- βœ“  node  test/server/webops-api.test.ts (9 tests) 7ms
690
- βœ“  node  test/components/account/orders/StatusCard.test.ts (3 tests) 17ms
694
+ βœ“  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 14ms
695
+ βœ“  node  test/server/cms/myAccountDefaultSections.test.ts (9 tests) 5ms
696
+ βœ“  node  test/utils/productJsonLdRendering.test.tsx (5 tests) 12ms
697
+ βœ“  node  test/server/index.test.ts (7 tests) 834ms
698
+ βœ“ should handle options and execute  432ms
699
+ βœ“  node  test/proxy.test.ts (4 tests) 14ms
700
+ βœ“  node  test/pages/api/logout.test.ts (4 tests) 33ms
701
+ βœ“  node  test/utils/shouldBypassRefreshToken.test.ts (14 tests) 7ms
702
+ βœ“  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 47ms
703
+ βœ“  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 38ms
704
+ βœ“  node  test/server/webops-api.test.ts (9 tests) 15ms
705
+ βœ“  node  test/components/account/orders/StatusCard.test.ts (3 tests) 28ms
691
706
  βœ“  node  test/sdk/localization/store-url.test.ts (4 tests) 3ms
692
- βœ“  node  test/sdk/deliveryPromise/queries.test.ts (4 tests) 5ms
693
- βœ“  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 7ms
694
- βœ“  node  test/server/cms/global.test.ts (3 tests) 2ms
695
- βœ“  node  test/sdk/deliveryPromise/provider.test.ts (11 tests) 3ms
696
- βœ“  node  test/sdk/auth/useAuth.test.ts (5 tests) 20ms
707
+ βœ“  node  test/sdk/deliveryPromise/queries.test.ts (4 tests) 9ms
708
+ βœ“  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 10ms
709
+ βœ“  node  test/server/cms/global.test.ts (3 tests) 5ms
710
+ βœ“  node  test/sdk/deliveryPromise/provider.test.ts (11 tests) 6ms
711
+ βœ“  node  test/sdk/auth/useAuth.test.ts (5 tests) 31ms
697
712
  stderr | test/server/storeDirectives.test.ts > store directives through the core server > applies @auth from a store field and validates the session once
698
713
  https://storeframework.vtexcommercestable.com.br/api/vtexid/credential/validate {
699
714
  headers: { 'content-type': 'application/json', 'X-FORWARDED-HOST': '' },
@@ -701,43 +716,44 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
701
716
  method: 'POST'
702
717
  } { status: 401, statusText: 'Unauthorized', headers: {} }
703
718
 
704
- βœ“  node  test/server/storeDirectives.test.ts (2 tests) 78ms
705
- βœ“  node  test/utils/mergeDiscoveryConfig.test.ts (8 tests) 7ms
706
- βœ“  node  test/server/rootSpan.test.ts (4 tests) 22ms
707
- βœ“  node  test/utils/getRequestHostname.test.ts (12 tests) 3ms
708
- βœ“  node  test/pages/api/preview.test.ts (2 tests) 4ms
709
- βœ“  node  test/components/account/Layout.test.tsx (6 tests) 45ms
719
+ βœ“  node  test/server/storeDirectives.test.ts (2 tests) 55ms
720
+ βœ“  node  test/utils/mergeDiscoveryConfig.test.ts (8 tests) 9ms
721
+ βœ“  node  test/server/rootSpan.test.ts (4 tests) 31ms
722
+ βœ“  node  test/utils/getRequestHostname.test.ts (12 tests) 4ms
723
+ βœ“  node  test/pages/api/preview.test.ts (2 tests) 6ms
724
+ βœ“  node  test/components/account/Layout.test.tsx (6 tests) 63ms
710
725
  βœ“  node  test/components/search/SearchInput.test.ts (6 tests) 7ms
711
- βœ“  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 3ms
712
- βœ“  node  test/pages/pvt/account/403.test.ts (5 tests) 5ms
713
- βœ“  node  test/components/region/useRegion.test.ts (1 test) 18ms
714
- βœ“  node  test/sdk/recommendations/vrn.test.ts (5 tests) 3ms
715
- βœ“  node  test/utils/retry.test.ts (5 tests) 12ms
716
- βœ“  node  test/sdk/account/getIsB2BBuyer.test.ts (7 tests) 3ms
717
- βœ“  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 2ms
718
- βœ“  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 173ms
719
- βœ“  node  test/utils/subDomainPrefixWarning.test.ts (6 tests) 2ms
720
- βœ“  node  test/utils/userOrderStatus.test.ts (4 tests) 3ms
721
- βœ“  node  test/utils/unlockResponse.test.ts (11 tests) 3ms
722
- βœ“  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 2ms
723
- βœ“  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 30ms
724
- βœ“  node  test/sdk/deliveryPromise/reducer.test.ts (2 tests) 3ms
725
- βœ“  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (4 tests) 26ms
726
+ βœ“  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 6ms
727
+ βœ“  node  test/components/search/SearchDropdown.test.tsx (1 test) 18ms
728
+ βœ“  node  test/components/region/useRegion.test.ts (1 test) 17ms
729
+ βœ“  node  test/pages/pvt/account/403.test.ts (5 tests) 7ms
730
+ βœ“  node  test/sdk/recommendations/vrn.test.ts (5 tests) 5ms
731
+ βœ“  node  test/utils/retry.test.ts (5 tests) 14ms
732
+ βœ“  node  test/sdk/account/getIsB2BBuyer.test.ts (7 tests) 6ms
733
+ βœ“  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 4ms
734
+ βœ“  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 187ms
735
+ βœ“  node  test/utils/subDomainPrefixWarning.test.ts (6 tests) 4ms
736
+ βœ“  node  test/utils/userOrderStatus.test.ts (4 tests) 5ms
737
+ βœ“  node  test/utils/unlockResponse.test.ts (11 tests) 4ms
738
+ βœ“  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 5ms
739
+ βœ“  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 34ms
740
+ βœ“  node  test/sdk/deliveryPromise/reducer.test.ts (2 tests) 5ms
726
741
  βœ“  node  test/utils/isLocalHost.test.ts (7 tests) 3ms
742
+ βœ“  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (4 tests) 39ms
727
743
  βœ“  node  test/sdk/session/toSessionInput.test.ts (3 tests) 4ms
728
- βœ“  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 3ms
729
- βœ“  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 2ms
730
- βœ“  node  test/utils/getCookie.test.ts (4 tests) 3ms
731
- βœ“  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 23ms
744
+ βœ“  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 4ms
745
+ βœ“  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 4ms
746
+ βœ“  node  test/utils/getCookie.test.ts (4 tests) 5ms
747
+ βœ“  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 37ms
732
748
  βœ“  node  test/sdk/session/isSignInAreaResolved.test.ts (3 tests) 2ms
733
- βœ“  node  test/utils/filterChannel.test.ts (2 tests) 3ms
734
- βœ“  node  test/sdk/analytics/utils.test.ts (2 tests) 2ms
735
- βœ“  node  test/instrumentation.test.ts (3 tests) 3ms
736
- βœ“  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 2ms
737
- βœ“  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 6ms
738
-
739
-  Test Files  150 passed (150)
740
-  Tests  1286 passed (1286)
741
-  Start at  15:25:42
742
-  Duration  43.72s (transform 11.41s, setup 0ms, import 40.25s, tests 15.33s, environment 51.80s)
749
+ βœ“  node  test/utils/filterChannel.test.ts (2 tests) 4ms
750
+ βœ“  node  test/sdk/analytics/utils.test.ts (2 tests) 3ms
751
+ βœ“  node  test/instrumentation.test.ts (3 tests) 5ms
752
+ βœ“  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 4ms
753
+ βœ“  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 8ms
754
+
755
+  Test Files  151 passed (151)
756
+  Tests  1289 passed (1289)
757
+  Start at  12:25:27
758
+  Duration  60.94s (transform 15.17s, setup 0ms, import 56.78s, tests 20.96s, environment 72.60s)
743
759
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.11.4-dev.4](https://github.com/vtex/faststore/compare/v4.11.4-dev.3...v4.11.4-dev.4) (2026-11-19)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **core:** forward search dropdown labels from the CMS ([#3600](https://github.com/vtex/faststore/issues/3600)) ([0f18b72](https://github.com/vtex/faststore/commit/0f18b729eb90e7053b823ceb90207967d9d383f8)), closes [#3334](https://github.com/vtex/faststore/issues/3334) [#3334](https://github.com/vtex/faststore/issues/3334) [#3240](https://github.com/vtex/faststore/issues/3240) [#3240](https://github.com/vtex/faststore/issues/3240)
11
+
6
12
  ## [4.11.4-dev.3](https://github.com/vtex/faststore/compare/v4.11.4-dev.2...v4.11.4-dev.3) (2026-11-18)
7
13
 
8
14
  ### Bug Fixes
@@ -93,7 +93,17 @@
93
93
  "searchTopTitle": {
94
94
  "title": "Top Search Title",
95
95
  "type": "string",
96
- "default": "Top search"
96
+ "default": "Top Search"
97
+ },
98
+ "searchHistoryClearLabel": {
99
+ "title": "Clear Search History Button Label",
100
+ "type": "string",
101
+ "default": "Clear History"
102
+ },
103
+ "searchProductsTitle": {
104
+ "title": "Suggested Products Title",
105
+ "type": "string",
106
+ "default": "Suggested Products"
97
107
  },
98
108
  "quickOrderSettings": {
99
109
  "title": "Quick Order settings",
@@ -2064,7 +2064,17 @@
2064
2064
  "searchTopTitle": {
2065
2065
  "title": "Top Search Title",
2066
2066
  "type": "string",
2067
- "default": "Top search"
2067
+ "default": "Top Search"
2068
+ },
2069
+ "searchHistoryClearLabel": {
2070
+ "title": "Clear Search History Button Label",
2071
+ "type": "string",
2072
+ "default": "Clear History"
2073
+ },
2074
+ "searchProductsTitle": {
2075
+ "title": "Suggested Products Title",
2076
+ "type": "string",
2077
+ "default": "Suggested Products"
2068
2078
  },
2069
2079
  "quickOrderSettings": {
2070
2080
  "title": "Quick Order settings",
@@ -235,7 +235,17 @@
235
235
  "searchTopTitle": {
236
236
  "title": "Top Search Title",
237
237
  "type": "string",
238
- "default": "Top search"
238
+ "default": "Top Search"
239
+ },
240
+ "searchHistoryClearLabel": {
241
+ "title": "Clear Search History Button Label",
242
+ "type": "string",
243
+ "default": "Clear History"
244
+ },
245
+ "searchProductsTitle": {
246
+ "title": "Suggested Products Title",
247
+ "type": "string",
248
+ "default": "Suggested Products"
239
249
  },
240
250
  "quickOrderSettings": {
241
251
  "title": "Quick Order settings",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "4.11.4-dev.3",
3
+ "version": "4.11.4-dev.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -70,11 +70,11 @@
70
70
  "style-loader": "^3.3.1",
71
71
  "swr": "^2.2.5",
72
72
  "use-sync-external-store": "^1.6.0",
73
- "@faststore/api": "4.11.4-dev.3",
74
- "@faststore/sdk": "4.11.4-dev.3",
75
- "@faststore/ui": "4.11.4-dev.3",
76
- "@faststore/diagnostics": "4.11.4-dev.3",
77
- "@faststore/lighthouse": "4.11.4-dev.3"
73
+ "@faststore/api": "4.11.4-dev.4",
74
+ "@faststore/diagnostics": "4.11.4-dev.4",
75
+ "@faststore/lighthouse": "4.11.4-dev.4",
76
+ "@faststore/sdk": "4.11.4-dev.4",
77
+ "@faststore/ui": "4.11.4-dev.4"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@cypress/code-coverage": "^3.12.1",
@@ -185,6 +185,8 @@ function Navbar({
185
185
  loadingLabel={searchInput?.loadingLabel}
186
186
  searchHistoryTitle={searchInput?.searchHistoryTitle}
187
187
  searchTopTitle={searchInput?.searchTopTitle}
188
+ searchHistoryClearLabel={searchInput?.searchHistoryClearLabel}
189
+ searchProductsTitle={searchInput?.searchProductsTitle}
188
190
  />
189
191
  )}
190
192
 
@@ -222,6 +224,8 @@ function Navbar({
222
224
  loadingLabel={searchInput?.loadingLabel}
223
225
  searchHistoryTitle={searchInput?.searchHistoryTitle}
224
226
  searchTopTitle={searchInput?.searchTopTitle}
227
+ searchHistoryClearLabel={searchInput?.searchHistoryClearLabel}
228
+ searchProductsTitle={searchInput?.searchProductsTitle}
225
229
  />
226
230
  )}
227
231
 
@@ -24,7 +24,9 @@ interface SearchDropdownProps {
24
24
  sort: SearchState['sort']
25
25
  quickOrderSettings?: NavbarProps['searchInput']['quickOrderSettings']
26
26
  searchHistoryTitle?: string
27
+ searchHistoryClearLabel?: string
27
28
  searchTopTitle?: string
29
+ searchProductsTitle?: string
28
30
  [key: string]: any
29
31
  onChangeCustomSearchDropdownVisible?: Dispatch<SetStateAction<boolean>>
30
32
  }
@@ -47,10 +49,12 @@ function SearchDropdown({
47
49
  sort,
48
50
  quickOrderSettings,
49
51
  searchHistoryTitle,
52
+ searchHistoryClearLabel,
50
53
  searchTopTitle,
54
+ searchProductsTitle,
51
55
  onChangeCustomSearchDropdownVisible,
52
56
  ...otherProps
53
- }: SearchDropdownProps) {
57
+ }: Readonly<SearchDropdownProps>) {
54
58
  const {
55
59
  values: { onSearchSelection, products, term, terms, searchId },
56
60
  } = useSearch()
@@ -58,7 +62,11 @@ function SearchDropdown({
58
62
 
59
63
  return (
60
64
  <UISearchDropdown {...otherProps}>
61
- <SearchHistory title={searchHistoryTitle} sort={sort} />
65
+ <SearchHistory
66
+ title={searchHistoryTitle}
67
+ clearLabel={searchHistoryClearLabel}
68
+ sort={sort}
69
+ />
62
70
  <SearchTop title={searchTopTitle} sort={sort} />
63
71
  <UISearchAutoComplete>
64
72
  {terms?.map(({ value: suggestion }) => (
@@ -95,6 +103,7 @@ function SearchDropdown({
95
103
  ))}
96
104
  </UISearchAutoComplete>
97
105
  <SearchProducts
106
+ title={searchProductsTitle}
98
107
  data-af-element={searchId && 'search-autocomplete'}
99
108
  data-af-onimpression={!!searchId}
100
109
  data-af-search-id={searchId}
@@ -7,10 +7,15 @@ import useSearchHistory from 'src/sdk/search/useSearchHistory'
7
7
 
8
8
  interface SearchHistoryProps {
9
9
  title?: string
10
+ clearLabel?: string
10
11
  [key: string]: unknown
11
12
  }
12
13
 
13
- const SearchHistory = ({ title, ...props }: SearchHistoryProps) => {
14
+ const SearchHistory = ({
15
+ title,
16
+ clearLabel,
17
+ ...props
18
+ }: Readonly<SearchHistoryProps>) => {
14
19
  const {
15
20
  values: { onSearchSelection },
16
21
  } = useSearch()
@@ -21,7 +26,12 @@ const SearchHistory = ({ title, ...props }: SearchHistoryProps) => {
21
26
  }
22
27
 
23
28
  return (
24
- <UISearchHistory title={title} onClear={clearSearchHistory} {...props}>
29
+ <UISearchHistory
30
+ title={title}
31
+ clearLabel={clearLabel}
32
+ onClear={clearSearchHistory}
33
+ {...props}
34
+ >
25
35
  {searchHistory.map((item) => (
26
36
  <UISearchHistoryTerm
27
37
  key={item.term}
@@ -73,7 +73,9 @@ export type SearchInputProps = {
73
73
  submitButtonAriaLabel?: string
74
74
  loadingLabel?: string
75
75
  searchHistoryTitle?: string
76
+ searchHistoryClearLabel?: string
76
77
  searchTopTitle?: string
78
+ searchProductsTitle?: string
77
79
  } & Omit<UISearchInputFieldProps, 'onSubmit' | 'attachmentButtonIcon'>
78
80
 
79
81
  export type SearchInputRef = UISearchInputFieldRef & {
@@ -114,6 +116,11 @@ const SearchInput = forwardRef<SearchInputRef, SearchInputProps>(
114
116
  sort,
115
117
  placeholder,
116
118
  quickOrderSettings,
119
+ loadingLabel,
120
+ searchHistoryTitle,
121
+ searchHistoryClearLabel,
122
+ searchTopTitle,
123
+ searchProductsTitle,
117
124
  ...otherProps
118
125
  },
119
126
  ref
@@ -390,6 +397,11 @@ const SearchInput = forwardRef<SearchInputRef, SearchInputProps>(
390
397
  onChangeCustomSearchDropdownVisible={
391
398
  setCustomSearchDropdownVisibleCondition
392
399
  }
400
+ loadingLabel={loadingLabel}
401
+ searchHistoryTitle={searchHistoryTitle}
402
+ searchHistoryClearLabel={searchHistoryClearLabel}
403
+ searchTopTitle={searchTopTitle}
404
+ searchProductsTitle={searchProductsTitle}
393
405
  />
394
406
  </Suspense>
395
407
  )}
@@ -25,7 +25,9 @@ export interface NavbarProps {
25
25
  sort: string
26
26
  submitButtonAriaLabel?: string
27
27
  searchHistoryTitle?: string
28
+ searchHistoryClearLabel?: string
28
29
  searchTopTitle?: string
30
+ searchProductsTitle?: string
29
31
  collapseSearchAriaLabel?: string
30
32
  quickOrderSettings?: {
31
33
  quickOrder: boolean
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @vitest-environment jsdom
3
+ */
4
+
5
+ import React from 'react'
6
+ import { render } from '@testing-library/react'
7
+ import { afterEach, describe, expect, it, vi } from 'vitest'
8
+
9
+ const { received, capture } = vi.hoisted(() => {
10
+ const received: Record<string, Record<string, unknown>> = {}
11
+ const capture =
12
+ (name: string) =>
13
+ ({
14
+ children,
15
+ ...props
16
+ }: Readonly<{ children?: unknown } & Record<string, unknown>>) => {
17
+ received[name] = props
18
+ return (children ?? null) as never
19
+ }
20
+ return { received, capture }
21
+ })
22
+
23
+ vi.mock('@faststore/ui', () => ({
24
+ SearchDropdown: capture('SearchDropdown'),
25
+ SearchAutoComplete: capture('SearchAutoComplete'),
26
+ SearchAutoCompleteTerm: capture('SearchAutoCompleteTerm'),
27
+ SearchProducts: capture('SearchProducts'),
28
+ useSearch: () => ({
29
+ values: { products: [], term: '', terms: [], searchId: undefined },
30
+ }),
31
+ }))
32
+
33
+ vi.mock('src/components/search/SearchHistory', () => ({
34
+ SearchHistory: capture('SearchHistory'),
35
+ }))
36
+
37
+ vi.mock('src/components/search/SearchTop', () => ({
38
+ SearchTop: capture('SearchTop'),
39
+ }))
40
+
41
+ vi.mock('src/components/search/SearchProductItem', () => ({
42
+ default: () => null,
43
+ }))
44
+
45
+ vi.mock('src/sdk/search/formatSearchPath', () => ({
46
+ useFormatSearchPath: () => (args: { term: string }) => `/s?q=${args.term}`,
47
+ }))
48
+
49
+ import SearchDropdown from '../../../src/components/search/SearchDropdown/SearchDropdown'
50
+
51
+ afterEach(() => {
52
+ for (const key of Object.keys(received)) delete received[key]
53
+ })
54
+
55
+ describe('SearchDropdown labels', () => {
56
+ it('forwards the CMS labels to each dropdown block', () => {
57
+ render(
58
+ <SearchDropdown
59
+ sort="score_desc"
60
+ loadingLabel="Carregando..."
61
+ searchHistoryTitle="HistΓ³rico"
62
+ searchHistoryClearLabel="Limpar histΓ³rico"
63
+ searchTopTitle="Mais buscados"
64
+ searchProductsTitle="Produtos sugeridos"
65
+ />
66
+ )
67
+
68
+ expect(received.SearchDropdown).toMatchObject({
69
+ loadingLabel: 'Carregando...',
70
+ })
71
+ expect(received.SearchHistory).toMatchObject({
72
+ title: 'HistΓ³rico',
73
+ clearLabel: 'Limpar histΓ³rico',
74
+ })
75
+ expect(received.SearchTop).toMatchObject({ title: 'Mais buscados' })
76
+ expect(received.SearchProducts).toMatchObject({
77
+ title: 'Produtos sugeridos',
78
+ })
79
+ })
80
+ })
@@ -3,12 +3,30 @@
3
3
  */
4
4
 
5
5
  import React from 'react'
6
- import { act, render, waitFor } from '@testing-library/react'
6
+ import { act, fireEvent, render, waitFor } from '@testing-library/react'
7
7
  import { afterEach, describe, expect, it, vi } from 'vitest'
8
8
 
9
- // ─── next/dynamic: return a plain functional component ───────────────────────
9
+ // ─── next/dynamic: render the input field as a plain <input> ─────────────────
10
+ // `onFocus` opens the dropdown, and props leaked from SearchInput show up as
11
+ // DOM attributes.
10
12
  vi.mock('next/dynamic', () => ({
11
- default: () => () => null,
13
+ default: () =>
14
+ function InputField({
15
+ onFocus,
16
+ ...props
17
+ }: Readonly<React.InputHTMLAttributes<HTMLInputElement>>) {
18
+ const domProps = Object.fromEntries(
19
+ Object.entries(props).filter(([, value]) => typeof value === 'string')
20
+ )
21
+ return (
22
+ <input
23
+ data-testid="search-field"
24
+ readOnly
25
+ onFocus={onFocus}
26
+ {...domProps}
27
+ />
28
+ )
29
+ },
12
30
  }))
13
31
 
14
32
  // ─── next/router ─────────────────────────────────────────────────────────────
@@ -17,7 +35,16 @@ vi.mock('next/router', () => ({
17
35
  }))
18
36
 
19
37
  // ─── lazy-loaded chunk ───────────────────────────────────────────────────────
20
- vi.mock('src/components/search/SearchDropdown', () => ({ default: () => null }))
38
+ const dropdownProps = vi.hoisted(() => ({
39
+ current: null as Record<string, unknown> | null,
40
+ }))
41
+
42
+ vi.mock('src/components/search/SearchDropdown', () => ({
43
+ default: (props: Record<string, unknown>) => {
44
+ dropdownProps.current = props
45
+ return null
46
+ },
47
+ }))
21
48
 
22
49
  // ─── discovery.config ────────────────────────────────────────────────────────
23
50
  vi.mock('discovery.config', () => ({
@@ -125,6 +152,7 @@ import SearchInput from '../../../src/components/search/SearchInput/SearchInput'
125
152
 
126
153
  afterEach(() => {
127
154
  vi.clearAllMocks()
155
+ dropdownProps.current = null
128
156
  oesState.status = null
129
157
  oesState.isUploading = false
130
158
  oesState.isProcessing = false
@@ -274,3 +302,42 @@ describe('SearchInput (OES integration)', () => {
274
302
  expect(true).toBe(true)
275
303
  })
276
304
  })
305
+
306
+ describe('SearchInput dropdown labels', () => {
307
+ const labels = {
308
+ loadingLabel: 'Carregando...',
309
+ searchHistoryTitle: 'HistΓ³rico',
310
+ searchHistoryClearLabel: 'Limpar histΓ³rico',
311
+ searchTopTitle: 'Mais buscados',
312
+ searchProductsTitle: 'Produtos sugeridos',
313
+ }
314
+
315
+ it('forwards the CMS labels to the SearchDropdown', async () => {
316
+ const { getByTestId } = render(
317
+ <Wrapper>
318
+ <SearchInput {...labels} />
319
+ </Wrapper>
320
+ )
321
+
322
+ await act(async () => {
323
+ fireEvent.focus(getByTestId('search-field'))
324
+ })
325
+
326
+ await waitFor(() => {
327
+ expect(dropdownProps.current).toMatchObject(labels)
328
+ })
329
+ })
330
+
331
+ it('does not leak the CMS labels to the input element', () => {
332
+ const { getByTestId } = render(
333
+ <Wrapper>
334
+ <SearchInput {...labels} />
335
+ </Wrapper>
336
+ )
337
+
338
+ const field = getByTestId('search-field')
339
+ for (const name of Object.keys(labels)) {
340
+ expect(field.hasAttribute(name)).toBe(false)
341
+ }
342
+ })
343
+ })