@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.
- package/.turbo/turbo-generate.log +3 -3
- package/.turbo/turbo-test.log +199 -183
- package/CHANGELOG.md +6 -0
- package/cms/faststore/components/cms_component__navbar.jsonc +11 -1
- package/cms/faststore/schema.json +11 -1
- package/cms/faststore/sections.json +11 -1
- package/package.json +6 -6
- package/src/components/navigation/Navbar/Navbar.tsx +4 -0
- package/src/components/search/SearchDropdown/SearchDropdown.tsx +11 -2
- package/src/components/search/SearchHistory/SearchHistory.tsx +12 -2
- package/src/components/search/SearchInput/SearchInput.tsx +12 -0
- package/src/components/sections/Navbar/Navbar.tsx +2 -0
- package/test/components/search/SearchDropdown.test.tsx +80 -0
- package/test/components/search/SearchInputComponent.test.tsx +71 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@4.11.4-dev.
|
|
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.
|
|
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
|
[33m[STARTED][39m Parse Configuration
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
[32m[COMPLETED][39m Generate to @generated/
|
|
20
20
|
[32m[COMPLETED][39m Generate outputs
|
|
21
21
|
|
|
22
|
-
> @faststore/core@4.11.4-dev.
|
|
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
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@4.11.4-dev.
|
|
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
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/ui/useScrollRestoration.browser.test.ts [2m([22m[2m43 tests[22m[2m)[22m[33m
|
|
10
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/ui/useScrollRestoration.browser.test.ts [2m([22m[2m43 tests[22m[2m)[22m[33m 992[2mms[22m[39m
|
|
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
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/account/
|
|
15
|
-
[33m[2mβ[22m[39m shows
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
[33m[2mβ[22m[39m
|
|
20
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/account/
|
|
21
|
-
[33m[2mβ[22m[39m
|
|
22
|
-
|
|
23
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/product/usePageProductsQuery.browser.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m
|
|
24
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/
|
|
25
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
26
|
-
|
|
27
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
28
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
14
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/cards/MyAccountListCards.browser.test.tsx [2m([22m[2m16 tests[22m[2m)[22m[33m 2255[2mms[22m[39m
|
|
15
|
+
[33m[2mβ[22m[39m shows the tab bar and renders Personal cards by default [33m 814[2mms[22m[39m
|
|
16
|
+
[33m[2mβ[22m[39m paginates when there are more than 25 cards [33m 405[2mms[22m[39m
|
|
17
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/ContractSwitcher.browser.test.tsx [2m([22m[2m22 tests[22m[2m)[22m[33m 3149[2mms[22m[39m
|
|
18
|
+
[33m[2mβ[22m[39m shows an error state when the list fails to load [33m 666[2mms[22m[39m
|
|
19
|
+
[33m[2mβ[22m[39m keeps Confirm disabled until a different contract is selected [33m 355[2mms[22m[39m
|
|
20
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/BuyingPolicyAlert.browser.test.tsx [2m([22m[2m13 tests[22m[2m)[22m[33m 2411[2mms[22m[39m
|
|
21
|
+
[33m[2mβ[22m[39m opens the reject confirmation modal with the default English copy [33m 728[2mms[22m[39m
|
|
22
|
+
[33m[2mβ[22m[39m opens the reject confirmation modal with CMS-provided labels [33m 359[2mms[22m[39m
|
|
23
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/product/usePageProductsQuery.browser.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 96[2mms[22m[39m
|
|
24
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/ui/RichText/RichText.browser.test.tsx [2m([22m[2m8 tests[22m[2m)[22m[33m 388[2mms[22m[39m
|
|
25
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/OrganizationDrawer.browser.test.tsx [2m([22m[2m10 tests[22m[2m)[22m[33m 1694[2mms[22m[39m
|
|
26
|
+
[33m[2mβ[22m[39m renders the menu view with contract details and manage footer [33m 971[2mms[22m[39m
|
|
27
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/localization/useBindingSelector.browser.test.tsx [2m([22m[2m9 tests[22m[2m)[22m[32m 94[2mms[22m[39m
|
|
28
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx [2m([22m[2m13 tests[22m[2m)[22m[32m 100[2mms[22m[39m
|
|
29
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/session/reconcileSessionLocale.browser.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
30
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx [2m([22m[2m8 tests[22m[2m)[22m[32m 93[2mms[22m[39m
|
|
31
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/recommendations/useRecommendationShelf.browser.test.tsx [2m([22m[2m12 tests[22m[2m)[22m[32m 84[2mms[22m[39m
|
|
29
32
|
[90mstderr[2m | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx
|
|
30
33
|
[22m[39mError in optimistic validation: TypeError: Failed to parse URL from /api/graphql?operationName=ValidateCartMutation&operationHash=3c71b0d3fc2bade14df68abfa271858beb361b12
|
|
31
34
|
[90m at node:internal/deps/undici/undici:16416:13[39m
|
|
@@ -55,20 +58,12 @@ Browserslist: browsers data (caniuse-lite) is 9 months old. Please run:
|
|
|
55
58
|
[90mstderr[2m | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx[2m > [22m[2mRecommendationShelf[2m > [22m[2mrenders nothing when there is an error
|
|
56
59
|
[22m[39mError fetching recommendations [90mundefined[39m boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
|
|
57
60
|
|
|
58
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
59
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/product/useProductQuery.browser.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m
|
|
60
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/
|
|
61
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
62
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
63
|
-
[
|
|
64
|
-
[22m[39mError in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
|
|
65
|
-
at waitForSessionValidated [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/waitForSessionValidated.ts:16:32[90m)[39m
|
|
66
|
-
at validateCart [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/index.ts:124:9[90m)[39m
|
|
67
|
-
at onValidate [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/useStore.ts:18:20[90m)[39m
|
|
68
|
-
at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
|
|
69
|
-
[90m at processTicksAndRejections (node:internal/process/task_queues:103:5)[39m
|
|
70
|
-
|
|
71
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/session/validateSession.browser.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 20[2mms[22m[39m
|
|
61
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx [2m([22m[2m8 tests[22m[2m)[22m[32m 116[2mms[22m[39m
|
|
62
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/product/useProductQuery.browser.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 371[2mms[22m[39m
|
|
63
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/sections/Account/AccountOrderDetails.browser.test.tsx [2m([22m[2m4 tests[22m[2m)[22m[32m 59[2mms[22m[39m
|
|
64
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/CartSidebar/CartSidebar.browser.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[32m 126[2mms[22m[39m
|
|
65
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/session/getInitialSession.browser.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
66
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/navigation/Navbar.browser.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m 60[2mms[22m[39m
|
|
72
67
|
[90mstderr[2m | test/pages/password-protection.browser.test.tsx[2m > [22m[2mPasswordProtectionLogin[2m > [22m[2mposts the password and redirects to the requested return path
|
|
73
68
|
[22m[39mWarning: 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
|
-
[32mβ[39m [30m[46m browser [49m[39m test/pages/password-protection.browser.test.tsx [2m([22m[2m6 tests[22m[2m)[22m[33m
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
296
|
+
[32mβ[39m [30m[46m browser [49m[39m test/pages/password-protection.browser.test.tsx [2m([22m[2m6 tests[22m[2m)[22m[33m 852[2mms[22m[39m
|
|
297
|
+
[33m[2mβ[22m[39m renders the password protection form [33m 405[2mms[22m[39m
|
|
298
|
+
[90mstderr[2m | test/sdk/session/validateSession.browser.test.ts
|
|
299
|
+
[22m[39mError in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
|
|
300
|
+
at waitForSessionValidated [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/waitForSessionValidated.ts:16:32[90m)[39m
|
|
301
|
+
at validateCart [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/index.ts:124:9[90m)[39m
|
|
302
|
+
at onValidate [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/useStore.ts:18:20[90m)[39m
|
|
303
|
+
at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
|
|
304
|
+
[90m at processTicksAndRejections (node:internal/process/task_queues:103:5)[39m
|
|
305
|
+
|
|
306
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/session/validateSession.browser.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 22[2mms[22m[39m
|
|
307
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/OrganizationDrawerFooter.browser.test.tsx [2m([22m[2m8 tests[22m[2m)[22m[33m 824[2mms[22m[39m
|
|
308
|
+
[33m[2mβ[22m[39m shows manage link for organization managers [33m 501[2mms[22m[39m
|
|
305
309
|
[90mstderr[2m | test/components/cms/RenderSections.browser.test.tsx
|
|
306
310
|
[22m[39mError in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
|
|
307
311
|
at waitForSessionValidated [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/waitForSessionValidated.ts:16:32[90m)[39m
|
|
@@ -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
|
[90m at processTicksAndRejections (node:internal/process/task_queues:103:5)[39m
|
|
312
316
|
|
|
313
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
314
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/
|
|
315
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/product/usePageProductsQuery.deliveryPromise.browser.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
317
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/account/useSwitchContract.browser.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 60[2mms[22m[39m
|
|
318
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/cms/RenderSections.browser.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[32m 107[2mms[22m[39m
|
|
319
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/product/usePageProductsQuery.deliveryPromise.browser.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 32[2mms[22m[39m
|
|
320
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/navigation/NavbarSlider.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m 28[2mms[22m[39m
|
|
316
321
|
[90mstderr[2m | test/sdk/localization/store-url.browser.test.ts
|
|
317
322
|
[22m[39mError in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
|
|
318
323
|
at waitForSessionValidated [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/waitForSessionValidated.ts:16:32[90m)[39m
|
|
@@ -322,9 +327,8 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
322
327
|
[90m at processTicksAndRejections (node:internal/process/task_queues:103:5)[39m
|
|
323
328
|
|
|
324
329
|
[32mβ[39m [30m[46m browser [49m[39m test/sdk/localization/store-url.browser.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
325
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
326
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
327
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/templates/SearchPage/SearchWrapper.browser.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m 17[2mms[22m[39m
|
|
330
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/Menu.browser.test.tsx [2m([22m[2m6 tests[22m[2m)[22m[32m 290[2mms[22m[39m
|
|
331
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/account/useAvailableContracts.browser.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 24[2mms[22m[39m
|
|
328
332
|
[90mstderr[2m | test/sdk/session/refreshTokenRoute.browser.test.ts
|
|
329
333
|
[22m[39mError in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
|
|
330
334
|
at waitForSessionValidated [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/waitForSessionValidated.ts:16:32[90m)[39m
|
|
@@ -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
|
[90m at processTicksAndRejections (node:internal/process/task_queues:103:5)[39m
|
|
335
339
|
|
|
336
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/session/refreshTokenRoute.browser.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
337
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
338
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
339
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/
|
|
340
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/
|
|
341
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
340
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/session/refreshTokenRoute.browser.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
341
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/templates/SearchPage/SearchWrapper.browser.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m 33[2mms[22m[39m
|
|
342
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m 131[2mms[22m[39m
|
|
343
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m 55[2mms[22m[39m
|
|
344
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/navigation/NavbarAccountArea.browser.test.tsx [2m([22m[2m4 tests[22m[2m)[22m[32m 60[2mms[22m[39m
|
|
345
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/sections/Account/AccountListQuotes.browser.test.tsx [2m([22m[2m4 tests[22m[2m)[22m[32m 114[2mms[22m[39m
|
|
346
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/account/changeContractToken.browser.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 19[2mms[22m[39m
|
|
342
347
|
[90mstderr[2m | test/components/account/doLogout.browser.test.ts
|
|
343
348
|
[22m[39mError in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
|
|
344
349
|
at waitForSessionValidated [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/waitForSessionValidated.ts:16:32[90m)[39m
|
|
@@ -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
|
[90m at processTicksAndRejections (node:internal/process/task_queues:103:5)[39m
|
|
349
354
|
|
|
350
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/account/doLogout.browser.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
351
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/account/OrganizationDrawerHeader.browser.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
352
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/product/useProductNotFoundRedirect.browser.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
353
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/account/useRefreshToken.browser.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
354
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/ui/LocalizationButton.browser.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
355
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/account/OrganizationSignInButton.browser.test.tsx [2m([22m[2m4 tests[22m[2m)[22m[32m 140[2mms[22m[39m
|
|
355
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/doLogout.browser.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 21[2mms[22m[39m
|
|
356
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/OrganizationDrawerHeader.browser.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[32m 266[2mms[22m[39m
|
|
357
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/product/useProductNotFoundRedirect.browser.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 35[2mms[22m[39m
|
|
358
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/account/useRefreshToken.browser.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 139[2mms[22m[39m
|
|
359
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/ui/LocalizationButton.browser.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m 44[2mms[22m[39m
|
|
356
360
|
[90mstderr[2m | test/sdk/account/clearPersistedSessionState.browser.test.ts
|
|
357
361
|
[22m[39mError in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
|
|
358
362
|
at waitForSessionValidated [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/waitForSessionValidated.ts:16:32[90m)[39m
|
|
@@ -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
|
[90m at processTicksAndRejections (node:internal/process/task_queues:103:5)[39m
|
|
363
367
|
|
|
364
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
365
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
366
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/
|
|
367
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/
|
|
368
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/
|
|
369
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/sections/Account/AccountListCards.browser.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
368
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/OrganizationSignInButton.browser.test.tsx [2m([22m[2m4 tests[22m[2m)[22m[32m 251[2mms[22m[39m
|
|
369
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/account/clearPersistedSessionState.browser.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
370
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/sections/Account/AccountOrderDelivery.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m 81[2mms[22m[39m
|
|
371
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m 104[2mms[22m[39m
|
|
372
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/sections/Account/AccountOrderStatus.browser.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m 102[2mms[22m[39m
|
|
373
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/sections/Account/AccountListCards.browser.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m 66[2mms[22m[39m
|
|
374
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/region/useRegion.browser.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 22[2mms[22m[39m
|
|
375
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/sections/Account/AccountOrdersList.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m 25[2mms[22m[39m
|
|
376
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/SummaryCard.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m 100[2mms[22m[39m
|
|
370
377
|
[90mstderr[2m | test/sdk/session/sessionStore.browser.test.ts
|
|
371
378
|
[22m[39mError in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
|
|
372
379
|
at waitForSessionValidated [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/waitForSessionValidated.ts:16:32[90m)[39m
|
|
@@ -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
|
[90m at processTicksAndRejections (node:internal/process/task_queues:103:5)[39m
|
|
377
384
|
|
|
378
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
379
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
380
|
-
[32mβ[39m [30m[46m browser [49m[39m test/
|
|
381
|
-
[32mβ[39m [30m[46m browser [49m[39m test/utils/shouldBypassRefreshToken.browser.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
382
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx [2m([22m[2m1 test[22m[2m)[22m[32m 27[2mms[22m[39m
|
|
385
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/session/sessionStore.browser.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
386
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx [2m([22m[2m1 test[22m[2m)[22m[32m 40[2mms[22m[39m
|
|
387
|
+
[32mβ[39m [30m[46m browser [49m[39m test/utils/shouldBypassRefreshToken.browser.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
383
388
|
[90mstderr[2m | test/sdk/account/refreshToken.browser.test.ts
|
|
384
389
|
[22m[39mError in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
|
|
385
390
|
at waitForSessionValidated [90m(/home/runner/work/faststore/faststore/packages/core/[39msrc/sdk/cart/waitForSessionValidated.ts:16:32[90m)[39m
|
|
@@ -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
|
[90m at processTicksAndRejections (node:internal/process/task_queues:103:5)[39m
|
|
390
395
|
|
|
391
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/account/refreshToken.browser.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
392
|
-
[32mβ[39m [30m[46m browser [49m[39m test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
393
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/StatusCard.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
394
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/DeliveryCard.browser.test.tsx [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
395
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
396
|
-
[32mβ[39m [30m[46m browser [49m[39m test/components/skeletons/ProductGridSkeleton.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
397
|
-
[32mβ[39m [30m[43m node [49m[39m test/pages/api/switch-contract.test.ts [2m([22m[2m61 tests[22m[2m)[22m[32m
|
|
398
|
-
[32mβ[39m [30m[
|
|
399
|
-
[32mβ[39m [30m[
|
|
400
|
-
[32mβ[39m [30m[43m node [49m[39m test/server/password-protection-service.test.ts [2m([22m[2m22 tests[22m[2m)[22m[32m
|
|
401
|
-
[32mβ[39m [30m[43m node [49m[39m test/server/content/service.test.ts [2m([22m[2m32 tests[22m[2m)[22m[32m
|
|
402
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/localization/useBindingSelector.test.tsx [2m([22m[2m22 tests[22m[2m)[22m[32m
|
|
396
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/account/refreshToken.browser.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
397
|
+
[32mβ[39m [30m[46m browser [49m[39m test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
398
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/StatusCard.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m 106[2mms[22m[39m
|
|
399
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/DeliveryCard.browser.test.tsx [2m([22m[2m1 test[22m[2m)[22m[32m 43[2mms[22m[39m
|
|
400
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx [2m([22m[2m1 test[22m[2m)[22m[32m 39[2mms[22m[39m
|
|
401
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/skeletons/ProductGridSkeleton.browser.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[32m 25[2mms[22m[39m
|
|
402
|
+
[32mβ[39m [30m[43m node [49m[39m test/pages/api/switch-contract.test.ts [2m([22m[2m61 tests[22m[2m)[22m[32m 141[2mms[22m[39m
|
|
403
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/localization/bindingPaths.test.ts [2m([22m[2m71 tests[22m[2m)[22m[32m 20[2mms[22m[39m
|
|
404
|
+
[32mβ[39m [30m[46m browser [49m[39m test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx [2m([22m[2m1 test[22m[2m)[22m[32m 161[2mms[22m[39m
|
|
405
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/password-protection-service.test.ts [2m([22m[2m22 tests[22m[2m)[22m[32m 32[2mms[22m[39m
|
|
406
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/content/service.test.ts [2m([22m[2m32 tests[22m[2m)[22m[32m 42[2mms[22m[39m
|
|
407
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/localization/useBindingSelector.test.tsx [2m([22m[2m22 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
408
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/match-url.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
403
409
|
[90mstderr[2m | test/sdk/deliveryPromise/provider.effect.test.tsx[2m > [22m[2mDeliveryPromiseProvider pickup fetch[2m > [22m[2mclears the loading flag after a failed request and retries on the next update
|
|
404
410
|
[22m[39mFailed to fetch pickup points: Error: network
|
|
405
411
|
at [90m/home/runner/work/faststore/faststore/packages/core/[39mtest/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/[4m.pnpm[24m/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/[4mvitest[24m/dist/chunks/test.B8ej_ZHS.js:239:21)
|
|
427
433
|
at runTest (file:///home/runner/work/faststore/faststore/node_modules/[4m.pnpm[24m/@vitest+runner@4.0.18/node_modules/[4m@vitest/runner[24m/dist/index.js:1653:12)
|
|
428
434
|
|
|
429
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/deliveryPromise/provider.effect.test.tsx [2m([22m[2m9 tests[22m[2m)[22m[32m
|
|
430
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/match-url.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
435
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/deliveryPromise/provider.effect.test.tsx [2m([22m[2m9 tests[22m[2m)[22m[32m 86[2mms[22m[39m
|
|
431
436
|
[90mstderr[2m | test/pages/api/graphql.test.ts[2m > [22m[2m/api/graphql error status propagation[2m > [22m[2mpropagates the upstream 400 from a wrapped BadRequestError instead of 500
|
|
432
437
|
[22m[39mGraphql 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: [33m401[39m, type: [32m'UnauthorizedError'[39m }
|
|
570
575
|
}
|
|
571
576
|
|
|
572
|
-
[32mβ[39m [30m[43m node [49m[39m test/pages/api/graphql.test.ts [2m([22m[2m30 tests[22m[2m)[22m[32m
|
|
573
|
-
[32mβ[39m [30m[43m node [49m[39m test/pages/api/unlock.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m
|
|
574
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/session/syncSalesChannelFromOrderForm.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m
|
|
577
|
+
[32mβ[39m [30m[43m node [49m[39m test/pages/api/graphql.test.ts [2m([22m[2m30 tests[22m[2m)[22m[32m 40[2mms[22m[39m
|
|
578
|
+
[32mβ[39m [30m[43m node [49m[39m test/pages/api/unlock.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 129[2mms[22m[39m
|
|
579
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/session/syncSalesChannelFromOrderForm.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
580
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/localization/bindingSelector.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
575
581
|
[90mstderr[2m | test/components/search/SearchInputComponent.test.tsx
|
|
576
582
|
[22m[39mWarning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
|
|
577
583
|
|
|
578
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/localization/bindingSelector.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
579
584
|
[90mstderr[2m | test/components/search/SearchInputComponent.test.tsx[2m > [22m[2mSearchInput (OES integration)[2m > [22m[2mrenders without crashing
|
|
580
585
|
[22m[39mWarning: 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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
+
[90mstderr[2m | test/components/search/SearchInputComponent.test.tsx[2m > [22m[2mSearchInput (OES integration)[2m > [22m[2mdoes not render attachment button when user is not authenticated
|
|
645
|
+
[22m[39mWarning: 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:
|
|
652
|
+
at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:139:20)
|
|
638
653
|
|
|
639
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/search/SearchInputComponent.test.tsx [2m([22m[
|
|
640
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/refreshToken.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m
|
|
641
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/MyAccountListQuotesTable.test.tsx [2m([22m[2m15 tests[22m[2m)[22m[
|
|
642
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/search/useSearchHistory.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m
|
|
654
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/search/SearchInputComponent.test.tsx [2m([22m[2m8 tests[22m[2m)[22m[32m 148[2mms[22m[39m
|
|
655
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/refreshToken.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
656
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/MyAccountListQuotesTable.test.tsx [2m([22m[2m15 tests[22m[2m)[22m[33m 398[2mms[22m[39m
|
|
657
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/search/useSearchHistory.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 43[2mms[22m[39m
|
|
643
658
|
[90mstderr[2m | test/pages/pvt/account/cards/index.test.ts[2m > [22m[2mCards page getServerSideProps[2m > [22m[2mredirects to /pvt/account/403 when the query fails with 401/403
|
|
644
659
|
[22m[39m{ extensions: { status: [33m401[39m } }
|
|
645
660
|
|
|
646
661
|
[90mstderr[2m | test/pages/pvt/account/cards/index.test.ts[2m > [22m[2mCards page getServerSideProps[2m > [22m[2mrenders the error state (no redirect) when the query fails with a non-auth status
|
|
647
662
|
[22m[39m{ extensions: { status: [33m502[39m } }
|
|
648
663
|
|
|
649
|
-
[32mβ[39m [30m[43m node [49m[39m test/pages/pvt/account/cards/index.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
650
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/quoteFilters.test.ts [2m([22m[2m26 tests[22m[2m)[22m[32m
|
|
651
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/
|
|
652
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/clearCookies.test.ts [2m([22m[2m20 tests[22m[2m)[22m[32m
|
|
664
|
+
[32mβ[39m [30m[43m node [49m[39m test/pages/pvt/account/cards/index.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
665
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/quoteFilters.test.ts [2m([22m[2m26 tests[22m[2m)[22m[32m 22[2mms[22m[39m
|
|
666
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/productJsonLd.test.ts [2m([22m[2m36 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
667
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/MyAccountListQuotes.test.tsx [2m([22m[2m11 tests[22m[2m)[22m[33m 808[2mms[22m[39m
|
|
668
|
+
[33m[2mβ[22m[39m navigates with the search term on blur [33m 359[2mms[22m[39m
|
|
669
|
+
[33m[2mβ[22m[39m navigates without a label param when the search is cleared [33m 357[2mms[22m[39m
|
|
670
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/cookieCacheBusting.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
671
|
+
[32mβ[39m [30m[43m node [49m[39m test/experimental/myAccountCmsServerSideProps.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
672
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/clearCookies.test.ts [2m([22m[2m20 tests[22m[2m)[22m[32m 27[2mms[22m[39m
|
|
658
673
|
[32mβ[39m [30m[43m node [49m[39m test/utils/multipleTemplates.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
659
674
|
[90mstderr[2m | test/sdk/account/useSetPassword.test.ts[2m > [22m[2museSetPassword[2m > [22m[2mmaps wrongcredentials error responses to the existing message
|
|
660
675
|
[22m[39mSet password request failed: Bad Request
|
|
661
676
|
|
|
662
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/useSetPassword.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
663
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/orderEntry/useOrderEntryOperation.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
664
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/localization/localizeRedirectDestination.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m
|
|
665
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/MyAccountQuotesFilterSlider.test.tsx [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
666
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/MyAccountQuotesStatusSelector.test.tsx [2m([22m[2m14 tests[22m[2m)[22m[32m
|
|
667
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/localization/hreflang.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
668
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
669
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
670
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
671
|
-
[32mβ[39m [30m[43m node [49m[39m test/server/content/promiseCache.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
672
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/redirects/index.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
673
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/orderEntry/useOrderEntryUpload.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
674
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/toRevalidate.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m
|
|
675
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/orderEntry/useOrderEntry.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
676
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/trustedForwardedHost.test.ts [2m([22m[2m36 tests[22m[2m)[22m[32m
|
|
677
|
-
[32mβ[39m [30m[43m node [49m[39m test/proxy.localization.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
677
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/useSetPassword.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 42[2mms[22m[39m
|
|
678
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/orderEntry/useOrderEntryOperation.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 36[2mms[22m[39m
|
|
679
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/localization/localizeRedirectDestination.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
680
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/MyAccountQuotesFilterSlider.test.tsx [2m([22m[2m8 tests[22m[2m)[22m[32m 149[2mms[22m[39m
|
|
681
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/MyAccountQuotesStatusSelector.test.tsx [2m([22m[2m14 tests[22m[2m)[22m[32m 122[2mms[22m[39m
|
|
682
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/localization/hreflang.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
683
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/cms/index.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
684
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/MyAccountQuotesSelectedTags.test.tsx [2m([22m[2m10 tests[22m[2m)[22m[32m 101[2mms[22m[39m
|
|
685
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/getMyAccountRoutes.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
686
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/content/promiseCache.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
687
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/redirects/index.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 43[2mms[22m[39m
|
|
688
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/orderEntry/useOrderEntryUpload.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 45[2mms[22m[39m
|
|
689
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/toRevalidate.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 32[2mms[22m[39m
|
|
690
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/orderEntry/useOrderEntry.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 46[2mms[22m[39m
|
|
691
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/trustedForwardedHost.test.ts [2m([22m[2m36 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
692
|
+
[32mβ[39m [30m[43m node [49m[39m test/proxy.localization.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 54[2mms[22m[39m
|
|
678
693
|
[32mβ[39m [30m[43m node [49m[39m test/components/account/orders/getDeliveryOptionLabel.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
679
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/graphql/retryPolicy.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m
|
|
680
|
-
[32mβ[39m [30m[43m node [49m[39m test/server/cms/myAccountDefaultSections.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m
|
|
681
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/productJsonLdRendering.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
682
|
-
[32mβ[39m [30m[43m node [49m[39m test/server/index.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m
|
|
683
|
-
[33m[2mβ[22m[39m should handle options and execute [33m
|
|
684
|
-
[32mβ[39m [30m[43m node [49m[39m test/proxy.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
685
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
686
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
687
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
688
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
689
|
-
[32mβ[39m [30m[43m node [49m[39m test/server/webops-api.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m
|
|
690
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/account/orders/StatusCard.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
694
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/graphql/retryPolicy.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
695
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/cms/myAccountDefaultSections.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
696
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/productJsonLdRendering.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
697
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/index.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 834[2mms[22m[39m
|
|
698
|
+
[33m[2mβ[22m[39m should handle options and execute [33m 432[2mms[22m[39m
|
|
699
|
+
[32mβ[39m [30m[43m node [49m[39m test/proxy.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
700
|
+
[32mβ[39m [30m[43m node [49m[39m test/pages/api/logout.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 33[2mms[22m[39m
|
|
701
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/shouldBypassRefreshToken.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
702
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/analytics/useStartRecommendationSession.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 47[2mms[22m[39m
|
|
703
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/orderEntry/useOrderFormItems.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 38[2mms[22m[39m
|
|
704
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/webops-api.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
705
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/account/orders/StatusCard.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 28[2mms[22m[39m
|
|
691
706
|
[32mβ[39m [30m[43m node [49m[39m test/sdk/localization/store-url.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
692
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/deliveryPromise/queries.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
693
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/cart/waitForSessionValidated.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
694
|
-
[32mβ[39m [30m[43m node [49m[39m test/server/cms/global.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
695
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/deliveryPromise/provider.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m
|
|
696
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/auth/useAuth.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
707
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/deliveryPromise/queries.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
708
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/cart/waitForSessionValidated.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
709
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/cms/global.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
710
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/deliveryPromise/provider.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
711
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/auth/useAuth.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 31[2mms[22m[39m
|
|
697
712
|
[90mstderr[2m | test/server/storeDirectives.test.ts[2m > [22m[2mstore directives through the core server[2m > [22m[2mapplies @auth from a store field and validates the session once
|
|
698
713
|
[22m[39mhttps://storeframework.vtexcommercestable.com.br/api/vtexid/credential/validate {
|
|
699
714
|
headers: { [32m'content-type'[39m: [32m'application/json'[39m, [32m'X-FORWARDED-HOST'[39m: [32m''[39m },
|
|
@@ -701,43 +716,44 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
|
|
|
701
716
|
method: [32m'POST'[39m
|
|
702
717
|
} { status: [33m401[39m, statusText: [32m'Unauthorized'[39m, headers: {} }
|
|
703
718
|
|
|
704
|
-
[32mβ[39m [30m[43m node [49m[39m test/server/storeDirectives.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
705
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/mergeDiscoveryConfig.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
706
|
-
[32mβ[39m [30m[43m node [49m[39m test/server/rootSpan.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
707
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/getRequestHostname.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m
|
|
708
|
-
[32mβ[39m [30m[43m node [49m[39m test/pages/api/preview.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
709
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/account/Layout.test.tsx [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
719
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/storeDirectives.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 55[2mms[22m[39m
|
|
720
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/mergeDiscoveryConfig.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
721
|
+
[32mβ[39m [30m[43m node [49m[39m test/server/rootSpan.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 31[2mms[22m[39m
|
|
722
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/getRequestHostname.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
723
|
+
[32mβ[39m [30m[43m node [49m[39m test/pages/api/preview.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
724
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/account/Layout.test.tsx [2m([22m[2m6 tests[22m[2m)[22m[32m 63[2mms[22m[39m
|
|
710
725
|
[32mβ[39m [30m[43m node [49m[39m test/components/search/SearchInput.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
711
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/validateSessionRefreshToken.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
712
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
713
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/region/useRegion.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
714
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
715
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
716
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
717
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/
|
|
718
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/
|
|
719
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
720
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/
|
|
721
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/
|
|
722
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
723
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
724
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
725
|
-
[32mβ[39m [30m[43m node [49m[39m test/
|
|
726
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/validateSessionRefreshToken.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
727
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/search/SearchDropdown.test.tsx [2m([22m[2m1 test[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
728
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/region/useRegion.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 17[2mms[22m[39m
|
|
729
|
+
[32mβ[39m [30m[43m node [49m[39m test/pages/pvt/account/403.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
730
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/recommendations/vrn.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
731
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/retry.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
732
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/getIsB2BBuyer.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
733
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/getB2BSessionClaims.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
734
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/recommendations/useRecommendationUserId.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 187[2mms[22m[39m
|
|
735
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/subDomainPrefixWarning.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
736
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/userOrderStatus.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
737
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/unlockResponse.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
738
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/recommendations/useRecommendations.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
739
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/account/OrganizationDrawerBody.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m 34[2mms[22m[39m
|
|
740
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/deliveryPromise/reducer.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
726
741
|
[32mβ[39m [30m[43m node [49m[39m test/utils/isLocalHost.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
742
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/quotes/MyAccountQuoteStatusBadge.test.tsx [2m([22m[2m4 tests[22m[2m)[22m[32m 39[2mms[22m[39m
|
|
727
743
|
[32mβ[39m [30m[43m node [49m[39m test/sdk/session/toSessionInput.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
728
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/account/orders/getOrderTotalLabel.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
729
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/account/orders/listOrdersLabels.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
730
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/getCookie.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
731
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/auth/ProfileChallenge.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
744
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/account/orders/getOrderTotalLabel.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
745
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/account/orders/listOrdersLabels.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
746
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/getCookie.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
747
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/auth/ProfileChallenge.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[32m 37[2mms[22m[39m
|
|
732
748
|
[32mβ[39m [30m[43m node [49m[39m test/sdk/session/isSignInAreaResolved.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
733
|
-
[32mβ[39m [30m[43m node [49m[39m test/utils/filterChannel.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
734
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/analytics/utils.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
735
|
-
[32mβ[39m [30m[43m node [49m[39m test/instrumentation.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
736
|
-
[32mβ[39m [30m[43m node [49m[39m test/components/account/orders/orderDetailsLabels.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
737
|
-
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/clearPersistedSessionState.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
738
|
-
|
|
739
|
-
[2m Test Files [22m [1m[
|
|
740
|
-
[2m Tests [22m [1m[
|
|
741
|
-
[2m Start at [22m
|
|
742
|
-
[2m Duration [22m
|
|
749
|
+
[32mβ[39m [30m[43m node [49m[39m test/utils/filterChannel.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
750
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/analytics/utils.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
751
|
+
[32mβ[39m [30m[43m node [49m[39m test/instrumentation.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
752
|
+
[32mβ[39m [30m[43m node [49m[39m test/components/account/orders/orderDetailsLabels.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
753
|
+
[32mβ[39m [30m[43m node [49m[39m test/sdk/account/clearPersistedSessionState.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
754
|
+
|
|
755
|
+
[2m Test Files [22m [1m[32m151 passed[39m[22m[90m (151)[39m
|
|
756
|
+
[2m Tests [22m [1m[32m1289 passed[39m[22m[90m (1289)[39m
|
|
757
|
+
[2m Start at [22m 12:25:27
|
|
758
|
+
[2m Duration [22m 60.94s[2m (transform 15.17s, setup 0ms, import 56.78s, tests 20.96s, environment 72.60s)[22m
|
|
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
|
|
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
|
|
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
|
|
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
|
+
"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.
|
|
74
|
-
"@faststore/
|
|
75
|
-
"@faststore/
|
|
76
|
-
"@faststore/
|
|
77
|
-
"@faststore/
|
|
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
|
|
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 = ({
|
|
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
|
|
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:
|
|
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: () =>
|
|
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.
|
|
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
|
+
})
|