@plone/volto 16.0.0-alpha.19 → 16.0.0-alpha.21

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.
@@ -33,7 +33,7 @@ jobs:
33
33
  - run: yarn --frozen-lockfile
34
34
 
35
35
  - name: Cypress acceptance tests
36
- uses: cypress-io/github-action@v2
36
+ uses: cypress-io/github-action@v4
37
37
  env:
38
38
  BABEL_ENV: production
39
39
  CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
@@ -47,7 +47,6 @@ jobs:
47
47
  browser: chrome
48
48
  # headless: true
49
49
  group: Core ${{ matrix.node-version }}
50
- config: integrationFolder=cypress/tests
51
50
  spec: cypress/tests/core/basic/**/*.js
52
51
  start: |
53
52
  make start-test-acceptance-server
@@ -99,7 +98,7 @@ jobs:
99
98
  - run: yarn --frozen-lockfile
100
99
 
101
100
  - name: Cypress acceptance tests
102
- uses: cypress-io/github-action@v2
101
+ uses: cypress-io/github-action@v4
103
102
  env:
104
103
  BABEL_ENV: production
105
104
  CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
@@ -113,7 +112,6 @@ jobs:
113
112
  browser: chrome
114
113
  # headless: true
115
114
  group: Core Blocks ${{ matrix.node-version }}
116
- config: integrationFolder=cypress/tests
117
115
  spec: cypress/tests/core/blocks/**/*.js
118
116
  start: |
119
117
  make start-test-acceptance-server
@@ -165,7 +163,7 @@ jobs:
165
163
  - run: yarn --frozen-lockfile
166
164
 
167
165
  - name: Cypress acceptance tests
168
- uses: cypress-io/github-action@v2
166
+ uses: cypress-io/github-action@v4
169
167
  env:
170
168
  BABEL_ENV: production
171
169
  CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
@@ -179,7 +177,6 @@ jobs:
179
177
  browser: chrome
180
178
  # headless: true
181
179
  group: Core Volto Slate ${{ matrix.node-version }}
182
- config: integrationFolder=cypress/tests
183
180
  spec: cypress/tests/core/volto-slate/**/*.js
184
181
  start: |
185
182
  make start-test-acceptance-server
@@ -230,7 +227,7 @@ jobs:
230
227
  - run: yarn --frozen-lockfile
231
228
 
232
229
  - name: Cypress acceptance tests
233
- uses: cypress-io/github-action@v2
230
+ uses: cypress-io/github-action@v4
234
231
  env:
235
232
  BABEL_ENV: production
236
233
  CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
@@ -244,7 +241,6 @@ jobs:
244
241
  browser: chrome
245
242
  # headless: true
246
243
  group: Core Basic - Plone 6
247
- config: integrationFolder=cypress/tests
248
244
  spec: cypress/tests/core/basic/**/*.js
249
245
  start: |
250
246
  make start-test-acceptance-server DOCKER_IMAGE=plone/plone-backend:6.0.0a4
@@ -323,7 +319,7 @@ jobs:
323
319
  # CI: true
324
320
 
325
321
  - name: Cypress Coresandbox Acceptance tests
326
- uses: cypress-io/github-action@v2
322
+ uses: cypress-io/github-action@v4
327
323
  env:
328
324
  BABEL_ENV: production
329
325
  CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
@@ -337,7 +333,6 @@ jobs:
337
333
  browser: chrome
338
334
  # headless: true
339
335
  group: Coresandbox
340
- config: integrationFolder=cypress/tests
341
336
  spec: cypress/tests/coresandbox/**/*.js
342
337
  start: |
343
338
  make start-test-acceptance-server-coresandbox
@@ -389,7 +384,7 @@ jobs:
389
384
  - run: yarn --frozen-lockfile
390
385
 
391
386
  - name: Cypress acceptance tests
392
- uses: cypress-io/github-action@v2
387
+ uses: cypress-io/github-action@v4
393
388
  env:
394
389
  BABEL_ENV: production
395
390
  CYPRESS_API: guillotina
