@webship-js/meilisearch-steps 0.0.0-stage → 2.0.0
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/LICENSE +21 -0
- package/README.md +218 -2
- package/assets/logo.svg +1 -0
- package/demo/books.json +502 -0
- package/package.json +69 -4
- package/tests/features/dashboard.feature +16 -0
- package/tests/features/indexes.feature +38 -0
- package/tests/features/keys.feature +27 -0
- package/tests/step-definitions/meilisearch-dashboard.steps.js +163 -0
- package/tests/step-definitions/meilisearch-indexes.steps.js +213 -0
- package/tests/step-definitions/meilisearch-keys.steps.js +122 -0
- package/tests/step-definitions/meilisearch-support.js +159 -0
package/demo/books.json
ADDED
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": 1,
|
|
4
|
+
"title": "The Northern Archive",
|
|
5
|
+
"author": "Rafi Okafor",
|
|
6
|
+
"genre": "poetry",
|
|
7
|
+
"year": 1994,
|
|
8
|
+
"pages": 638,
|
|
9
|
+
"rating": 2.7,
|
|
10
|
+
"blurb": "Short poems about an archive at different hours, written to be read aloud."
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": 2,
|
|
14
|
+
"title": "The Second Harbour",
|
|
15
|
+
"author": "Mara Lindqvist",
|
|
16
|
+
"genre": "history",
|
|
17
|
+
"year": 2017,
|
|
18
|
+
"pages": 518,
|
|
19
|
+
"rating": 2.7,
|
|
20
|
+
"blurb": "How one harbour changed a coast over two hundred years, told through the people who worked it."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 3,
|
|
24
|
+
"title": "The Silver Market",
|
|
25
|
+
"author": "Mara Silva",
|
|
26
|
+
"genre": "poetry",
|
|
27
|
+
"year": 1997,
|
|
28
|
+
"pages": 318,
|
|
29
|
+
"rating": 4.1,
|
|
30
|
+
"blurb": "Short poems about a market at different hours, written to be read aloud."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": 4,
|
|
34
|
+
"title": "The Second Bridge",
|
|
35
|
+
"author": "Mara Moreau",
|
|
36
|
+
"genre": "poetry",
|
|
37
|
+
"year": 1992,
|
|
38
|
+
"pages": 226,
|
|
39
|
+
"rating": 3.2,
|
|
40
|
+
"blurb": "Short poems about a bridge at different hours, written to be read aloud."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": 5,
|
|
44
|
+
"title": "The Hidden Market",
|
|
45
|
+
"author": "Hana Tanaka",
|
|
46
|
+
"genre": "science",
|
|
47
|
+
"year": 2025,
|
|
48
|
+
"pages": 275,
|
|
49
|
+
"rating": 2.8,
|
|
50
|
+
"blurb": "A plain-spoken walk through how a market works, with small experiments a reader can try at home."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": 6,
|
|
54
|
+
"title": "The Second Workshop",
|
|
55
|
+
"author": "Osric Lindqvist",
|
|
56
|
+
"genre": "history",
|
|
57
|
+
"year": 2025,
|
|
58
|
+
"pages": 154,
|
|
59
|
+
"rating": 3.9,
|
|
60
|
+
"blurb": "How one workshop changed a coast over two hundred years, told through the people who worked it."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": 7,
|
|
64
|
+
"title": "The Second Lighthouse",
|
|
65
|
+
"author": "Rafi Nakamura",
|
|
66
|
+
"genre": "gardening",
|
|
67
|
+
"year": 2017,
|
|
68
|
+
"pages": 411,
|
|
69
|
+
"rating": 3.7,
|
|
70
|
+
"blurb": "Plain advice for a small lighthouse garden: soil, seasons and what to plant when nothing grows."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": 8,
|
|
74
|
+
"title": "The Open Library",
|
|
75
|
+
"author": "Yara Moreau",
|
|
76
|
+
"genre": "fantasy",
|
|
77
|
+
"year": 2001,
|
|
78
|
+
"pages": 339,
|
|
79
|
+
"rating": 2.7,
|
|
80
|
+
"blurb": "In a city built around a library, an apprentice learns that every door remembers who opened it."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": 9,
|
|
84
|
+
"title": "The Patient Market",
|
|
85
|
+
"author": "Osric Kowal",
|
|
86
|
+
"genre": "gardening",
|
|
87
|
+
"year": 2018,
|
|
88
|
+
"pages": 384,
|
|
89
|
+
"rating": 4.0,
|
|
90
|
+
"blurb": "Plain advice for a small market garden: soil, seasons and what to plant when nothing grows."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": 10,
|
|
94
|
+
"title": "The Silver Orchard",
|
|
95
|
+
"author": "Leena Quinn",
|
|
96
|
+
"genre": "poetry",
|
|
97
|
+
"year": 1999,
|
|
98
|
+
"pages": 590,
|
|
99
|
+
"rating": 3.6,
|
|
100
|
+
"blurb": "Short poems about an orchard at different hours, written to be read aloud."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": 11,
|
|
104
|
+
"title": "The Winter Orchard",
|
|
105
|
+
"author": "Osric Kowal",
|
|
106
|
+
"genre": "fantasy",
|
|
107
|
+
"year": 2012,
|
|
108
|
+
"pages": 598,
|
|
109
|
+
"rating": 3.9,
|
|
110
|
+
"blurb": "In a city built around an orchard, an apprentice learns that every door remembers who opened it."
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": 12,
|
|
114
|
+
"title": "The Glass Orchard",
|
|
115
|
+
"author": "Yara Brandt",
|
|
116
|
+
"genre": "science",
|
|
117
|
+
"year": 1994,
|
|
118
|
+
"pages": 152,
|
|
119
|
+
"rating": 4.3,
|
|
120
|
+
"blurb": "A plain-spoken walk through how an orchard works, with small experiments a reader can try at home."
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": 13,
|
|
124
|
+
"title": "The Patient Workshop",
|
|
125
|
+
"author": "Yara Kowal",
|
|
126
|
+
"genre": "gardening",
|
|
127
|
+
"year": 2014,
|
|
128
|
+
"pages": 445,
|
|
129
|
+
"rating": 2.6,
|
|
130
|
+
"blurb": "Plain advice for a small workshop garden: soil, seasons and what to plant when nothing grows."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": 14,
|
|
134
|
+
"title": "The Glass Engine",
|
|
135
|
+
"author": "Hana Lindqvist",
|
|
136
|
+
"genre": "cooking",
|
|
137
|
+
"year": 2021,
|
|
138
|
+
"pages": 150,
|
|
139
|
+
"rating": 3.0,
|
|
140
|
+
"blurb": "Recipes gathered around an engine: slow breakfasts, quick suppers and the bread that ties them together."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": 15,
|
|
144
|
+
"title": "The Patient Archive",
|
|
145
|
+
"author": "Nadia Azevedo",
|
|
146
|
+
"genre": "history",
|
|
147
|
+
"year": 2021,
|
|
148
|
+
"pages": 172,
|
|
149
|
+
"rating": 2.9,
|
|
150
|
+
"blurb": "How one archive changed a coast over two hundred years, told through the people who worked it."
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": 16,
|
|
154
|
+
"title": "The Paper Market",
|
|
155
|
+
"author": "Leena Azevedo",
|
|
156
|
+
"genre": "travel",
|
|
157
|
+
"year": 2025,
|
|
158
|
+
"pages": 375,
|
|
159
|
+
"rating": 4.3,
|
|
160
|
+
"blurb": "Notes from a year of walking from one market to the next, with maps drawn by hand."
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": 17,
|
|
164
|
+
"title": "The Northern Workshop",
|
|
165
|
+
"author": "Tomas Haddad",
|
|
166
|
+
"genre": "poetry",
|
|
167
|
+
"year": 1995,
|
|
168
|
+
"pages": 270,
|
|
169
|
+
"rating": 2.9,
|
|
170
|
+
"blurb": "Short poems about a workshop at different hours, written to be read aloud."
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": 18,
|
|
174
|
+
"title": "The Winter Lighthouse",
|
|
175
|
+
"author": "Felix Silva",
|
|
176
|
+
"genre": "mystery",
|
|
177
|
+
"year": 2001,
|
|
178
|
+
"pages": 359,
|
|
179
|
+
"rating": 3.2,
|
|
180
|
+
"blurb": "A keeper of lighthouse finds a letter that should not exist and follows it through a town that would rather forget."
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": 19,
|
|
184
|
+
"title": "The Hidden River",
|
|
185
|
+
"author": "Hana Silva",
|
|
186
|
+
"genre": "fantasy",
|
|
187
|
+
"year": 2010,
|
|
188
|
+
"pages": 218,
|
|
189
|
+
"rating": 4.2,
|
|
190
|
+
"blurb": "In a city built around a river, an apprentice learns that every door remembers who opened it."
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": 20,
|
|
194
|
+
"title": "The Restless Bridge",
|
|
195
|
+
"author": "Felix Farouk",
|
|
196
|
+
"genre": "mystery",
|
|
197
|
+
"year": 2025,
|
|
198
|
+
"pages": 491,
|
|
199
|
+
"rating": 3.5,
|
|
200
|
+
"blurb": "A keeper of bridge finds a letter that should not exist and follows it through a town that would rather forget."
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": 21,
|
|
204
|
+
"title": "The Paper Orchard",
|
|
205
|
+
"author": "Rafi Azevedo",
|
|
206
|
+
"genre": "gardening",
|
|
207
|
+
"year": 1993,
|
|
208
|
+
"pages": 285,
|
|
209
|
+
"rating": 2.7,
|
|
210
|
+
"blurb": "Plain advice for a small orchard garden: soil, seasons and what to plant when nothing grows."
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id": 22,
|
|
214
|
+
"title": "The Burning Library",
|
|
215
|
+
"author": "Idris Quinn",
|
|
216
|
+
"genre": "cooking",
|
|
217
|
+
"year": 1993,
|
|
218
|
+
"pages": 194,
|
|
219
|
+
"rating": 2.5,
|
|
220
|
+
"blurb": "Recipes gathered around a library: slow breakfasts, quick suppers and the bread that ties them together."
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": 23,
|
|
224
|
+
"title": "The Silver Engine",
|
|
225
|
+
"author": "Idris Moreau",
|
|
226
|
+
"genre": "mystery",
|
|
227
|
+
"year": 2014,
|
|
228
|
+
"pages": 242,
|
|
229
|
+
"rating": 4.1,
|
|
230
|
+
"blurb": "A keeper of engine finds a letter that should not exist and follows it through a town that would rather forget."
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"id": 24,
|
|
234
|
+
"title": "The Northern Bridge",
|
|
235
|
+
"author": "Felix Lindqvist",
|
|
236
|
+
"genre": "fantasy",
|
|
237
|
+
"year": 1997,
|
|
238
|
+
"pages": 589,
|
|
239
|
+
"rating": 5.0,
|
|
240
|
+
"blurb": "In a city built around a bridge, an apprentice learns that every door remembers who opened it."
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"id": 25,
|
|
244
|
+
"title": "The Glass Library",
|
|
245
|
+
"author": "Yara Lindqvist",
|
|
246
|
+
"genre": "gardening",
|
|
247
|
+
"year": 1999,
|
|
248
|
+
"pages": 194,
|
|
249
|
+
"rating": 4.4,
|
|
250
|
+
"blurb": "Plain advice for a small library garden: soil, seasons and what to plant when nothing grows."
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": 26,
|
|
254
|
+
"title": "The Lantern Garden",
|
|
255
|
+
"author": "Ines Haddad",
|
|
256
|
+
"genre": "gardening",
|
|
257
|
+
"year": 2023,
|
|
258
|
+
"pages": 113,
|
|
259
|
+
"rating": 3.0,
|
|
260
|
+
"blurb": "Plain advice for a small garden garden: soil, seasons and what to plant when nothing grows."
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"id": 27,
|
|
264
|
+
"title": "The Restless Engine",
|
|
265
|
+
"author": "Ines Nakamura",
|
|
266
|
+
"genre": "cooking",
|
|
267
|
+
"year": 1991,
|
|
268
|
+
"pages": 630,
|
|
269
|
+
"rating": 3.2,
|
|
270
|
+
"blurb": "Recipes gathered around an engine: slow breakfasts, quick suppers and the bread that ties them together."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": 28,
|
|
274
|
+
"title": "The Winter Mountain",
|
|
275
|
+
"author": "Ines Tanaka",
|
|
276
|
+
"genre": "science",
|
|
277
|
+
"year": 2023,
|
|
278
|
+
"pages": 465,
|
|
279
|
+
"rating": 4.8,
|
|
280
|
+
"blurb": "A plain-spoken walk through how a mountain works, with small experiments a reader can try at home."
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": 29,
|
|
284
|
+
"title": "The Northern Kitchen",
|
|
285
|
+
"author": "Sami Nakamura",
|
|
286
|
+
"genre": "history",
|
|
287
|
+
"year": 2022,
|
|
288
|
+
"pages": 427,
|
|
289
|
+
"rating": 4.1,
|
|
290
|
+
"blurb": "How one kitchen changed a coast over two hundred years, told through the people who worked it."
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"id": 30,
|
|
294
|
+
"title": "The Second Kitchen",
|
|
295
|
+
"author": "Tomas Azevedo",
|
|
296
|
+
"genre": "history",
|
|
297
|
+
"year": 2004,
|
|
298
|
+
"pages": 294,
|
|
299
|
+
"rating": 3.8,
|
|
300
|
+
"blurb": "How one kitchen changed a coast over two hundred years, told through the people who worked it."
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": 31,
|
|
304
|
+
"title": "The Northern Atlas",
|
|
305
|
+
"author": "Mara Tanaka",
|
|
306
|
+
"genre": "mystery",
|
|
307
|
+
"year": 2020,
|
|
308
|
+
"pages": 355,
|
|
309
|
+
"rating": 3.0,
|
|
310
|
+
"blurb": "A keeper of atlas finds a letter that should not exist and follows it through a town that would rather forget."
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": 32,
|
|
314
|
+
"title": "The Second Engine",
|
|
315
|
+
"author": "Ines Quinn",
|
|
316
|
+
"genre": "gardening",
|
|
317
|
+
"year": 2013,
|
|
318
|
+
"pages": 172,
|
|
319
|
+
"rating": 3.1,
|
|
320
|
+
"blurb": "Plain advice for a small engine garden: soil, seasons and what to plant when nothing grows."
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"id": 33,
|
|
324
|
+
"title": "The Burning Engine",
|
|
325
|
+
"author": "Felix Silva",
|
|
326
|
+
"genre": "history",
|
|
327
|
+
"year": 1990,
|
|
328
|
+
"pages": 580,
|
|
329
|
+
"rating": 4.8,
|
|
330
|
+
"blurb": "How one engine changed a coast over two hundred years, told through the people who worked it."
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"id": 34,
|
|
334
|
+
"title": "The Folded Workshop",
|
|
335
|
+
"author": "Nadia Kowal",
|
|
336
|
+
"genre": "science",
|
|
337
|
+
"year": 2002,
|
|
338
|
+
"pages": 579,
|
|
339
|
+
"rating": 4.7,
|
|
340
|
+
"blurb": "A plain-spoken walk through how a workshop works, with small experiments a reader can try at home."
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": 35,
|
|
344
|
+
"title": "The Paper Kitchen",
|
|
345
|
+
"author": "Idris Kowal",
|
|
346
|
+
"genre": "fantasy",
|
|
347
|
+
"year": 2015,
|
|
348
|
+
"pages": 564,
|
|
349
|
+
"rating": 3.5,
|
|
350
|
+
"blurb": "In a city built around a kitchen, an apprentice learns that every door remembers who opened it."
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"id": 36,
|
|
354
|
+
"title": "The Silver Atlas",
|
|
355
|
+
"author": "Leena Haddad",
|
|
356
|
+
"genre": "cooking",
|
|
357
|
+
"year": 1991,
|
|
358
|
+
"pages": 244,
|
|
359
|
+
"rating": 4.0,
|
|
360
|
+
"blurb": "Recipes gathered around an atlas: slow breakfasts, quick suppers and the bread that ties them together."
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"id": 37,
|
|
364
|
+
"title": "The Glass Kitchen",
|
|
365
|
+
"author": "Hana Silva",
|
|
366
|
+
"genre": "cooking",
|
|
367
|
+
"year": 2020,
|
|
368
|
+
"pages": 448,
|
|
369
|
+
"rating": 2.9,
|
|
370
|
+
"blurb": "Recipes gathered around a kitchen: slow breakfasts, quick suppers and the bread that ties them together."
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"id": 38,
|
|
374
|
+
"title": "The Restless Archive",
|
|
375
|
+
"author": "Mara Kowal",
|
|
376
|
+
"genre": "mystery",
|
|
377
|
+
"year": 1996,
|
|
378
|
+
"pages": 629,
|
|
379
|
+
"rating": 4.4,
|
|
380
|
+
"blurb": "A keeper of archive finds a letter that should not exist and follows it through a town that would rather forget."
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"id": 39,
|
|
384
|
+
"title": "The Folded Lighthouse",
|
|
385
|
+
"author": "Mara Tanaka",
|
|
386
|
+
"genre": "history",
|
|
387
|
+
"year": 2003,
|
|
388
|
+
"pages": 389,
|
|
389
|
+
"rating": 3.8,
|
|
390
|
+
"blurb": "How one lighthouse changed a coast over two hundred years, told through the people who worked it."
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"id": 40,
|
|
394
|
+
"title": "The Copper Bridge",
|
|
395
|
+
"author": "Yara Nakamura",
|
|
396
|
+
"genre": "fantasy",
|
|
397
|
+
"year": 2016,
|
|
398
|
+
"pages": 224,
|
|
399
|
+
"rating": 2.7,
|
|
400
|
+
"blurb": "In a city built around a bridge, an apprentice learns that every door remembers who opened it."
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"id": 41,
|
|
404
|
+
"title": "The Lantern Engine",
|
|
405
|
+
"author": "Rafi Silva",
|
|
406
|
+
"genre": "gardening",
|
|
407
|
+
"year": 2023,
|
|
408
|
+
"pages": 520,
|
|
409
|
+
"rating": 4.6,
|
|
410
|
+
"blurb": "Plain advice for a small engine garden: soil, seasons and what to plant when nothing grows."
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"id": 42,
|
|
414
|
+
"title": "The Open Market",
|
|
415
|
+
"author": "Sami Haddad",
|
|
416
|
+
"genre": "cooking",
|
|
417
|
+
"year": 2023,
|
|
418
|
+
"pages": 612,
|
|
419
|
+
"rating": 2.5,
|
|
420
|
+
"blurb": "Recipes gathered around a market: slow breakfasts, quick suppers and the bread that ties them together."
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"id": 43,
|
|
424
|
+
"title": "The Hidden Bridge",
|
|
425
|
+
"author": "Leena Haddad",
|
|
426
|
+
"genre": "mystery",
|
|
427
|
+
"year": 1999,
|
|
428
|
+
"pages": 574,
|
|
429
|
+
"rating": 4.0,
|
|
430
|
+
"blurb": "A keeper of bridge finds a letter that should not exist and follows it through a town that would rather forget."
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"id": 44,
|
|
434
|
+
"title": "The Quiet Engine",
|
|
435
|
+
"author": "Idris Nakamura",
|
|
436
|
+
"genre": "gardening",
|
|
437
|
+
"year": 1993,
|
|
438
|
+
"pages": 344,
|
|
439
|
+
"rating": 3.0,
|
|
440
|
+
"blurb": "Plain advice for a small engine garden: soil, seasons and what to plant when nothing grows."
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"id": 45,
|
|
444
|
+
"title": "The Quiet Kitchen",
|
|
445
|
+
"author": "Sami Brandt",
|
|
446
|
+
"genre": "science",
|
|
447
|
+
"year": 2025,
|
|
448
|
+
"pages": 118,
|
|
449
|
+
"rating": 4.4,
|
|
450
|
+
"blurb": "A plain-spoken walk through how a kitchen works, with small experiments a reader can try at home."
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"id": 46,
|
|
454
|
+
"title": "The Open Orchard",
|
|
455
|
+
"author": "Osric Silva",
|
|
456
|
+
"genre": "gardening",
|
|
457
|
+
"year": 2022,
|
|
458
|
+
"pages": 614,
|
|
459
|
+
"rating": 3.0,
|
|
460
|
+
"blurb": "Plain advice for a small orchard garden: soil, seasons and what to plant when nothing grows."
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"id": 47,
|
|
464
|
+
"title": "The Patient Library",
|
|
465
|
+
"author": "Sami Moreau",
|
|
466
|
+
"genre": "gardening",
|
|
467
|
+
"year": 2023,
|
|
468
|
+
"pages": 355,
|
|
469
|
+
"rating": 4.8,
|
|
470
|
+
"blurb": "Plain advice for a small library garden: soil, seasons and what to plant when nothing grows."
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"id": 48,
|
|
474
|
+
"title": "The Open Lighthouse",
|
|
475
|
+
"author": "Leena Azevedo",
|
|
476
|
+
"genre": "gardening",
|
|
477
|
+
"year": 1997,
|
|
478
|
+
"pages": 491,
|
|
479
|
+
"rating": 3.6,
|
|
480
|
+
"blurb": "Plain advice for a small lighthouse garden: soil, seasons and what to plant when nothing grows."
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"id": 49,
|
|
484
|
+
"title": "The Silver Workshop",
|
|
485
|
+
"author": "Nadia Lindqvist",
|
|
486
|
+
"genre": "history",
|
|
487
|
+
"year": 2003,
|
|
488
|
+
"pages": 400,
|
|
489
|
+
"rating": 4.5,
|
|
490
|
+
"blurb": "How one workshop changed a coast over two hundred years, told through the people who worked it."
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"id": 50,
|
|
494
|
+
"title": "The Open Kitchen",
|
|
495
|
+
"author": "Ines Farouk",
|
|
496
|
+
"genre": "cooking",
|
|
497
|
+
"year": 2013,
|
|
498
|
+
"pages": 236,
|
|
499
|
+
"rating": 3.1,
|
|
500
|
+
"blurb": "Recipes gathered around a kitchen: slow breakfasts, quick suppers and the bread that ties them together."
|
|
501
|
+
}
|
|
502
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webship-js/meilisearch-steps",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Cucumber step definitions for the Meilisearch search engine, a plugin for webship-js (Playwright and Cucumber): steps that make indexes from JSON documents and wait for their tasks, set their filterable, sortable and searchable attributes and synonyms, search through the REST API (hits, filters, sort, facets, highlighting), search in the engine's own dashboard, make keys with limited rights and read their refusals, and check the server's health and version, every key kept out of messages and failures.",
|
|
5
|
+
"main": "tests/step-definitions/meilisearch-support.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"tests/step-definitions/",
|
|
8
|
+
"tests/features/",
|
|
9
|
+
"demo/",
|
|
10
|
+
"assets/",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "cucumber-js --config cucumber.js",
|
|
16
|
+
"test:dry": "cucumber-js --config cucumber.js --dry-run",
|
|
17
|
+
"test:examples": "node tests/check-examples.js",
|
|
18
|
+
"test:paths": "node tests/check-paths.js",
|
|
19
|
+
"test:must-fail": "node tests/check-must-fail.js",
|
|
20
|
+
"test:chromium": "BROWSER=chromium cucumber-js --config cucumber.js",
|
|
21
|
+
"test:firefox": "BROWSER=firefox cucumber-js --config cucumber.js",
|
|
22
|
+
"test:webkit": "BROWSER=webkit cucumber-js --config cucumber.js",
|
|
23
|
+
"test:headed": "HEADLESS=false cucumber-js --config cucumber.js",
|
|
24
|
+
"generate-reports": "generate-reports",
|
|
25
|
+
"test:fast": "SLOW_MO=0 cucumber-js --config cucumber.js",
|
|
26
|
+
"demo:build": "bash .github/scripts/build-demo.sh",
|
|
27
|
+
"demo:remove": "bash .github/scripts/remove-demo.sh"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"webship-js",
|
|
31
|
+
"meilisearch",
|
|
32
|
+
"search",
|
|
33
|
+
"search-engine",
|
|
34
|
+
"full-text-search",
|
|
35
|
+
"typo-tolerance",
|
|
36
|
+
"api-keys",
|
|
37
|
+
"cucumber",
|
|
38
|
+
"cucumber-js",
|
|
39
|
+
"playwright",
|
|
40
|
+
"bdd",
|
|
41
|
+
"testing",
|
|
42
|
+
"e2e",
|
|
43
|
+
"gherkin"
|
|
44
|
+
],
|
|
45
|
+
"author": "Webship.co",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/webship/meilisearch-steps.git"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/webship/meilisearch-steps/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/webship/meilisearch-steps#readme",
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">= 24.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"webship-js": "^2.0.20"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"tsx": "^4.23.0",
|
|
66
|
+
"webship-js": "^2.0.20"
|
|
67
|
+
},
|
|
68
|
+
"overrides": {
|
|
69
|
+
"@cucumber/cucumber": "^12"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# The search engine's own dashboard: opened with the master key, an index chosen, searched with a typo and for nothing,
|
|
2
|
+
# and no request sent to another site.
|
|
3
|
+
Feature: The search engine's dashboard
|
|
4
|
+
A person searches an index in the search engine's own dashboard.
|
|
5
|
+
|
|
6
|
+
Background:
|
|
7
|
+
Given the search engine has the index "webship-books" with the documents of "demo/books.json"
|
|
8
|
+
|
|
9
|
+
Scenario: Searched in the dashboard
|
|
10
|
+
Given I am on the search engine's dashboard with the master key
|
|
11
|
+
When I choose the index "webship-books" in the search engine's dashboard
|
|
12
|
+
And I search the search engine's dashboard for "lighthous"
|
|
13
|
+
Then the search engine's dashboard should show the hit "The Winter Lighthouse"
|
|
14
|
+
When I search the search engine's dashboard for "zzzqqxx"
|
|
15
|
+
Then the search engine's dashboard should show no results
|
|
16
|
+
And the search engine's dashboard should have sent no request outside its address
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Indexes and searches through the API: our own 50 books (demo/books.json), indexed, searched with a filter, a sort and
|
|
2
|
+
# facets, highlighted, and deleted. What a scenario indexes, it deletes.
|
|
3
|
+
Feature: Indexes and searches
|
|
4
|
+
Documents are indexed, searched with typos, filters, sorts and facets, and the index is deleted.
|
|
5
|
+
|
|
6
|
+
Background:
|
|
7
|
+
Given the search engine has the index "webship-books" with the documents of "demo/books.json"
|
|
8
|
+
|
|
9
|
+
Scenario: Fifty books, found with a typo and highlighted
|
|
10
|
+
Then the search engine should have the index "webship-books" with 50 documents
|
|
11
|
+
When I search the search engine's index "webship-books" for "lighthous"
|
|
12
|
+
Then the search engine should find "The Winter Lighthouse" in its "title"
|
|
13
|
+
When I search the search engine's index "webship-books" for "lighthouse"
|
|
14
|
+
Then the search engine should find 4 documents
|
|
15
|
+
And the search engine should highlight "Lighthouse" in its "title"
|
|
16
|
+
When I search the search engine's index "webship-books" for "zzzqqxx"
|
|
17
|
+
Then the search engine should find nothing
|
|
18
|
+
|
|
19
|
+
Scenario: Filtered, sorted and counted by facets
|
|
20
|
+
Given the search engine's index "webship-books" has the filterable attributes "genre, year"
|
|
21
|
+
And the search engine's index "webship-books" has the sortable attributes "year, rating"
|
|
22
|
+
When I search the search engine's index "webship-books" for "lighthouse" filtered by "genre = mystery"
|
|
23
|
+
Then the search engine should find 1 document
|
|
24
|
+
And the search engine should find "The Winter Lighthouse" in its "title"
|
|
25
|
+
When I search the search engine's index "webship-books" for "" sorted by "year:desc"
|
|
26
|
+
Then the search engine should find 50 documents
|
|
27
|
+
And the search engine's first hit should have "2025" in its "year"
|
|
28
|
+
When I search the search engine's index "webship-books" for "" with the facets "genre"
|
|
29
|
+
Then the search engine's facet "genre" should count 6 for "mystery"
|
|
30
|
+
|
|
31
|
+
Scenario: Synonyms
|
|
32
|
+
Given the search engine's index "webship-books" has the synonyms "beacon" for "lighthouse"
|
|
33
|
+
When I search the search engine's index "webship-books" for "beacon"
|
|
34
|
+
Then the search engine should find "The Winter Lighthouse" in its "title"
|
|
35
|
+
|
|
36
|
+
Scenario: An index deleted
|
|
37
|
+
When I delete the index "webship-books" from the search engine
|
|
38
|
+
Then the search engine should not have the index "webship-books"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Keys: refused without one, a key limited to searching one index, refused outside its rights; the server's health and
|
|
2
|
+
# version. Every key a scenario makes is deleted at its end.
|
|
3
|
+
Feature: Keys and the server
|
|
4
|
+
Every request needs a key; a key with limited rights is refused outside them.
|
|
5
|
+
|
|
6
|
+
Scenario: No key, no data
|
|
7
|
+
When I send the search engine "GET /indexes" without a key
|
|
8
|
+
Then the search engine should answer 401 "missing_authorization_header"
|
|
9
|
+
And the search engine should be available
|
|
10
|
+
|
|
11
|
+
Scenario: A key that may only search one index
|
|
12
|
+
Given the search engine has the index "webship-books" with the documents of "demo/books.json"
|
|
13
|
+
And the search engine has a key "reader" that may only "search" on "webship-books"
|
|
14
|
+
When I send the search engine "POST /indexes/webship-books/search" with the key "reader" and the body "{\"q\": \"garden\"}"
|
|
15
|
+
Then the search engine should answer 200
|
|
16
|
+
When I send the search engine "DELETE /indexes/webship-books" with the key "reader"
|
|
17
|
+
Then the search engine should answer 403 "invalid_api_key"
|
|
18
|
+
When I send the search engine "GET /stats" with the master key
|
|
19
|
+
Then the search engine should answer 200
|
|
20
|
+
|
|
21
|
+
@line-1-59
|
|
22
|
+
Scenario: The line's version
|
|
23
|
+
Then the search engine's version should be "1.59"
|
|
24
|
+
|
|
25
|
+
@line-1-55
|
|
26
|
+
Scenario: The line's version
|
|
27
|
+
Then the search engine's version should be "1.55"
|