@@ -96,6 +96,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
9696 expect ( response ) . toHaveProperty ( 'stopWords' , [ ] )
9797 expect ( response ) . toHaveProperty ( 'synonyms' , { } )
9898 expect ( response ) . toHaveProperty ( 'faceting' , { maxValuesPerFacet : 100 } )
99+ expect ( response ) . toHaveProperty ( 'pagination' , { maxTotalHits : 1000 } )
99100 } )
100101
101102 test ( `${ permission } key: Get default settings of empty index with primary key` , async ( ) => {
@@ -111,6 +112,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
111112 expect ( response ) . toHaveProperty ( 'stopWords' , [ ] )
112113 expect ( response ) . toHaveProperty ( 'synonyms' , { } )
113114 expect ( response ) . toHaveProperty ( 'faceting' , { maxValuesPerFacet : 100 } )
115+ expect ( response ) . toHaveProperty ( 'pagination' , { maxTotalHits : 1000 } )
114116 } )
115117
116118 test ( `${ permission } key: Update settings` , async ( ) => {
@@ -174,6 +176,9 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
174176 faceting : {
175177 maxValuesPerFacet : null ,
176178 } ,
179+ pagination : {
180+ maxTotalHits : null ,
181+ } ,
177182 }
178183 // Add the settings
179184 const task = await client . index ( index . uid ) . updateSettings ( newSettings )
@@ -210,6 +215,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
210215 expect ( response ) . toHaveProperty ( 'stopWords' , newSettings . stopWords )
211216 expect ( response ) . toHaveProperty ( 'synonyms' , { } )
212217 expect ( response ) . toHaveProperty ( 'faceting' , { maxValuesPerFacet : 100 } )
218+ expect ( response ) . toHaveProperty ( 'pagination' , { maxTotalHits : 1000 } )
213219 } )
214220
215221 test ( `${ permission } key: Reset settings` , async ( ) => {
@@ -227,6 +233,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
227233 expect ( response ) . toHaveProperty ( 'stopWords' , [ ] )
228234 expect ( response ) . toHaveProperty ( 'synonyms' , { } )
229235 expect ( response ) . toHaveProperty ( 'faceting' , { maxValuesPerFacet : 100 } )
236+ expect ( response ) . toHaveProperty ( 'pagination' , { maxTotalHits : 1000 } )
230237 } )
231238
232239 test ( `${ permission } key: Reset settings of empty index` , async ( ) => {
@@ -243,6 +250,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
243250 expect ( response ) . toHaveProperty ( 'stopWords' , [ ] )
244251 expect ( response ) . toHaveProperty ( 'synonyms' , { } )
245252 expect ( response ) . toHaveProperty ( 'faceting' , { maxValuesPerFacet : 100 } )
253+ expect ( response ) . toHaveProperty ( 'pagination' , { maxTotalHits : 1000 } )
246254 } )
247255
248256 test ( `${ permission } key: Update searchableAttributes settings on empty index` , async ( ) => {
@@ -268,6 +276,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
268276 expect ( response ) . toHaveProperty ( 'stopWords' , defaultSettings . stopWords )
269277 expect ( response ) . toHaveProperty ( 'synonyms' , { } )
270278 expect ( response ) . toHaveProperty ( 'faceting' , { maxValuesPerFacet : 100 } )
279+ expect ( response ) . toHaveProperty ( 'pagination' , { maxTotalHits : 1000 } )
271280 } )
272281
273282 test ( `${ permission } key: Update searchableAttributes settings on empty index with a primary key` , async ( ) => {
@@ -303,6 +312,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
303312 expect ( response ) . toHaveProperty ( 'stopWords' , defaultSettings . stopWords )
304313 expect ( response ) . toHaveProperty ( 'synonyms' , { } )
305314 expect ( response ) . toHaveProperty ( 'faceting' , { maxValuesPerFacet : 100 } )
315+ expect ( response ) . toHaveProperty ( 'pagination' , { maxTotalHits : 1000 } )
306316 } )
307317 }
308318)
0 commit comments