@@ -404,7 +399,6 @@ jobs:
404
399
  browser: chrome
405
400
  headless: true
406
401
  group: Guillotina
407
- config: integrationFolder=cypress/tests
408
402
  spec: cypress/tests/guillotina/**/*.js
409
403
  start: |
410
404
  make start-test-acceptance-server-guillotina
@@ -459,7 +453,7 @@ jobs:
459
453
  - run: yarn --frozen-lockfile
460
454
 
461
455
  - name: Cypress acceptance tests
462
- uses: cypress-io/github-action@v2
456
+ uses: cypress-io/github-action@v4
463
457
  env:
464
458
  BABEL_ENV: production
465
459
  CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
@@ -473,7 +467,6 @@ jobs:
473
467
  browser: chrome
474
468
  headless: true
475
469
  group: Multilingual
476
- config: integrationFolder=cypress/tests
477
470
  spec: cypress/tests/multilingual/**/*.js
478
471
  start: |
479
472
  make start-test-acceptance-server-multilingual
@@ -550,7 +543,7 @@ jobs:
550
543
  # CI: true
551
544
 
552
545
  - name: Cypress acceptance tests
553
- uses: cypress-io/github-action@v2
546
+ uses: cypress-io/github-action@v4
554
547
  env:
555
548
  BABEL_ENV: production
556
549
  CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
@@ -564,7 +557,6 @@ jobs:
564
557
  browser: chrome
565
558
  headless: true
566
559
  group: Working Copy
567
- config: integrationFolder=cypress/tests
568
560
  spec: cypress/tests/workingCopy/**/*.js
569
561
  start: |
570
562
  make start-test-acceptance-server-workingcopy
@@ -647,7 +639,7 @@ jobs:
647
639
  working-directory: ${{env.project-directory}}
648
640
 
649
641
  - name: Cypress acceptance tests
650
- uses: cypress-io/github-action@v2
642
+ uses: cypress-io/github-action@v4
651
643
  env:
652
644
  BABEL_ENV: production
653
645
  CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
@@ -661,7 +653,6 @@ jobs:
661
653
  browser: chrome
662
654
  headless: true
663
655
  group: Project Generator
664
- config: integrationFolder=cypress/tests
665
656
  spec: cypress/tests/minimal/**/*.js
666
657
  start: |
667
658
  make start-test-acceptance-server
@@ -719,7 +710,7 @@ jobs:
719
710
  - run: yarn --frozen-lockfile
720
711
 
721
712
  - name: Cypress acceptance tests
722
- uses: cypress-io/github-action@v2
713
+ uses: cypress-io/github-action@v4
723
714
  env:
724
715
  BABEL_ENV: production
725
716
  CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
@@ -733,7 +724,6 @@ jobs:
733
724
  browser: chrome
734
725
  headless: true
735
726
  group: Seamless
736
- config: integrationFolder=cypress/tests
737
727
  spec: cypress/tests/minimal/**/*.js
738
728
  start: |
739
729
  make start-test-acceptance-server
@@ -12,21 +12,10 @@ jobs:
12
12
 
13
13
  # node setup
14
14
  - name: Use Node.js ${{ matrix.node-version }}
15
- uses: actions/setup-node@v1
15
+ uses: actions/setup-node@v3
16
16
  with:
17
17
  node-version: ${{ matrix.node-version }}
18
-
19
- # node cache
20
- - name: Get yarn cache directory path
21
- id: yarn-cache-dir-path
22
- run: echo "::set-output name=dir::$(yarn cache dir)"
23
- - uses: actions/cache@v1
24
- id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
25
- with:
26
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
27
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28
- restore-keys: |
29
- ${{ runner.os }}-yarn-
18
+ cache: yarn
30
19
 
31
20
  # node install
32
21
  - run: yarn --frozen-lockfile
@@ -1,4 +1,5 @@
1
1
  const webpack = require('webpack');
2
+ const fs = require('fs');
2
3
  const path = require('path');
3
4
  const makeLoaderFinder = require('razzle-dev-utils/makeLoaderFinder');
4
5
  const fileLoaderFinder = makeLoaderFinder('file-loader');
@@ -83,7 +84,15 @@ module.exports = {
83
84
  },
84
85
  };
85
86
 
86
- // console.dir(resultConfig, { depth: null });
87
+ // Addons have to be loaded with babel
88
+ const addonPaths = registry.addonNames.map((addon) =>
89
+ fs.realpathSync(registry.packages[addon].modulePath),
90
+ );
91
+ resultConfig.module.rules[1].exclude = (input) =>
92
+ // exclude every input from node_modules except from @plone/volto
93
+ /node_modules\/(?!(@plone\/volto)\/)/.test(input) &&
94
+ // If input is in an addon, DON'T exclude it
95
+ !addonPaths.some((p) => input.includes(p));
87
96
 
88
97
  return resultConfig;
89
98
  },
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Change Log
2
2
 
3
+ ## 16.0.0-alpha.21 (2022-08-03)
4
+
5
+ ### Bugfix
6
+
7
+ - Fix ArrayWidget choices when editing a recently created content item. @davisagli
8
+
9
+ ### Internal
10
+
11
+ - Fix propTypes for Pagination component @davisagli
12
+
13
+ ## 16.0.0-alpha.20 (2022-08-01)
14
+
15
+ ### Breaking
16
+
17
+ - Use `Cypress` 10.3.0 (migrate from 9.x.x). Cypress 10 has some interesting goodies, being the native support of Apple Silicon Computers the main of it. See https://docs.voltocms.com/upgrade-guide/ for more information.
18
+
19
+ ### Bugfix
20
+
21
+ - Make Search page title translatable @erral
22
+
23
+ ### Documentation
24
+
25
+ - Minor clean up of volto-slate upgrade guide. @stevepiercy
26
+
27
+ - Rework documentation on how to write a Slate plugin @ksuess
28
+
3
29
  ## 16.0.0-alpha.19 (2022-07-28)
4
30
 
5
31
  ### Breaking
@@ -21,6 +47,7 @@
21
47
 
22
48
  - Allow passing `allowedChildren` option to the BlockButton, to strip elements in headlines @tiberiuichim
23
49
  - Upgrade to latest `@plone/scripts` @sneridagh
50
+ - Update browserlist definitions @sneridagh
24
51
 
25
52
  ### Documentation
26
53
 
@@ -454,6 +481,7 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
454
481
  - Improve Cypress integration, using Cypress official Github Action. Improve some flaky tests that showed up, and were known as problematic. Refactor and rename all the Github actions giving them meaningful names, and group them by type. Enable Cypress Dashboard for Volto. @sneridagh
455
482
  - Stop using `xmlrpc` library for issuing the setup/teardown in core, use a `cy.request` instead. @sneridagh
456
483
  - Added Cypress environment variables for adjusting the backend URL of commands @JeffersonBledsoe #3271
484
+ - Fixed Storybook configuration for add-ons @pnicolli
457
485
 
458
486
  ### Documentation
459
487
 
package/babel.js CHANGED
@@ -12,6 +12,7 @@ module.exports = function (api) {
12
12
  '@babel/plugin-proposal-export-default-from', // Stage 1
13
13
  '@babel/plugin-syntax-export-namespace-from', // Stage 4
14
14
  '@babel/plugin-proposal-throw-expressions', // Stage 2
15
+ '@babel/plugin-proposal-nullish-coalescing-operator', // Stage 4
15
16
  [
16
17
  'babel-plugin-root-import', // Required for the ~ imports to work
17
18
  {
File without changes
@@ -0,0 +1,12 @@
1
+ const { defineConfig } = require('cypress');
2
+
3
+ module.exports = defineConfig({
4
+ viewportWidth: 1280,
5
+ chromeWebSecurity: false,
6
+ projectId: 'hvviu4',
7
+ e2e: {
8
+ baseUrl: 'http://localhost:3000',
9
+ excludeSpecPattern: ['*~'],
10
+ specPattern: 'cypress/tests/**/*.{js,jsx,ts,tsx}',
11
+ },
12
+ });
@@ -2255,6 +2255,7 @@ msgstr "Actualitzacions d'esquemes"
2255
2255
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2256
2256
  #: components/manage/Blocks/Search/layout/TopSideFacets
2257
2257
  #: components/manage/Blocks/Search/schema
2258
+ #: components/theme/Search/Search
2258
2259
  #: components/theme/SearchWidget/SearchWidget
2259
2260
  # defaultMessage: Search
2260
2261
  msgid "Search"
@@ -2252,6 +2252,7 @@ msgstr "Aktualisierungen Schema"
2252
2252
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2253
2253
  #: components/manage/Blocks/Search/layout/TopSideFacets
2254
2254
  #: components/manage/Blocks/Search/schema
2255
+ #: components/theme/Search/Search
2255
2256
  #: components/theme/SearchWidget/SearchWidget
2256
2257
  # defaultMessage: Search
2257
2258
  msgid "Search"
@@ -2246,6 +2246,7 @@ msgstr ""
2246
2246
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2247
2247
  #: components/manage/Blocks/Search/layout/TopSideFacets
2248
2248
  #: components/manage/Blocks/Search/schema
2249
+ #: components/theme/Search/Search
2249
2250
  #: components/theme/SearchWidget/SearchWidget
2250
2251
  # defaultMessage: Search
2251
2252
  msgid "Search"
@@ -2256,6 +2256,7 @@ msgstr "Actualización de esquema"
2256
2256
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2257
2257
  #: components/manage/Blocks/Search/layout/TopSideFacets
2258
2258
  #: components/manage/Blocks/Search/schema
2259
+ #: components/theme/Search/Search
2259
2260
  #: components/theme/SearchWidget/SearchWidget
2260
2261
  # defaultMessage: Search
2261
2262
  msgid "Search"
@@ -2253,6 +2253,7 @@ msgstr "Eskemaren eguneraketak"
2253
2253
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2254
2254
  #: components/manage/Blocks/Search/layout/TopSideFacets
2255
2255
  #: components/manage/Blocks/Search/schema
2256
+ #: components/theme/Search/Search
2256
2257
  #: components/theme/SearchWidget/SearchWidget
2257
2258
  # defaultMessage: Search
2258
2259
  msgid "Search"
@@ -2263,6 +2263,7 @@ msgstr ""
2263
2263
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2264
2264
  #: components/manage/Blocks/Search/layout/TopSideFacets
2265
2265
  #: components/manage/Blocks/Search/schema
2266
+ #: components/theme/Search/Search
2266
2267
  #: components/theme/SearchWidget/SearchWidget
2267
2268
  # defaultMessage: Search
2268
2269
  msgid "Search"
@@ -2246,6 +2246,7 @@ msgstr "Aggiornamenti dello schema"
2246
2246
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2247
2247
  #: components/manage/Blocks/Search/layout/TopSideFacets
2248
2248
  #: components/manage/Blocks/Search/schema
2249
+ #: components/theme/Search/Search
2249
2250
  #: components/theme/SearchWidget/SearchWidget
2250
2251
  # defaultMessage: Search
2251
2252
  msgid "Search"
@@ -2254,6 +2254,7 @@ msgstr "スキーマの更新"
2254
2254
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2255
2255
  #: components/manage/Blocks/Search/layout/TopSideFacets
2256
2256
  #: components/manage/Blocks/Search/schema
2257
+ #: components/theme/Search/Search
2257
2258
  #: components/theme/SearchWidget/SearchWidget
2258
2259
  # defaultMessage: Search
2259
2260
  msgid "Search"
@@ -2265,6 +2265,7 @@ msgstr ""
2265
2265
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2266
2266
  #: components/manage/Blocks/Search/layout/TopSideFacets
2267
2267
  #: components/manage/Blocks/Search/schema
2268
+ #: components/theme/Search/Search
2268
2269
  #: components/theme/SearchWidget/SearchWidget
2269
2270
  # defaultMessage: Search
2270
2271
  msgid "Search"
@@ -2254,6 +2254,7 @@ msgstr ""
2254
2254
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2255
2255
  #: components/manage/Blocks/Search/layout/TopSideFacets
2256
2256
  #: components/manage/Blocks/Search/schema
2257
+ #: components/theme/Search/Search
2257
2258
  #: components/theme/SearchWidget/SearchWidget
2258
2259
  # defaultMessage: Search
2259
2260
  msgid "Search"
@@ -2256,6 +2256,7 @@ msgstr "Atualizações do esquema"
2256
2256
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2257
2257
  #: components/manage/Blocks/Search/layout/TopSideFacets
2258
2258
  #: components/manage/Blocks/Search/schema
2259
+ #: components/theme/Search/Search
2259
2260
  #: components/theme/SearchWidget/SearchWidget
2260
2261
  # defaultMessage: Search
2261
2262
  msgid "Search"
@@ -2246,6 +2246,7 @@ msgstr "Actualizări de schemă"
2246
2246
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2247
2247
  #: components/manage/Blocks/Search/layout/TopSideFacets
2248
2248
  #: components/manage/Blocks/Search/schema
2249
+ #: components/theme/Search/Search
2249
2250
  #: components/theme/SearchWidget/SearchWidget
2250
2251
  # defaultMessage: Search
2251
2252
  msgid "Search"
package/locales/volto.pot CHANGED
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2022-07-19T18:15:23.786Z\n"
4
+ "POT-Creation-Date: 2022-07-31T08:01:44.333Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
7
  "MIME-Version: 1.0\n"
@@ -2248,6 +2248,7 @@ msgstr ""
2248
2248
  #: components/manage/Blocks/Search/layout/RightColumnFacets
2249
2249
  #: components/manage/Blocks/Search/layout/TopSideFacets
2250
2250
  #: components/manage/Blocks/Search/schema
2251
+ #: components/theme/Search/Search
2251
2252
  #: components/theme/SearchWidget/SearchWidget
2252
2253
  # defaultMessage: Search
2253
2254
  msgid "Search"
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "16.0.0-alpha.19",
12
+ "version": "16.0.0-alpha.21",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -227,6 +227,7 @@
227
227
  "@babel/plugin-proposal-export-default-from": "7.10.4",
228
228
  "@babel/plugin-proposal-export-namespace-from": "7.10.4",
229
229
  "@babel/plugin-proposal-json-strings": "7.10.4",
230
+ "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
230
231
  "@babel/plugin-proposal-throw-expressions": "7.10.4",
231
232
  "@loadable/babel-plugin": "5.13.2",
232
233
  "@loadable/component": "5.14.1",
@@ -255,7 +256,7 @@
255
256
  "connected-react-router": "6.8.0",
256
257
  "coveralls": "3.0.2",
257
258
  "crypto-random-string": "3.2.0",
258
- "cypress": "9.6.1",
259
+ "cypress": "10.3.1",
259
260
  "cypress-axe": "0.14.0",
260
261
  "cypress-file-upload": "5.0.8",
261
262
  "debug": "4.3.2",
@@ -162,6 +162,8 @@ class ArrayWidget extends Component {
162
162
  choices: PropTypes.arrayOf(
163
163
  PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
164
164
  ),
165
+ vocabLoading: PropTypes.bool,
166
+ vocabLoaded: PropTypes.bool,
165
167
  items: PropTypes.shape({
166
168
  vocabulary: PropTypes.object,
167
169
  }),
@@ -227,6 +229,21 @@ class ArrayWidget extends Component {
227
229
  }
228
230
  }
229
231
 
232
+ componentDidUpdate() {
233
+ if (
234
+ !this.props.items?.choices?.length &&
235
+ !this.props.choices?.length &&
236
+ this.props.vocabLoading === undefined &&
237
+ !this.props.vocabLoaded
238
+ ) {
239
+ this.props.getVocabulary({
240
+ vocabNameOrURL: this.props.vocabBaseUrl,
241
+ size: -1,
242
+ subrequest: this.props.lang,
243
+ });
244
+ }
245
+ }
246
+
230
247
  /**
231
248
  * Handle the field change, store it in the local state and back to simple
232
249
  * array of tokens for correct serialization
@@ -384,6 +401,8 @@ export default compose(
384
401
  return {
385
402
  choices: vocabState.items,
386
403
  vocabBaseUrl,
404
+ vocabLoading: vocabState.loading,
405
+ vocabLoaded: vocabState.loaded,
387
406
  lang: state.intl.locale,
388
407
  };
389
408
  }
@@ -128,7 +128,9 @@ Pagination.propTypes = {
128
128
  /**
129
129
  * Page sizes to choose from
130
130
  */
131
- pageSizes: PropTypes.arrayOf(PropTypes.number),
131
+ pageSizes: PropTypes.arrayOf(
132
+ PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
133
+ ),
132
134
  /**
133
135
  * Handler called when changing the page
134
136
  */
@@ -14,7 +14,7 @@ import { Portal } from 'react-portal';
14
14
  import { Container, Pagination, Button, Header } from 'semantic-ui-react';
15
15
  import qs from 'query-string';
16
16
  import classNames from 'classnames';
17
-
17
+ import { defineMessages, injectIntl } from 'react-intl';
18
18
  import config from '@plone/volto/registry';
19
19
  import { Helmet } from '@plone/volto/helpers';
20
20
  import { searchContent } from '@plone/volto/actions';
@@ -23,6 +23,13 @@ import { SearchTags, Toolbar, Icon } from '@plone/volto/components';
23
23
  import paginationLeftSVG from '@plone/volto/icons/left-key.svg';
24
24
  import paginationRightSVG from '@plone/volto/icons/right-key.svg';
25
25
 
26
+ const messages = defineMessages({
27
+ Search: {
28
+ id: 'Search',
29
+ defaultMessage: 'Search',
30
+ },
31
+ });
32
+
26
33
  /**
27
34
  * Search class.
28
35
  * @class SearchComponent
@@ -145,7 +152,7 @@ class Search extends Component {
145
152
  const { settings } = config;
146
153
  return (
147
154
  <Container id="page-search">
148
- <Helmet title="Search" />
155
+ <Helmet title={this.props.intl.formatMessage(messages.Search)} />
149
156
  <div className="container">
150
157
  <article id="content">
151
158
  <header>
@@ -316,16 +323,20 @@ class Search extends Component {
316
323
  }
317
324
  }
318
325
 
319
- export const __test__ = connect(
320
- (state, props) => ({
321
- items: state.search.items,
322
- searchableText: qs.parse(props.history.location.search).SearchableText,
323
- pathname: props.history.location.pathname,
324
- }),
325
- { searchContent },
326
+ export const __test__ = compose(
327
+ injectIntl,
328
+ connect(
329
+ (state, props) => ({
330
+ items: state.search.items,
331
+ searchableText: qs.parse(props.history.location.search).SearchableText,
332
+ pathname: props.history.location.pathname,
333
+ }),
334
+ { searchContent },
335
+ ),
326
336
  )(Search);
327
337
 
328
338
  export default compose(
339
+ injectIntl,
329
340
  connect(
330
341
  (state, props) => ({
331
342
  items: state.search.items,
@@ -1,17 +0,0 @@
1
- // ***********************************************************
2
- // This example plugins/index.js can be used to load plugins
3
- //
4
- // You can change the location of this file or turn off loading
5
- // the plugins file with the 'pluginsFile' configuration option.
6
- //
7
- // You can read more here:
8
- // https://on.cypress.io/plugins-guide
9
- // ***********************************************************
10
-
11
- // This function is called when a project is opened or re-opened (e.g. due to
12
- // the project's config changing)
13
-
14
- module.exports = (on, config) => {
15
- // `on` is used to hook into various events Cypress emits
16
- // `config` is the resolved Cypress config
17
- };
package/cypress.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "baseUrl": "http://localhost:3000",
3
- "viewportWidth": 1280,
4
- "ignoreTestFiles": ["*~"],
5
- "integrationFolder": "cypress/tests/core",
6
- "chromeWebSecurity": false,
7
- "projectId": "hvviu4"
8
- }