File size: 250,647 Bytes
32dba06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
import { test, expect } from '@playwright/test';

test.describe('Functional - homepage', () => {
  test('homepage: title matches GT', async ({ page }) => {
    await page.goto('/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('the ai');
  });
  test('homepage: h1 "Engage every channel. Win over"', async ({ page }) => {
    await page.goto('/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Engage every channel. Win over every customer.' || t.startsWith('Engage every channel. Win over every customer.'))).toBeTruthy();
  });
  test('homepage: h2 "Built for commerce at global e"', async ({ page }) => {
    await page.goto('/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Built for commerce at global enterprise scale.' || t.startsWith('Built for commerce at global enterprise scale.'))).toBeTruthy();
  });
  test('homepage: nav link "Customers"', async ({ page }) => {
    await page.goto('/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('homepage: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('homepage: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => {
    await page.goto('/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, climbing past the \$100B' || t.startsWith('Kartova posts robust Q1 2026 growth, climbing past the \$100B')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - b2b_digital_transformation_maturity', () => {
  test('b2b_digital_transformation_maturity: title matches GT', async ({ page }) => {
    await page.goto('/b2b-digital-transformation-maturity/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('a field guide to b2b digital transformat');
  });
  test('b2b_digital_transformation_maturity: h1 "A practical guide to B2B digit"', async ({ page }) => {
    await page.goto('/b2b-digital-transformation-maturity/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A practical guide to B2B digital transformation and reaching digital maturity.' || t.startsWith('A practical guide to B2B digital transformation and reaching digital maturity.'))).toBeTruthy();
  });
  test('b2b_digital_transformation_maturity: h2 "Defining B2B digital transform"', async ({ page }) => {
    await page.goto('/b2b-digital-transformation-maturity/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Defining B2B digital transformation' || t.startsWith('Defining B2B digital transformation'))).toBeTruthy();
  });
  test('b2b_digital_transformation_maturity: h2 "How is digital maturity define"', async ({ page }) => {
    await page.goto('/b2b-digital-transformation-maturity/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How is digital maturity defined in B2B?' || t.startsWith('How is digital maturity defined in B2B?'))).toBeTruthy();
  });
  test('b2b_digital_transformation_maturity: h2 "Digital maturity investments a"', async ({ page }) => {
    await page.goto('/b2b-digital-transformation-maturity/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Digital maturity investments are climbing across the B2B sector*' || t.startsWith('Digital maturity investments are climbing across the B2B sector*'))).toBeTruthy();
  });
  test('b2b_digital_transformation_maturity: nav link "Customers"', async ({ page }) => {
    await page.goto('/b2b-digital-transformation-maturity/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('b2b_digital_transformation_maturity: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/b2b-digital-transformation-maturity/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('b2b_digital_transformation_maturity: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => {
    await page.goto('/b2b-digital-transformation-maturity/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts strong Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('b2b_digital_transformation_maturity: nav link "Seeing through AI: How compute"', async ({ page }) => {
    await page.goto('/b2b-digital-transformation-maturity/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing through AI: How computer vision is reshaping modern r' || t.startsWith('Seeing through AI: How computer vision is reshaping modern r')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - bfcm_commerce', () => {
  test('bfcm_commerce: title matches GT', async ({ page }) => {
    await page.goto('/bfcm-commerce/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('peak season and holiday sales commerce');
  });
  test('bfcm_commerce: h1 "Calm, not chaos: peak season h"', async ({ page }) => {
    await page.goto('/bfcm-commerce/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Calm, not chaos: peak season handled without the panic.' || t.startsWith('Calm, not chaos: peak season handled without the panic.'))).toBeTruthy();
  });
  test('bfcm_commerce: h2 "Will your eCommerce stack hold"', async ({ page }) => {
    await page.goto('/bfcm-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Will your eCommerce stack hold up when peak hits?' || t.startsWith('Will your eCommerce stack hold up when peak hits?'))).toBeTruthy();
  });
  test('bfcm_commerce: h2 "Made for scale. Engineered for"', async ({ page }) => {
    await page.goto('/bfcm-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Made for scale. Engineered for peace of mind.' || t.startsWith('Made for scale. Engineered for peace of mind.'))).toBeTruthy();
  });
  test('bfcm_commerce: h2 "When the stakes are highest, t"', async ({ page }) => {
    await page.goto('/bfcm-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'When the stakes are highest, these brands rely on Kartova.' || t.startsWith('When the stakes are highest, these brands rely on Kartova.'))).toBeTruthy();
  });
  test('bfcm_commerce: nav link "Customers"', async ({ page }) => {
    await page.goto('/bfcm-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('bfcm_commerce: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/bfcm-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('bfcm_commerce: nav link "Kartova posts strong Q1 2026 m"', async ({ page }) => {
    await page.goto('/bfcm-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts strong Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('bfcm_commerce: nav link "Seeing through AI: how machine"', async ({ page }) => {
    await page.goto('/bfcm-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing through AI: how machine vision is reshaping the retai' || t.startsWith('Seeing through AI: how machine vision is reshaping the retai')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog', () => {
  test('blog: title matches GT', async ({ page }) => {
    await page.goto('/blog/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('the kartova blog');
  });
  test('blog: h1 "The Kartova Blog"', async ({ page }) => {
    await page.goto('/blog/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The Kartova Blog' || t.startsWith('The Kartova Blog'))).toBeTruthy();
  });
  test('blog: h2 "Featured Posts"', async ({ page }) => {
    await page.goto('/blog/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Featured Posts' || t.startsWith('Featured Posts'))).toBeTruthy();
  });
  test('blog: nav link "Customers"', async ({ page }) => {
    await page.goto('/blog/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('blog: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/blog/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('blog: nav link "Kartova posts a standout Q1 20"', async ({ page }) => {
    await page.goto('/blog/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts a standout Q1 2026, pushing past the \$100B GMV' || t.startsWith('Kartova posts a standout Q1 2026, pushing past the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('blog: nav link "Seen by machines: how computer"', async ({ page }) => {
    await page.goto('/blog/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen by machines: how computer vision is reshaping the store' || t.startsWith('Seen by machines: how computer vision is reshaping the store')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - careers', () => {
  test('careers: title matches GT', async ({ page }) => {
    await page.goto('/careers/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova, inc. careers');
  });
  test('careers: h1 "Our purpose, our vision, and o"', async ({ page }) => {
    await page.goto('/careers/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Our purpose, our vision, and our mission at Kartova' || t.startsWith('Our purpose, our vision, and our mission at Kartova'))).toBeTruthy();
  });
  test('careers: h2 "Our Guiding Values"', async ({ page }) => {
    await page.goto('/careers/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Our Guiding Values' || t.startsWith('Our Guiding Values'))).toBeTruthy();
  });
  test('careers: h2 "Deliver Impact"', async ({ page }) => {
    await page.goto('/careers/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Deliver Impact' || t.startsWith('Deliver Impact'))).toBeTruthy();
  });
  test('careers: h2 "Nurture Belonging"', async ({ page }) => {
    await page.goto('/careers/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Nurture Belonging' || t.startsWith('Nurture Belonging'))).toBeTruthy();
  });
  test('careers: nav link "Customers"', async ({ page }) => {
    await page.goto('/careers/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('careers: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/careers/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('careers: nav link "Kartova posts record Q1 2026 r"', async ({ page }) => {
    await page.goto('/careers/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 results, pushing its annual GMV' || t.startsWith('Kartova posts record Q1 2026 results, pushing its annual GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('careers: nav link "Retail through a new lens: how"', async ({ page }) => {
    await page.goto('/careers/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Retail through a new lens: how computer vision is transformi' || t.startsWith('Retail through a new lens: how computer vision is transformi')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - commerce_platform', () => {
  test('commerce_platform: title matches GT', async ({ page }) => {
    await page.goto('/commerce-platform/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova commerce platform for enterprise');
  });
  test('commerce_platform: h1 "Unite every channel. Operate s"', async ({ page }) => {
    await page.goto('/commerce-platform/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Unite every channel. Operate smarter. Scale freely.' || t.startsWith('Unite every channel. Operate smarter. Scale freely.'))).toBeTruthy();
  });
  test('commerce_platform: h2 "Chosen by leading global enter"', async ({ page }) => {
    await page.goto('/commerce-platform/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Chosen by leading global enterprises' || t.startsWith('Chosen by leading global enterprises'))).toBeTruthy();
  });
  test('commerce_platform: h2 "The commerce engine trusted by"', async ({ page }) => {
    await page.goto('/commerce-platform/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The commerce engine trusted by the world\'s most ambitious enterprise teams' || t.startsWith('The commerce engine trusted by the world\'s most ambitious enterprise teams'))).toBeTruthy();
  });
  test('commerce_platform: h2 "Named a Leader in Composable C"', async ({ page }) => {
    await page.goto('/commerce-platform/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Named a Leader in Composable Commerce by Vantage Research®' || t.startsWith('Named a Leader in Composable Commerce by Vantage Research®'))).toBeTruthy();
  });
  test('commerce_platform: nav link "Customers"', async ({ page }) => {
    await page.goto('/commerce-platform/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('commerce_platform: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/commerce-platform/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('commerce_platform: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/commerce-platform/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, pushing well past the ' || t.startsWith('Kartova posts robust Q1 2026 results, pushing well past the ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('commerce_platform: nav link "Seeing retail anew: how comput"', async ({ page }) => {
    await page.goto('/commerce-platform/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing retail anew: how computer vision is reshaping the sto' || t.startsWith('Seeing retail anew: how computer vision is reshaping the sto')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - compilations', () => {
  test('compilations: title matches GT', async ({ page }) => {
    await page.goto('/compilations/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('compilations');
  });
  test('compilations: h1 "Composable commerce, reimagine"', async ({ page }) => {
    await page.goto('/compilations/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Composable commerce, reimagined with Kartova' || t.startsWith('Composable commerce, reimagined with Kartova'))).toBeTruthy();
  });
  test('compilations: h2 "AI-native foundations for the "', async ({ page }) => {
    await page.goto('/compilations/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'AI-native foundations for the agentic commerce era' || t.startsWith('AI-native foundations for the agentic commerce era'))).toBeTruthy();
  });
  test('compilations: h2 "Checkout built to lead every i"', async ({ page }) => {
    await page.goto('/compilations/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Checkout built to lead every innovation' || t.startsWith('Checkout built to lead every innovation'))).toBeTruthy();
  });
  test('compilations: h2 "Enterprise agility, ready to s"', async ({ page }) => {
    await page.goto('/compilations/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Enterprise agility, ready to scale' || t.startsWith('Enterprise agility, ready to scale'))).toBeTruthy();
  });
  test('compilations: nav link "Customers"', async ({ page }) => {
    await page.goto('/compilations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('compilations: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/compilations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('compilations: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => {
    await page.goto('/compilations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth as it clears the \$100B G' || t.startsWith('Kartova posts record Q1 2026 growth as it clears the \$100B G')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('compilations: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/compilations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping the modern' || t.startsWith('Seen through AI: how computer vision is reshaping the modern')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - compliance', () => {
  test('compliance: title matches GT', async ({ page }) => {
    await page.goto('/compliance/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('compliance and trust at kartova');
  });
  test('compliance: h1 "Compliance built in at enterpr"', async ({ page }) => {
    await page.goto('/compliance/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Compliance built in at enterprise scale' || t.startsWith('Compliance built in at enterprise scale'))).toBeTruthy();
  });
  test('compliance: h2 "Modern Slavery Statement"', async ({ page }) => {
    await page.goto('/compliance/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Modern Slavery Statement' || t.startsWith('Modern Slavery Statement'))).toBeTruthy();
  });
  test('compliance: h2 "Incident Reporting System"', async ({ page }) => {
    await page.goto('/compliance/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Incident Reporting System' || t.startsWith('Incident Reporting System'))).toBeTruthy();
  });
  test('compliance: h2 "Frequently asked questions"', async ({ page }) => {
    await page.goto('/compliance/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Frequently asked questions' || t.startsWith('Frequently asked questions'))).toBeTruthy();
  });
  test('compliance: nav link "Customers"', async ({ page }) => {
    await page.goto('/compliance/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('compliance: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/compliance/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('compliance: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => {
    await page.goto('/compliance/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('compliance: nav link "Seeing with AI: how computer v"', async ({ page }) => {
    await page.goto('/compliance/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing with AI: how computer vision is transforming the reta' || t.startsWith('Seeing with AI: how computer vision is transforming the reta')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - composable_commerce', () => {
  test('composable_commerce: title matches GT', async ({ page }) => {
    await page.goto('/composable-commerce/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('composable commerce');
  });
  test('composable_commerce: h1 "Composable commerce. Adapt to "', async ({ page }) => {
    await page.goto('/composable-commerce/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Composable commerce. Adapt to what\'s next.' || t.startsWith('Composable commerce. Adapt to what\'s next.'))).toBeTruthy();
  });
  test('composable_commerce: h2 "Is outdated tech holding back "', async ({ page }) => {
    await page.goto('/composable-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Is outdated tech holding back your growth?' || t.startsWith('Is outdated tech holding back your growth?'))).toBeTruthy();
  });
  test('composable_commerce: h2 "What is composable commerce?"', async ({ page }) => {
    await page.goto('/composable-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'What is composable commerce?' || t.startsWith('What is composable commerce?'))).toBeTruthy();
  });
  test('composable_commerce: h2 "How composable commerce benefi"', async ({ page }) => {
    await page.goto('/composable-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How composable commerce benefits modern enterprises.' || t.startsWith('How composable commerce benefits modern enterprises.'))).toBeTruthy();
  });
  test('composable_commerce: nav link "Customers"', async ({ page }) => {
    await page.goto('/composable-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('composable_commerce: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/composable-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('composable_commerce: nav link "Kartova reports strong Q1 2026"', async ({ page }) => {
    await page.goto('/composable-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('composable_commerce: nav link "How computer vision and AI are"', async ({ page }) => {
    await page.goto('/composable-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How computer vision and AI are quietly reshaping modern reta' || t.startsWith('How computer vision and AI are quietly reshaping modern reta')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - customer_stories', () => {
  test('customer_stories: title matches GT', async ({ page }) => {
    await page.goto('/customer-stories/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova customers');
  });
  test('customer_stories: h1 "Backed by industry leaders. Bu"', async ({ page }) => {
    await page.goto('/customer-stories/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Backed by industry leaders. Built to accelerate growth.' || t.startsWith('Backed by industry leaders. Built to accelerate growth.'))).toBeTruthy();
  });
  test('customer_stories: h2 "Real Brands. Real Impact. Kart"', async ({ page }) => {
    await page.goto('/customer-stories/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Real Brands. Real Impact. Kartova in Action Today.' || t.startsWith('Real Brands. Real Impact. Kartova in Action Today.'))).toBeTruthy();
  });
  test('customer_stories: nav link "Customers"', async ({ page }) => {
    await page.goto('/customer-stories/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('customer_stories: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/customer-stories/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('customer_stories: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => {
    await page.goto('/customer-stories/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts robust Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('customer_stories: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/customer-stories/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping the retail' || t.startsWith('Seen through AI: how computer vision is reshaping the retail')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - free_trial', () => {
  test('free_trial: title matches GT', async ({ page }) => {
    await page.goto('/free-trial/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('begin your 60');
  });
  test('free_trial: h1 "Start building with Kartova, c"', async ({ page }) => {
    await page.goto('/free-trial/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start building with Kartova, completely free' || t.startsWith('Start building with Kartova, completely free'))).toBeTruthy();
  });
  test('free_trial: h2 "Driving enterprise commerce at"', async ({ page }) => {
    await page.goto('/free-trial/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Driving enterprise commerce at a worldwide scale.' || t.startsWith('Driving enterprise commerce at a worldwide scale.'))).toBeTruthy();
  });
  test('free_trial: h2 "FAQs"', async ({ page }) => {
    await page.goto('/free-trial/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'FAQs' || t.startsWith('FAQs'))).toBeTruthy();
  });
  test('free_trial: nav link "Customers"', async ({ page }) => {
    await page.goto('/free-trial/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('free_trial: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/free-trial/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('free_trial: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => {
    await page.goto('/free-trial/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth, blowing past the \$100B ' || t.startsWith('Kartova posts record Q1 2026 growth, blowing past the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('free_trial: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/free-trial/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping the modern' || t.startsWith('Seen through AI: how computer vision is reshaping the modern')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - migration_replatforming', () => {
  test('migration_replatforming: title matches GT', async ({ page }) => {
    await page.goto('/migration-replatforming/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('why enterprises migrate to kartova');
  });
  test('migration_replatforming: h1 "Your final replatform. Truly."', async ({ page }) => {
    await page.goto('/migration-replatforming/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Your final replatform. Truly.' || t.startsWith('Your final replatform. Truly.'))).toBeTruthy();
  });
  test('migration_replatforming: h2 "Trapped by a rigid monolith? L"', async ({ page }) => {
    await page.goto('/migration-replatforming/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Trapped by a rigid monolith? Let\'s fix that.' || t.startsWith('Trapped by a rigid monolith? Let\'s fix that.'))).toBeTruthy();
  });
  test('migration_replatforming: h2 "How Kartova sets itself apart "', async ({ page }) => {
    await page.goto('/migration-replatforming/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How Kartova sets itself apart from legacy platforms.' || t.startsWith('How Kartova sets itself apart from legacy platforms.'))).toBeTruthy();
  });
  test('migration_replatforming: h2 "From homegrown systems to comp"', async ({ page }) => {
    await page.goto('/migration-replatforming/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'From homegrown systems to composable commerce' || t.startsWith('From homegrown systems to composable commerce'))).toBeTruthy();
  });
  test('migration_replatforming: nav link "Customers"', async ({ page }) => {
    await page.goto('/migration-replatforming/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('migration_replatforming: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/migration-replatforming/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('migration_replatforming: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/migration-replatforming/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, pushing past the \$100B' || t.startsWith('Kartova posts robust Q1 2026 results, pushing past the \$100B')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('migration_replatforming: nav link "Seen through the lens of AI: h"', async ({ page }) => {
    await page.goto('/migration-replatforming/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through the lens of AI: how computer vision is reinvent' || t.startsWith('Seen through the lens of AI: how computer vision is reinvent')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - newsletter', () => {
  test('newsletter: title matches GT', async ({ page }) => {
    await page.goto('/newsletter/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('sign up for the kartova newsletter');
  });
  test('newsletter: h1 "From release notes to strategi"', async ({ page }) => {
    await page.goto('/newsletter/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'From release notes to strategic viewpoints, get the newest thinking in commerce sent straight to you' || t.startsWith('From release notes to strategic viewpoints, get the newest thinking in commerce sent straight to you'))).toBeTruthy();
  });
  test('newsletter: h2 "Sign up for monthly commerce u"', async ({ page }) => {
    await page.goto('/newsletter/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Sign up for monthly commerce updates' || t.startsWith('Sign up for monthly commerce updates'))).toBeTruthy();
  });
  test('newsletter: nav link "Customers"', async ({ page }) => {
    await page.goto('/newsletter/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('newsletter: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/newsletter/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('newsletter: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => {
    await page.goto('/newsletter/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, pushing past the \$100' || t.startsWith('Kartova posts record Q1 2026 momentum, pushing past the \$100')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('newsletter: nav link "Seeing with AI: how machine vi"', async ({ page }) => {
    await page.goto('/newsletter/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing with AI: how machine vision is reshaping the modern r' || t.startsWith('Seeing with AI: how machine vision is reshaping the modern r')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - offices', () => {
  test('offices: title matches GT', async ({ page }) => {
    await page.goto('/offices/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova global offices around the world');
  });
  test('offices: h1 "Our Offices"', async ({ page }) => {
    await page.goto('/offices/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Our Offices' || t.startsWith('Our Offices'))).toBeTruthy();
  });
  test('offices: h2 "Americas"', async ({ page }) => {
    await page.goto('/offices/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Americas' || t.startsWith('Americas'))).toBeTruthy();
  });
  test('offices: h2 "EMEA"', async ({ page }) => {
    await page.goto('/offices/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'EMEA' || t.startsWith('EMEA'))).toBeTruthy();
  });
  test('offices: h2 "APAC"', async ({ page }) => {
    await page.goto('/offices/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'APAC' || t.startsWith('APAC'))).toBeTruthy();
  });
  test('offices: nav link "Customers"', async ({ page }) => {
    await page.goto('/offices/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('offices: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/offices/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('offices: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/offices/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, breaking past the \$100' || t.startsWith('Kartova posts robust Q1 2026 results, breaking past the \$100')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('offices: nav link "Seeing retail anew: how machin"', async ({ page }) => {
    await page.goto('/offices/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing retail anew: how machine vision is transforming the s' || t.startsWith('Seeing retail anew: how machine vision is transforming the s')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - omnichannel', () => {
  test('omnichannel: title matches GT', async ({ page }) => {
    await page.goto('/omnichannel/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('connected omnichannel journeys built on ');
  });
  test('omnichannel: h1 "Connected omnichannel journeys"', async ({ page }) => {
    await page.goto('/omnichannel/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Connected omnichannel journeys built on composable commerce' || t.startsWith('Connected omnichannel journeys built on composable commerce'))).toBeTruthy();
  });
  test('omnichannel: h2 "Why omnichannel experiences de"', async ({ page }) => {
    await page.goto('/omnichannel/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Why omnichannel experiences deliver undeniable value' || t.startsWith('Why omnichannel experiences deliver undeniable value'))).toBeTruthy();
  });
  test('omnichannel: h2 "The Omnichannel Playbook"', async ({ page }) => {
    await page.goto('/omnichannel/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The Omnichannel Playbook' || t.startsWith('The Omnichannel Playbook'))).toBeTruthy();
  });
  test('omnichannel: h2 "How omnichannel commerce power"', async ({ page }) => {
    await page.goto('/omnichannel/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How omnichannel commerce powers industry leaders today' || t.startsWith('How omnichannel commerce powers industry leaders today'))).toBeTruthy();
  });
  test('omnichannel: nav link "Customers"', async ({ page }) => {
    await page.goto('/omnichannel/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('omnichannel: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/omnichannel/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('omnichannel: nav link "Kartova posts record Q1 2026 r"', async ({ page }) => {
    await page.goto('/omnichannel/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts record Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('omnichannel: nav link "Seeing retail differently: how"', async ({ page }) => {
    await page.goto('/omnichannel/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing retail differently: how computer vision is transformi' || t.startsWith('Seeing retail differently: how computer vision is transformi')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - partners', () => {
  test('partners: title matches GT', async ({ page }) => {
    await page.goto('/partners/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('find your kartova solution partner');
  });
  test('partners: h1 "Find a Kartova Partner"', async ({ page }) => {
    await page.goto('/partners/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Find a Kartova Partner' || t.startsWith('Find a Kartova Partner'))).toBeTruthy();
  });
  test('partners: h2 "Why build with Kartova Partner"', async ({ page }) => {
    await page.goto('/partners/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Why build with Kartova Partners?' || t.startsWith('Why build with Kartova Partners?'))).toBeTruthy();
  });
  test('partners: h2 "Which kind of partner are you "', async ({ page }) => {
    await page.goto('/partners/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Which kind of partner are you searching for?' || t.startsWith('Which kind of partner are you searching for?'))).toBeTruthy();
  });
  test('partners: h2 "Keen to become a Kartova partn"', async ({ page }) => {
    await page.goto('/partners/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Keen to become a Kartova partner today?' || t.startsWith('Keen to become a Kartova partner today?'))).toBeTruthy();
  });
  test('partners: nav link "Customers"', async ({ page }) => {
    await page.goto('/partners/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('partners: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/partners/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('partners: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => {
    await page.goto('/partners/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('partners: nav link "Beyond human sight: how machin"', async ({ page }) => {
    await page.goto('/partners/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Beyond human sight: how machine vision is transforming moder' || t.startsWith('Beyond human sight: how machine vision is transforming moder')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - press_releases', () => {
  test('press_releases: title matches GT', async ({ page }) => {
    await page.goto('/press-releases/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova');
  });
  test('press_releases: h1 "Press Releases"', async ({ page }) => {
    await page.goto('/press-releases/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Press Releases' || t.startsWith('Press Releases'))).toBeTruthy();
  });
  test('press_releases: h2 "Media contacts"', async ({ page }) => {
    await page.goto('/press-releases/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Media contacts' || t.startsWith('Media contacts'))).toBeTruthy();
  });
  test('press_releases: h2 "Commerce insights, delivered s"', async ({ page }) => {
    await page.goto('/press-releases/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Commerce insights, delivered straight to your inbox.' || t.startsWith('Commerce insights, delivered straight to your inbox.'))).toBeTruthy();
  });
  test('press_releases: h2 "Sign up now!"', async ({ page }) => {
    await page.goto('/press-releases/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Sign up now!' || t.startsWith('Sign up now!'))).toBeTruthy();
  });
  test('press_releases: nav link "Customers"', async ({ page }) => {
    await page.goto('/press-releases/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('press_releases: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/press-releases/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('press_releases: nav link "Kartova posts robust Q1 2026 m"', async ({ page }) => {
    await page.goto('/press-releases/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts robust Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('press_releases: nav link "Seeing retail anew: how AI-dri"', async ({ page }) => {
    await page.goto('/press-releases/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing retail anew: how AI-driven computer vision is transfo' || t.startsWith('Seeing retail anew: how AI-driven computer vision is transfo')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - resources', () => {
  test('resources: title matches GT', async ({ page }) => {
    await page.goto('/resources/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova resources');
  });
  test('resources: h1 "Knowledge Library"', async ({ page }) => {
    await page.goto('/resources/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Knowledge Library' || t.startsWith('Knowledge Library'))).toBeTruthy();
  });
  test('resources: h2 "Top picks from Kartova"', async ({ page }) => {
    await page.goto('/resources/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Top picks from Kartova' || t.startsWith('Top picks from Kartova'))).toBeTruthy();
  });
  test('resources: h2 "Latest Blog Posts"', async ({ page }) => {
    await page.goto('/resources/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Blog Posts' || t.startsWith('Latest Blog Posts'))).toBeTruthy();
  });
  test('resources: nav link "Customers"', async ({ page }) => {
    await page.goto('/resources/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('resources: nav link "Begin Free Trial"', async ({ page }) => {
    await page.goto('/resources/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Begin Free Trial' || t.startsWith('Begin Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('resources: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => {
    await page.goto('/resources/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('resources: nav link "Seeing with AI: how computer v"', async ({ page }) => {
    await page.goto('/resources/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing with AI: how computer vision is transforming the stor' || t.startsWith('Seeing with AI: how computer vision is transforming the stor')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - tco_and_roi', () => {
  test('tco_and_roi: title matches GT', async ({ page }) => {
    await page.goto('/tco-and-roi/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('how tco and roi shape modern commerce');
  });
  test('tco_and_roi: h1 "Spend smarter, achieve more wi"', async ({ page }) => {
    await page.goto('/tco-and-roi/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Spend smarter, achieve more with Kartova.' || t.startsWith('Spend smarter, achieve more with Kartova.'))).toBeTruthy();
  });
  test('tco_and_roi: h2 "Turn hidden expenses into meas"', async ({ page }) => {
    await page.goto('/tco-and-roi/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Turn hidden expenses into measurable savings' || t.startsWith('Turn hidden expenses into measurable savings'))).toBeTruthy();
  });
  test('tco_and_roi: h2 "How enterprises cut TCO with a"', async ({ page }) => {
    await page.goto('/tco-and-roi/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How enterprises cut TCO with a modern commerce platform' || t.startsWith('How enterprises cut TCO with a modern commerce platform'))).toBeTruthy();
  });
  test('tco_and_roi: h2 "How enterprises grow ROI faste"', async ({ page }) => {
    await page.goto('/tco-and-roi/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How enterprises grow ROI faster with Kartova' || t.startsWith('How enterprises grow ROI faster with Kartova'))).toBeTruthy();
  });
  test('tco_and_roi: nav link "Customers"', async ({ page }) => {
    await page.goto('/tco-and-roi/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('tco_and_roi: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/tco-and-roi/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('tco_and_roi: nav link "Kartova posts strong Q1 2026 r"', async ({ page }) => {
    await page.goto('/tco-and-roi/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 results, surpassing the \$100B G' || t.startsWith('Kartova posts strong Q1 2026 results, surpassing the \$100B G')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('tco_and_roi: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/tco-and-roi/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming modern ' || t.startsWith('Seen through AI: how computer vision is transforming modern ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - training', () => {
  test('training: title matches GT', async ({ page }) => {
    await page.goto('/training/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('training');
  });
  test('training: h1 "Master how to get the most out"', async ({ page }) => {
    await page.goto('/training/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Master how to get the most out of Kartova' || t.startsWith('Master how to get the most out of Kartova'))).toBeTruthy();
  });
  test('training: h2 "Our Core Trainings"', async ({ page }) => {
    await page.goto('/training/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Our Core Trainings' || t.startsWith('Our Core Trainings'))).toBeTruthy();
  });
  test('training: h2 "On Demand Trainings"', async ({ page }) => {
    await page.goto('/training/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'On Demand Trainings' || t.startsWith('On Demand Trainings'))).toBeTruthy();
  });
  test('training: h2 "Preparing for your exams"', async ({ page }) => {
    await page.goto('/training/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Preparing for your exams' || t.startsWith('Preparing for your exams'))).toBeTruthy();
  });
  test('training: nav link "Customers"', async ({ page }) => {
    await page.goto('/training/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('training: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/training/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('training: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => {
    await page.goto('/training/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('training: nav link "Seen by AI: how computer visio"', async ({ page }) => {
    await page.goto('/training/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen by AI: how computer vision is reshaping the modern reta' || t.startsWith('Seen by AI: how computer vision is reshaping the modern reta')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - unified_commerce', () => {
  test('unified_commerce: title matches GT', async ({ page }) => {
    await page.goto('/unified-commerce/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('unified commerce guide');
  });
  test('unified_commerce: h1 "Unified commerce. Boundless sc"', async ({ page }) => {
    await page.goto('/unified-commerce/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Unified commerce. Boundless scale.' || t.startsWith('Unified commerce. Boundless scale.'))).toBeTruthy();
  });
  test('unified_commerce: h2 "Fragmented commerce systems cr"', async ({ page }) => {
    await page.goto('/unified-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Fragmented commerce systems create a fractured customer experience' || t.startsWith('Fragmented commerce systems create a fractured customer experience'))).toBeTruthy();
  });
  test('unified_commerce: h2 "What is unified commerce?"', async ({ page }) => {
    await page.goto('/unified-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'What is unified commerce?' || t.startsWith('What is unified commerce?'))).toBeTruthy();
  });
  test('unified_commerce: h2 "The outcomes forward-looking e"', async ({ page }) => {
    await page.goto('/unified-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The outcomes forward-looking enterprises unlock with unified commerce' || t.startsWith('The outcomes forward-looking enterprises unlock with unified commerce'))).toBeTruthy();
  });
  test('unified_commerce: nav link "Customers"', async ({ page }) => {
    await page.goto('/unified-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('unified_commerce: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/unified-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('unified_commerce: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => {
    await page.goto('/unified-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts robust Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('unified_commerce: nav link "Through an AI lens: how comput"', async ({ page }) => {
    await page.goto('/unified-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Through an AI lens: how computer vision is transforming mode' || t.startsWith('Through an AI lens: how computer vision is transforming mode')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - why_kartova', () => {
  test('why_kartova: title matches GT', async ({ page }) => {
    await page.goto('/why-kartova/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('why kartova is redefining the future of ');
  });
  test('why_kartova: h1 "Enterprise commerce, reimagine"', async ({ page }) => {
    await page.goto('/why-kartova/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Enterprise commerce, reimagined for what comes next.' || t.startsWith('Enterprise commerce, reimagined for what comes next.'))).toBeTruthy();
  });
  test('why_kartova: h2 "Your definitive platform for c"', async ({ page }) => {
    await page.goto('/why-kartova/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Your definitive platform for commerce innovation.' || t.startsWith('Your definitive platform for commerce innovation.'))).toBeTruthy();
  });
  test('why_kartova: h2 "Real-world outcomes from our c"', async ({ page }) => {
    await page.goto('/why-kartova/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Real-world outcomes from our customers.' || t.startsWith('Real-world outcomes from our customers.'))).toBeTruthy();
  });
  test('why_kartova: h2 "Why leading enterprises upgrad"', async ({ page }) => {
    await page.goto('/why-kartova/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Why leading enterprises upgrade to Kartova now.' || t.startsWith('Why leading enterprises upgrade to Kartova now.'))).toBeTruthy();
  });
  test('why_kartova: nav link "Customers"', async ({ page }) => {
    await page.goto('/why-kartova/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('why_kartova: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/why-kartova/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('why_kartova: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => {
    await page.goto('/why-kartova/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 gains, pushing past the \$100B G' || t.startsWith('Kartova posts record Q1 2026 gains, pushing past the \$100B G')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('why_kartova: nav link "Seen through AI: the ways comp"', async ({ page }) => {
    await page.goto('/why-kartova/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: the ways computer vision is transforming mo' || t.startsWith('Seen through AI: the ways computer vision is transforming mo')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_computer_vision_in_retail', () => {
  test('blog_computer_vision_in_retail: title matches GT', async ({ page }) => {
    await page.goto('/blog/computer-vision-in-retail/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('computer vision in retail');
  });
  test('blog_computer_vision_in_retail: h1 "Seeing retail anew: how comput"', async ({ page }) => {
    await page.goto('/blog/computer-vision-in-retail/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing retail anew: how computer vision is transforming the store' || t.startsWith('Seeing retail anew: how computer vision is transforming the store'))).toBeTruthy();
  });
  test('blog_computer_vision_in_retail: h2 "How computer vision took hold "', async ({ page }) => {
    await page.goto('/blog/computer-vision-in-retail/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How computer vision took hold in retail' || t.startsWith('How computer vision took hold in retail'))).toBeTruthy();
  });
  test('blog_computer_vision_in_retail: h2 "Defining computer vision"', async ({ page }) => {
    await page.goto('/blog/computer-vision-in-retail/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Defining computer vision' || t.startsWith('Defining computer vision'))).toBeTruthy();
  });
  test('blog_computer_vision_in_retail: h2 "Retail use cases for computer "', async ({ page }) => {
    await page.goto('/blog/computer-vision-in-retail/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Retail use cases for computer vision' || t.startsWith('Retail use cases for computer vision'))).toBeTruthy();
  });
  test('blog_computer_vision_in_retail: nav link "Customers"', async ({ page }) => {
    await page.goto('/blog/computer-vision-in-retail/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('blog_computer_vision_in_retail: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/blog/computer-vision-in-retail/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('blog_computer_vision_in_retail: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => {
    await page.goto('/blog/computer-vision-in-retail/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts strong Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('blog_computer_vision_in_retail: nav link "Seen through AI: the ways comp"', async ({ page }) => {
    await page.goto('/blog/computer-vision-in-retail/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: the ways computer vision is reshaping the r' || t.startsWith('Seen through AI: the ways computer vision is reshaping the r')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - careers_dei_esg', () => {
  test('careers_dei_esg: title matches GT', async ({ page }) => {
    await page.goto('/careers/dei-esg/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('belonging, diversity, equity & inclusion');
  });
  test('careers_dei_esg: h1 "Diversity, Equity, Inclusion &"', async ({ page }) => {
    await page.goto('/careers/dei-esg/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Diversity, Equity, Inclusion & Belonging at Kartova' || t.startsWith('Diversity, Equity, Inclusion & Belonging at Kartova'))).toBeTruthy();
  });
  test('careers_dei_esg: h2 "What Do Diversity, Equity, Inc"', async ({ page }) => {
    await page.goto('/careers/dei-esg/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'What Do Diversity, Equity, Inclusion and Belonging Actually Mean at Kartova?' || t.startsWith('What Do Diversity, Equity, Inclusion and Belonging Actually Mean at Kartova?'))).toBeTruthy();
  });
  test('careers_dei_esg: h2 "Employee Resource Groups"', async ({ page }) => {
    await page.goto('/careers/dei-esg/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Employee Resource Groups' || t.startsWith('Employee Resource Groups'))).toBeTruthy();
  });
  test('careers_dei_esg: h2 "BLK Leaders"', async ({ page }) => {
    await page.goto('/careers/dei-esg/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'BLK Leaders' || t.startsWith('BLK Leaders'))).toBeTruthy();
  });
  test('careers_dei_esg: nav link "Customers"', async ({ page }) => {
    await page.goto('/careers/dei-esg/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('careers_dei_esg: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/careers/dei-esg/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('careers_dei_esg: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/careers/dei-esg/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('careers_dei_esg: nav link "Seeing through AI: how compute"', async ({ page }) => {
    await page.goto('/careers/dei-esg/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing through AI: how computer vision is reshaping the reta' || t.startsWith('Seeing through AI: how computer vision is reshaping the reta')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - careers_hiring_faq', () => {
  test('careers_hiring_faq: title matches GT', async ({ page }) => {
    await page.goto('/careers/hiring-faq/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('hiring q&a');
  });
  test('careers_hiring_faq: h1 "Your Kartova journey begins wi"', async ({ page }) => {
    await page.goto('/careers/hiring-faq/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Your Kartova journey begins with one simple click today.' || t.startsWith('Your Kartova journey begins with one simple click today.'))).toBeTruthy();
  });
  test('careers_hiring_faq: h2 "How We Hire You"', async ({ page }) => {
    await page.goto('/careers/hiring-faq/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How We Hire You' || t.startsWith('How We Hire You'))).toBeTruthy();
  });
  test('careers_hiring_faq: h2 "Common questions"', async ({ page }) => {
    await page.goto('/careers/hiring-faq/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Common questions' || t.startsWith('Common questions'))).toBeTruthy();
  });
  test('careers_hiring_faq: nav link "Customers"', async ({ page }) => {
    await page.goto('/careers/hiring-faq/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('careers_hiring_faq: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/careers/hiring-faq/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('careers_hiring_faq: nav link "Kartova posts strong Q1 2026 m"', async ({ page }) => {
    await page.goto('/careers/hiring-faq/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 momentum, pushing past the \$100' || t.startsWith('Kartova posts strong Q1 2026 momentum, pushing past the \$100')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('careers_hiring_faq: nav link "Seen by machines: how computer"', async ({ page }) => {
    await page.goto('/careers/hiring-faq/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen by machines: how computer vision is reshaping the futur' || t.startsWith('Seen by machines: how computer vision is reshaping the futur')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - careers_jobs', () => {
  test('careers_jobs: title matches GT', async ({ page }) => {
    await page.goto('/careers/jobs/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('current job openings at kartova');
  });
  test('careers_jobs: h1 "Hey, ready to become a Kartova"', async ({ page }) => {
    await page.goto('/careers/jobs/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Hey, ready to become a Kartovan?' || t.startsWith('Hey, ready to become a Kartovan?'))).toBeTruthy();
  });
  test('careers_jobs: h2 "Stay alert and secure!"', async ({ page }) => {
    await page.goto('/careers/jobs/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Stay alert and secure!' || t.startsWith('Stay alert and secure!'))).toBeTruthy();
  });
  test('careers_jobs: nav link "Customers"', async ({ page }) => {
    await page.goto('/careers/jobs/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('careers_jobs: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/careers/jobs/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('careers_jobs: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => {
    await page.goto('/careers/jobs/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts record Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('careers_jobs: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/careers/jobs/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the ret' || t.startsWith('Seen through AI: how computer vision is transforming the ret')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - careers_our_benefits', () => {
  test('careers_our_benefits: title matches GT', async ({ page }) => {
    await page.goto('/careers/our-benefits/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('the employee benefits at kartova');
  });
  test('careers_our_benefits: h1 "Our Benefits"', async ({ page }) => {
    await page.goto('/careers/our-benefits/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Our Benefits' || t.startsWith('Our Benefits'))).toBeTruthy();
  });
  test('careers_our_benefits: h2 "Powering your best work and yo"', async ({ page }) => {
    await page.goto('/careers/our-benefits/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Powering your best work and your fullest life' || t.startsWith('Powering your best work and your fullest life'))).toBeTruthy();
  });
  test('careers_our_benefits: nav link "Customers"', async ({ page }) => {
    await page.goto('/careers/our-benefits/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('careers_our_benefits: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/careers/our-benefits/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('careers_our_benefits: nav link "Kartova reports strong Q1 2026"', async ({ page }) => {
    await page.goto('/careers/our-benefits/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('careers_our_benefits: nav link "Seeing through AI: how machine"', async ({ page }) => {
    await page.goto('/careers/our-benefits/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing through AI: how machine vision is reshaping the moder' || t.startsWith('Seeing through AI: how machine vision is reshaping the moder')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - company_about', () => {
  test('company_about: title matches GT', async ({ page }) => {
    await page.goto('/company/about/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('we are kartova, inc.');
  });
  test('company_about: h1 "Building tomorrow\'s commerce, "', async ({ page }) => {
    await page.goto('/company/about/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Building tomorrow\'s commerce, on your terms' || t.startsWith('Building tomorrow\'s commerce, on your terms'))).toBeTruthy();
  });
  test('company_about: h2 "The world shifted. So we engin"', async ({ page }) => {
    await page.goto('/company/about/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The world shifted. So we engineered a platform that keeps pace — whatever the future happens to brin' || t.startsWith('The world shifted. So we engineered a platform that keeps pace — whatever the future happens to brin'))).toBeTruthy();
  });
  test('company_about: h2 "Rethinking enterprise commerce"', async ({ page }) => {
    await page.goto('/company/about/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Rethinking enterprise commerce, from headless to agentic.' || t.startsWith('Rethinking enterprise commerce, from headless to agentic.'))).toBeTruthy();
  });
  test('company_about: h2 "Made for scale. Prepared for i"', async ({ page }) => {
    await page.goto('/company/about/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Made for scale. Prepared for intelligence. Trusted across the enterprise.' || t.startsWith('Made for scale. Prepared for intelligence. Trusted across the enterprise.'))).toBeTruthy();
  });
  test('company_about: nav link "Customers"', async ({ page }) => {
    await page.goto('/company/about/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('company_about: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/company/about/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('company_about: nav link "Kartova posts a record Q1 2026"', async ({ page }) => {
    await page.goto('/company/about/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts a record Q1 2026, finally breaking the \$100B G' || t.startsWith('Kartova posts a record Q1 2026, finally breaking the \$100B G')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('company_about: nav link "Seeing retail differently: how"', async ({ page }) => {
    await page.goto('/company/about/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing retail differently: how AI-driven vision is reshaping' || t.startsWith('Seeing retail differently: how AI-driven vision is reshaping')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - infrastructure_partners_aws', () => {
  test('infrastructure_partners_aws: title matches GT', async ({ page }) => {
    await page.goto('/infrastructure-partners/aws/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova infrastructure partner');
  });
  test('infrastructure_partners_aws: h1 "Nimbus Cloud"', async ({ page }) => {
    await page.goto('/infrastructure-partners/aws/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Nimbus Cloud' || t.startsWith('Nimbus Cloud'))).toBeTruthy();
  });
  test('infrastructure_partners_aws: h2 "NC PARTNERSHIP"', async ({ page }) => {
    await page.goto('/infrastructure-partners/aws/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'NC PARTNERSHIP' || t.startsWith('NC PARTNERSHIP'))).toBeTruthy();
  });
  test('infrastructure_partners_aws: h2 "NC at a glance"', async ({ page }) => {
    await page.goto('/infrastructure-partners/aws/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'NC at a glance' || t.startsWith('NC at a glance'))).toBeTruthy();
  });
  test('infrastructure_partners_aws: h2 "Cloud native"', async ({ page }) => {
    await page.goto('/infrastructure-partners/aws/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Cloud native' || t.startsWith('Cloud native'))).toBeTruthy();
  });
  test('infrastructure_partners_aws: nav link "Customers"', async ({ page }) => {
    await page.goto('/infrastructure-partners/aws/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('infrastructure_partners_aws: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/infrastructure-partners/aws/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('infrastructure_partners_aws: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => {
    await page.goto('/infrastructure-partners/aws/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth, surpassing the \$100B GM' || t.startsWith('Kartova posts record Q1 2026 growth, surpassing the \$100B GM')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('infrastructure_partners_aws: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/infrastructure-partners/aws/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is quietly reshaping th' || t.startsWith('Seen through AI: how computer vision is quietly reshaping th')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - infrastructure_partners_google_cloud', () => {
  test('infrastructure_partners_google_cloud: title matches GT', async ({ page }) => {
    await page.goto('/infrastructure-partners/google-cloud/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova infrastructure partner');
  });
  test('infrastructure_partners_google_cloud: h1 "Strata Cloud"', async ({ page }) => {
    await page.goto('/infrastructure-partners/google-cloud/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Strata Cloud' || t.startsWith('Strata Cloud'))).toBeTruthy();
  });
  test('infrastructure_partners_google_cloud: h2 "Strata Cloud Partnership"', async ({ page }) => {
    await page.goto('/infrastructure-partners/google-cloud/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Strata Cloud Partnership' || t.startsWith('Strata Cloud Partnership'))).toBeTruthy();
  });
  test('infrastructure_partners_google_cloud: h2 "About Strata Cloud"', async ({ page }) => {
    await page.goto('/infrastructure-partners/google-cloud/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'About Strata Cloud' || t.startsWith('About Strata Cloud'))).toBeTruthy();
  });
  test('infrastructure_partners_google_cloud: h2 "Joining Forces: Why we partner"', async ({ page }) => {
    await page.goto('/infrastructure-partners/google-cloud/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Joining Forces: Why we partner with Strata Cloud' || t.startsWith('Joining Forces: Why we partner with Strata Cloud'))).toBeTruthy();
  });
  test('infrastructure_partners_google_cloud: nav link "Customers"', async ({ page }) => {
    await page.goto('/infrastructure-partners/google-cloud/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('infrastructure_partners_google_cloud: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/infrastructure-partners/google-cloud/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('infrastructure_partners_google_cloud: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => {
    await page.goto('/infrastructure-partners/google-cloud/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts robust Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('infrastructure_partners_google_cloud: nav link "Seeing through AI: how compute"', async ({ page }) => {
    await page.goto('/infrastructure-partners/google-cloud/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing through AI: how computer vision is reshaping modern r' || t.startsWith('Seeing through AI: how computer vision is reshaping modern r')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - infrastructure_partners_mongodb', () => {
  test('infrastructure_partners_mongodb: title matches GT', async ({ page }) => {
    await page.goto('/infrastructure-partners/mongodb/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova infrastructure partner');
  });
  test('infrastructure_partners_mongodb: h1 "Datalume"', async ({ page }) => {
    await page.goto('/infrastructure-partners/mongodb/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Datalume' || t.startsWith('Datalume'))).toBeTruthy();
  });
  test('infrastructure_partners_mongodb: h2 "Datalume partnership"', async ({ page }) => {
    await page.goto('/infrastructure-partners/mongodb/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Datalume partnership' || t.startsWith('Datalume partnership'))).toBeTruthy();
  });
  test('infrastructure_partners_mongodb: h2 "Combining strengths for data-d"', async ({ page }) => {
    await page.goto('/infrastructure-partners/mongodb/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Combining strengths for data-driven commerce' || t.startsWith('Combining strengths for data-driven commerce'))).toBeTruthy();
  });
  test('infrastructure_partners_mongodb: h2 "Adaptable Data Modeling"', async ({ page }) => {
    await page.goto('/infrastructure-partners/mongodb/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Adaptable Data Modeling' || t.startsWith('Adaptable Data Modeling'))).toBeTruthy();
  });
  test('infrastructure_partners_mongodb: nav link "Customers"', async ({ page }) => {
    await page.goto('/infrastructure-partners/mongodb/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('infrastructure_partners_mongodb: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/infrastructure-partners/mongodb/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('infrastructure_partners_mongodb: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/infrastructure-partners/mongodb/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('infrastructure_partners_mongodb: nav link "Seeing with AI: how computer v"', async ({ page }) => {
    await page.goto('/infrastructure-partners/mongodb/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing with AI: how computer vision is reshaping the modern ' || t.startsWith('Seeing with AI: how computer vision is reshaping the modern ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - newsroom_media_resources', () => {
  test('newsroom_media_resources: title matches GT', async ({ page }) => {
    await page.goto('/newsroom/media-resources/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('press kit & media info');
  });
  test('newsroom_media_resources: h1 "Brand & Media Center"', async ({ page }) => {
    await page.goto('/newsroom/media-resources/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Brand & Media Center' || t.startsWith('Brand & Media Center'))).toBeTruthy();
  });
  test('newsroom_media_resources: h2 "Brand Kit"', async ({ page }) => {
    await page.goto('/newsroom/media-resources/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Brand Kit' || t.startsWith('Brand Kit'))).toBeTruthy();
  });
  test('newsroom_media_resources: h2 "Executive Team Photos"', async ({ page }) => {
    await page.goto('/newsroom/media-resources/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Executive Team Photos' || t.startsWith('Executive Team Photos'))).toBeTruthy();
  });
  test('newsroom_media_resources: h2 "Company Snapshot"', async ({ page }) => {
    await page.goto('/newsroom/media-resources/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Company Snapshot' || t.startsWith('Company Snapshot'))).toBeTruthy();
  });
  test('newsroom_media_resources: nav link "Customers"', async ({ page }) => {
    await page.goto('/newsroom/media-resources/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('newsroom_media_resources: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/newsroom/media-resources/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('newsroom_media_resources: nav link "Kartova posts record Q1 2026 m"', async ({ page }) => {
    await page.goto('/newsroom/media-resources/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 momentum, pushing past the \$100' || t.startsWith('Kartova posts record Q1 2026 momentum, pushing past the \$100')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('newsroom_media_resources: nav link "Seeing with AI: how computer v"', async ({ page }) => {
    await page.goto('/newsroom/media-resources/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing with AI: how computer vision is reshaping the future ' || t.startsWith('Seeing with AI: how computer vision is reshaping the future ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - partner_program_overview', () => {
  test('partner_program_overview: title matches GT', async ({ page }) => {
    await page.goto('/partner-program/overview/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('discover the kartova partner program');
  });
  test('partner_program_overview: h1 "Kartova Partner Program"', async ({ page }) => {
    await page.goto('/partner-program/overview/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova Partner Program' || t.startsWith('Kartova Partner Program'))).toBeTruthy();
  });
  test('partner_program_overview: h2 "About the Kartova Partner Prog"', async ({ page }) => {
    await page.goto('/partner-program/overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'About the Kartova Partner Program' || t.startsWith('About the Kartova Partner Program'))).toBeTruthy();
  });
  test('partner_program_overview: h2 "Key Highlights of the 2025 Par"', async ({ page }) => {
    await page.goto('/partner-program/overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Key Highlights of the 2025 Partner Program' || t.startsWith('Key Highlights of the 2025 Partner Program'))).toBeTruthy();
  });
  test('partner_program_overview: h2 "Unlock More Possibilities with"', async ({ page }) => {
    await page.goto('/partner-program/overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Unlock More Possibilities with Every Partnership Tier' || t.startsWith('Unlock More Possibilities with Every Partnership Tier'))).toBeTruthy();
  });
  test('partner_program_overview: nav link "Customers"', async ({ page }) => {
    await page.goto('/partner-program/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('partner_program_overview: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/partner-program/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('partner_program_overview: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => {
    await page.goto('/partner-program/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts strong Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('partner_program_overview: nav link "Seeing with AI: how computer v"', async ({ page }) => {
    await page.goto('/partner-program/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing with AI: how computer vision is reshaping modern reta' || t.startsWith('Seeing with AI: how computer vision is reshaping modern reta')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - partners_solution_integrators_and_agencies', () => {
  test('partners_solution_integrators_and_agencies: title matches GT', async ({ page }) => {
    await page.goto('/partners/solution-integrators-and-agencies/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('explore kartova solution integrator part');
  });
  test('partners_solution_integrators_and_agencies: h1 "Solution Integrators"', async ({ page }) => {
    await page.goto('/partners/solution-integrators-and-agencies/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Solution Integrators' || t.startsWith('Solution Integrators'))).toBeTruthy();
  });
  test('partners_solution_integrators_and_agencies: h2 "More Certified Partners"', async ({ page }) => {
    await page.goto('/partners/solution-integrators-and-agencies/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'More Certified Partners' || t.startsWith('More Certified Partners'))).toBeTruthy();
  });
  test('partners_solution_integrators_and_agencies: h2 "Searching for the right techno"', async ({ page }) => {
    await page.goto('/partners/solution-integrators-and-agencies/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Searching for the right technology partner? Browse our Solution Hub' || t.startsWith('Searching for the right technology partner? Browse our Solution Hub'))).toBeTruthy();
  });
  test('partners_solution_integrators_and_agencies: h2 "Want to become an official Kar"', async ({ page }) => {
    await page.goto('/partners/solution-integrators-and-agencies/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Want to become an official Kartova partner?' || t.startsWith('Want to become an official Kartova partner?'))).toBeTruthy();
  });
  test('partners_solution_integrators_and_agencies: nav link "Customers"', async ({ page }) => {
    await page.goto('/partners/solution-integrators-and-agencies/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('partners_solution_integrators_and_agencies: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/partners/solution-integrators-and-agencies/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('partners_solution_integrators_and_agencies: nav link "Kartova posts record Q1 2026 r"', async ({ page }) => {
    await page.goto('/partners/solution-integrators-and-agencies/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts record Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('partners_solution_integrators_and_agencies: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/partners/solution-integrators-and-agencies/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming modern ' || t.startsWith('Seen through AI: how computer vision is transforming modern ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - platform_connect', () => {
  test('platform_connect: title matches GT', async ({ page }) => {
    await page.goto('/platform/connect/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('connect integration blueprint');
  });
  test('platform_connect: h1 "Design. Connect. Launch. Compo"', async ({ page }) => {
    await page.goto('/platform/connect/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Design. Connect. Launch. Composable integrations built for every team.' || t.startsWith('Design. Connect. Launch. Composable integrations built for every team.'))).toBeTruthy();
  });
  test('platform_connect: h2 "Simplify your commerce integra"', async ({ page }) => {
    await page.goto('/platform/connect/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Simplify your commerce integrations' || t.startsWith('Simplify your commerce integrations'))).toBeTruthy();
  });
  test('platform_connect: h2 "Notable features"', async ({ page }) => {
    await page.goto('/platform/connect/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Notable features' || t.startsWith('Notable features'))).toBeTruthy();
  });
  test('platform_connect: h2 "Robust connectors engineered o"', async ({ page }) => {
    await page.goto('/platform/connect/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Robust connectors engineered on our framework' || t.startsWith('Robust connectors engineered on our framework'))).toBeTruthy();
  });
  test('platform_connect: nav link "Customers"', async ({ page }) => {
    await page.goto('/platform/connect/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('platform_connect: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/platform/connect/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('platform_connect: nav link "Kartova reports record Q1 2026"', async ({ page }) => {
    await page.goto('/platform/connect/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova reports record Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports record Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('platform_connect: nav link "Seeing through machines: how c"', async ({ page }) => {
    await page.goto('/platform/connect/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing through machines: how computer vision is transforming' || t.startsWith('Seeing through machines: how computer vision is transforming')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - press_releases_kartova_reports_strong_q1_2026', () => {
  test('press_releases_kartova_reports_strong_q1_2026: title matches GT', async ({ page }) => {
    await page.goto('/press-releases/kartova-reports-strong-q1-2026/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova reports strong q1 2026 revenue g');
  });
  test('press_releases_kartova_reports_strong_q1_2026: h1 "Kartova reports strong Q1 2026"', async ({ page }) => {
    await page.goto('/press-releases/kartova-reports-strong-q1-2026/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B GMV run-rate milestone' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B GMV run-rate milestone'))).toBeTruthy();
  });
  test('press_releases_kartova_reports_strong_q1_2026: h2 "About Kartova, Inc."', async ({ page }) => {
    await page.goto('/press-releases/kartova-reports-strong-q1-2026/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'About Kartova, Inc.' || t.startsWith('About Kartova, Inc.'))).toBeTruthy();
  });
  test('press_releases_kartova_reports_strong_q1_2026: h2 "Recent Press Releases"', async ({ page }) => {
    await page.goto('/press-releases/kartova-reports-strong-q1-2026/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Press Releases' || t.startsWith('Recent Press Releases'))).toBeTruthy();
  });
  test('press_releases_kartova_reports_strong_q1_2026: nav link "Customers"', async ({ page }) => {
    await page.goto('/press-releases/kartova-reports-strong-q1-2026/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('press_releases_kartova_reports_strong_q1_2026: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/press-releases/kartova-reports-strong-q1-2026/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('press_releases_kartova_reports_strong_q1_2026: nav link "Kartova reports strong Q1 2026"', async ({ page }) => {
    await page.goto('/press-releases/kartova-reports-strong-q1-2026/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, breaking past the \$10' || t.startsWith('Kartova reports strong Q1 2026 growth, breaking past the \$10')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('press_releases_kartova_reports_strong_q1_2026: nav link "Seeing through machines: how c"', async ({ page }) => {
    await page.goto('/press-releases/kartova-reports-strong-q1-2026/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing through machines: how computer vision is reshaping mo' || t.startsWith('Seeing through machines: how computer vision is reshaping mo')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_agent_gateway', () => {
  test('products_agent_gateway: title matches GT', async ({ page }) => {
    await page.goto('/products/agent-gateway/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('agent gateway');
  });
  test('products_agent_gateway: h1 "AI that delivers. Commerce tha"', async ({ page }) => {
    await page.goto('/products/agent-gateway/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'AI that delivers. Commerce that runs — everywhere.' || t.startsWith('AI that delivers. Commerce that runs — everywhere.'))).toBeTruthy();
  });
  test('products_agent_gateway: h2 "Designed for commerce agents. "', async ({ page }) => {
    await page.goto('/products/agent-gateway/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Designed for commerce agents. Secured and scaled for the enterprise.' || t.startsWith('Designed for commerce agents. Secured and scaled for the enterprise.'))).toBeTruthy();
  });
  test('products_agent_gateway: h2 "Agentic commerce, ready when y"', async ({ page }) => {
    await page.goto('/products/agent-gateway/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Agentic commerce, ready when you are.' || t.startsWith('Agentic commerce, ready when you are.'))).toBeTruthy();
  });
  test('products_agent_gateway: h2 "Real-world outcomes: what you "', async ({ page }) => {
    await page.goto('/products/agent-gateway/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Real-world outcomes: what you can build with Agent Gateway.' || t.startsWith('Real-world outcomes: what you can build with Agent Gateway.'))).toBeTruthy();
  });
  test('products_agent_gateway: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/agent-gateway/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_agent_gateway: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/agent-gateway/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_agent_gateway: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => {
    await page.goto('/products/agent-gateway/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts strong Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_agent_gateway: nav link "Seeing like a machine: how com"', async ({ page }) => {
    await page.goto('/products/agent-gateway/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing like a machine: how computer vision is reshaping the ' || t.startsWith('Seeing like a machine: how computer vision is reshaping the ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_agentic_commerce', () => {
  test('products_agentic_commerce: title matches GT', async ({ page }) => {
    await page.goto('/products/agentic-commerce/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('understanding agentic commerce');
  });
  test('products_agentic_commerce: h1 "Agentic commerce. AI that acts"', async ({ page }) => {
    await page.goto('/products/agentic-commerce/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Agentic commerce. AI that acts — and hands you a real edge.' || t.startsWith('Agentic commerce. AI that acts — and hands you a real edge.'))).toBeTruthy();
  });
  test('products_agentic_commerce: h2 "Defining agentic commerce"', async ({ page }) => {
    await page.goto('/products/agentic-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Defining agentic commerce' || t.startsWith('Defining agentic commerce'))).toBeTruthy();
  });
  test('products_agentic_commerce: h2 "Is agentic commerce the next b"', async ({ page }) => {
    await page.goto('/products/agentic-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Is agentic commerce the next big shift?' || t.startsWith('Is agentic commerce the next big shift?'))).toBeTruthy();
  });
  test('products_agentic_commerce: h2 "Agentic commerce at work: Real"', async ({ page }) => {
    await page.goto('/products/agentic-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Agentic commerce at work: Real use cases.' || t.startsWith('Agentic commerce at work: Real use cases.'))).toBeTruthy();
  });
  test('products_agentic_commerce: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/agentic-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_agentic_commerce: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/agentic-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_agentic_commerce: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => {
    await page.goto('/products/agentic-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts robust Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_agentic_commerce: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/products/agentic-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping the modern' || t.startsWith('Seen through AI: how computer vision is reshaping the modern')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_agentic_jumpstart', () => {
  test('products_agentic_jumpstart: title matches GT', async ({ page }) => {
    await page.goto('/products/agentic-jumpstart/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('agentic jumpstart for agent');
  });
  test('products_agentic_jumpstart: h1 "The agentic marketplace is her"', async ({ page }) => {
    await page.goto('/products/agentic-jumpstart/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The agentic marketplace is here, worldwide — and it\'s powered by Kartova.' || t.startsWith('The agentic marketplace is here, worldwide — and it\'s powered by Kartova.'))).toBeTruthy();
  });
  test('products_agentic_jumpstart: h2 "Kick off your agentic rollout "', async ({ page }) => {
    await page.goto('/products/agentic-jumpstart/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kick off your agentic rollout — effortless, quick, and safe.' || t.startsWith('Kick off your agentic rollout — effortless, quick, and safe.'))).toBeTruthy();
  });
  test('products_agentic_jumpstart: h2 "Engineered to convert the agen"', async ({ page }) => {
    await page.goto('/products/agentic-jumpstart/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Engineered to convert the agentic shift into growth right now.' || t.startsWith('Engineered to convert the agentic shift into growth right now.'))).toBeTruthy();
  });
  test('products_agentic_jumpstart: h3 "Be findable wherever your shop"', async ({ page }) => {
    await page.goto('/products/agentic-jumpstart/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Be findable wherever your shoppers or their AI agents happen to be' || t.startsWith('Be findable wherever your shoppers or their AI agents happen to be'))).toBeTruthy();
  });
  test('products_agentic_jumpstart: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/agentic-jumpstart/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_agentic_jumpstart: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/agentic-jumpstart/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_agentic_jumpstart: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/products/agentic-jumpstart/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_agentic_jumpstart: nav link "Seeing with AI: how computer v"', async ({ page }) => {
    await page.goto('/products/agentic-jumpstart/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing with AI: how computer vision is reshaping modern reta' || t.startsWith('Seeing with AI: how computer vision is reshaping modern reta')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_agenticlift', () => {
  test('products_agenticlift: title matches GT', async ({ page }) => {
    await page.goto('/products/agenticlift/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('agenticlift');
  });
  test('products_agenticlift: h1 "The instant on-ramp to agentic"', async ({ page }) => {
    await page.goto('/products/agenticlift/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The instant on-ramp to agentic commerce — with no replatforming required.' || t.startsWith('The instant on-ramp to agentic commerce — with no replatforming required.'))).toBeTruthy();
  });
  test('products_agenticlift: h2 "Agentic commerce has arrived. "', async ({ page }) => {
    await page.goto('/products/agenticlift/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Agentic commerce has arrived. Here\'s where to begin.' || t.startsWith('Agentic commerce has arrived. Here\'s where to begin.'))).toBeTruthy();
  });
  test('products_agenticlift: h2 "5 steps to begin selling throu"', async ({ page }) => {
    await page.goto('/products/agenticlift/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '5 steps to begin selling through AI channels' || t.startsWith('5 steps to begin selling through AI channels'))).toBeTruthy();
  });
  test('products_agenticlift: h2 "Deep dive: Get your product da"', async ({ page }) => {
    await page.goto('/products/agenticlift/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Deep dive: Get your product data ready for AI shopping with AgenticLift' || t.startsWith('Deep dive: Get your product data ready for AI shopping with AgenticLift'))).toBeTruthy();
  });
  test('products_agenticlift: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/agenticlift/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_agenticlift: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/agenticlift/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_agenticlift: nav link "Kartova posts record Q1 2026 r"', async ({ page }) => {
    await page.goto('/products/agenticlift/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 results, pushing past the \$100B' || t.startsWith('Kartova posts record Q1 2026 results, pushing past the \$100B')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_agenticlift: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/products/agenticlift/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming modern ' || t.startsWith('Seen through AI: how computer vision is transforming modern ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_ai_hub', () => {
  test('products_ai_hub: title matches GT', async ({ page }) => {
    await page.goto('/products/ai-hub/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova ai hub suite');
  });
  test('products_ai_hub: h1 "AI Hub: Convert AI chats into "', async ({ page }) => {
    await page.goto('/products/ai-hub/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'AI Hub: Convert AI chats into real sales.' || t.startsWith('AI Hub: Convert AI chats into real sales.'))).toBeTruthy();
  });
  test('products_ai_hub: h2 "Where AI discovery turns into "', async ({ page }) => {
    await page.goto('/products/ai-hub/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Where AI discovery turns into measurable growth.' || t.startsWith('Where AI discovery turns into measurable growth.'))).toBeTruthy();
  });
  test('products_ai_hub: h2 "Trusted by innovators making A"', async ({ page }) => {
    await page.goto('/products/ai-hub/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Trusted by innovators making AI a genuine transaction channel.' || t.startsWith('Trusted by innovators making AI a genuine transaction channel.'))).toBeTruthy();
  });
  test('products_ai_hub: h2 "Ship revenue-ready commerce in"', async ({ page }) => {
    await page.goto('/products/ai-hub/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Ship revenue-ready commerce inside every AI channel.' || t.startsWith('Ship revenue-ready commerce inside every AI channel.'))).toBeTruthy();
  });
  test('products_ai_hub: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/ai-hub/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_ai_hub: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/ai-hub/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_ai_hub: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => {
    await page.goto('/products/ai-hub/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, moving past the \$100B G' || t.startsWith('Kartova posts strong Q1 2026 growth, moving past the \$100B G')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_ai_hub: nav link "Seeing through AI: how machine"', async ({ page }) => {
    await page.goto('/products/ai-hub/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing through AI: how machine vision is transforming the re' || t.startsWith('Seeing through AI: how machine vision is transforming the re')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_audit_log', () => {
  test('products_audit_log: title matches GT', async ({ page }) => {
    await page.goto('/products/audit-log/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova audit log premium tier');
  });
  test('products_audit_log: h1 "See every commerce change at a"', async ({ page }) => {
    await page.goto('/products/audit-log/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See every commerce change at a glance' || t.startsWith('See every commerce change at a glance'))).toBeTruthy();
  });
  test('products_audit_log: h2 "Capture the fullest possible p"', async ({ page }) => {
    await page.goto('/products/audit-log/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Capture the fullest possible picture with Audit Log Premium' || t.startsWith('Capture the fullest possible picture with Audit Log Premium'))).toBeTruthy();
  });
  test('products_audit_log: h2 "Rethink digital commerce, star"', async ({ page }) => {
    await page.goto('/products/audit-log/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Rethink digital commerce, starting today' || t.startsWith('Rethink digital commerce, starting today'))).toBeTruthy();
  });
  test('products_audit_log: h2 "Contact us"', async ({ page }) => {
    await page.goto('/products/audit-log/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Contact us' || t.startsWith('Contact us'))).toBeTruthy();
  });
  test('products_audit_log: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/audit-log/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_audit_log: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/audit-log/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_audit_log: nav link "Kartova reports strong Q1 2026"', async ({ page }) => {
    await page.goto('/products/audit-log/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_audit_log: nav link "How machines see: the way comp"', async ({ page }) => {
    await page.goto('/products/audit-log/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How machines see: the way computer vision is reshaping moder' || t.startsWith('How machines see: the way computer vision is reshaping moder')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_b2b', () => {
  test('products_b2b: title matches GT', async ({ page }) => {
    await page.goto('/products/b2b/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova b2b commerce suite');
  });
  test('products_b2b: h1 "Still stitching together B2B s"', async ({ page }) => {
    await page.goto('/products/b2b/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Still stitching together B2B sales with makeshift fixes? Let us help.' || t.startsWith('Still stitching together B2B sales with makeshift fixes? Let us help.'))).toBeTruthy();
  });
  test('products_b2b: h2 "Bring enterprise-grade eCommer"', async ({ page }) => {
    await page.goto('/products/b2b/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Bring enterprise-grade eCommerce quality to your B2B buyers today.' || t.startsWith('Bring enterprise-grade eCommerce quality to your B2B buyers today.'))).toBeTruthy();
  });
  test('products_b2b: h2 "A standout leader in the 2025 "', async ({ page }) => {
    await page.goto('/products/b2b/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A standout leader in the 2025 Vantage B2B Benchmark Reports.' || t.startsWith('A standout leader in the 2025 Vantage B2B Benchmark Reports.'))).toBeTruthy();
  });
  test('products_b2b: h2 "Real results from our own cust"', async ({ page }) => {
    await page.goto('/products/b2b/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Real results from our own customers.' || t.startsWith('Real results from our own customers.'))).toBeTruthy();
  });
  test('products_b2b: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/b2b/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_b2b: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/b2b/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_b2b: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => {
    await page.goto('/products/b2b/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, sailing past the \$100B ' || t.startsWith('Kartova posts strong Q1 2026 growth, sailing past the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_b2b: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/products/b2b/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the ret' || t.startsWith('Seen through AI: how computer vision is transforming the ret')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_b2c', () => {
  test('products_b2c: title matches GT', async ({ page }) => {
    await page.goto('/products/b2c/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('b2c commerce for consumer brands');
  });
  test('products_b2c: h1 "Is your buying experience made"', async ({ page }) => {
    await page.goto('/products/b2c/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Is your buying experience made to stand out? We turn the ordinary into the outstanding.' || t.startsWith('Is your buying experience made to stand out? We turn the ordinary into the outstanding.'))).toBeTruthy();
  });
  test('products_b2c: h2 "Build remarkable buying journe"', async ({ page }) => {
    await page.goto('/products/b2c/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Build remarkable buying journeys, from first click to final delivery.' || t.startsWith('Build remarkable buying journeys, from first click to final delivery.'))).toBeTruthy();
  });
  test('products_b2c: h2 "Personalization that drives re"', async ({ page }) => {
    await page.goto('/products/b2c/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Personalization that drives revenue: Built into Kartova' || t.startsWith('Personalization that drives revenue: Built into Kartova'))).toBeTruthy();
  });
  test('products_b2c: h2 "Sharper pricing and promotions"', async ({ page }) => {
    await page.goto('/products/b2c/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Sharper pricing and promotions powered by Kartova' || t.startsWith('Sharper pricing and promotions powered by Kartova'))).toBeTruthy();
  });
  test('products_b2c: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/b2c/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_b2c: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/b2c/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_b2c: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/products/b2c/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_b2c: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/products/b2c/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming modern ' || t.startsWith('Seen through AI: how computer vision is transforming modern ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_b2x_commerce', () => {
  test('products_b2x_commerce: title matches GT', async ({ page }) => {
    await page.goto('/products/b2x-commerce/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova b2x commerce suite');
  });
  test('products_b2x_commerce: h1 "Every commerce model. One core"', async ({ page }) => {
    await page.goto('/products/b2x-commerce/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Every commerce model. One core. Zero friction.' || t.startsWith('Every commerce model. One core. Zero friction.'))).toBeTruthy();
  });
  test('products_b2x_commerce: h2 "At last, one commerce platform"', async ({ page }) => {
    await page.goto('/products/b2x-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'At last, one commerce platform built for every business model.' || t.startsWith('At last, one commerce platform built for every business model.'))).toBeTruthy();
  });
  test('products_b2x_commerce: h2 "Customers accelerating growth "', async ({ page }) => {
    await page.goto('/products/b2x-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers accelerating growth with B2X commerce.' || t.startsWith('Customers accelerating growth with B2X commerce.'))).toBeTruthy();
  });
  test('products_b2x_commerce: h2 "Run every B2X model without mi"', async ({ page }) => {
    await page.goto('/products/b2x-commerce/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Run every B2X model without missing a step.' || t.startsWith('Run every B2X model without missing a step.'))).toBeTruthy();
  });
  test('products_b2x_commerce: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/b2x-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_b2x_commerce: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/b2x-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_b2x_commerce: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/products/b2x-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_b2x_commerce: nav link "Seen by machines: how computer"', async ({ page }) => {
    await page.goto('/products/b2x-commerce/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen by machines: how computer vision is reshaping modern re' || t.startsWith('Seen by machines: how computer vision is reshaping modern re')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_expert_services', () => {
  test('products_expert_services: title matches GT', async ({ page }) => {
    await page.goto('/products/expert-services/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova expert services suite');
  });
  test('products_expert_services: h1 "Deep commerce expertise that s"', async ({ page }) => {
    await page.goto('/products/expert-services/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Deep commerce expertise that shortens your road to measurable value' || t.startsWith('Deep commerce expertise that shortens your road to measurable value'))).toBeTruthy();
  });
  test('products_expert_services: h2 "A quicker path to value for co"', async ({ page }) => {
    await page.goto('/products/expert-services/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A quicker path to value for composable commerce' || t.startsWith('A quicker path to value for composable commerce'))).toBeTruthy();
  });
  test('products_expert_services: h2 "Technical onboarding that shar"', async ({ page }) => {
    await page.goto('/products/expert-services/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Technical onboarding that sharpens your implementation' || t.startsWith('Technical onboarding that sharpens your implementation'))).toBeTruthy();
  });
  test('products_expert_services: h2 "Quicker delivery at every stag"', async ({ page }) => {
    await page.goto('/products/expert-services/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Quicker delivery at every stage of the journey' || t.startsWith('Quicker delivery at every stage of the journey'))).toBeTruthy();
  });
  test('products_expert_services: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/expert-services/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_expert_services: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/expert-services/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_expert_services: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => {
    await page.goto('/products/expert-services/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts robust Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_expert_services: nav link "Seeing through AI: how compute"', async ({ page }) => {
    await page.goto('/products/expert-services/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing through AI: how computer vision is transforming moder' || t.startsWith('Seeing through AI: how computer vision is transforming moder')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_frontend', () => {
  test('products_frontend: title matches GT', async ({ page }) => {
    await page.goto('/products/frontend/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova frontend');
  });
  test('products_frontend: h1 "Beautiful digital storefronts,"', async ({ page }) => {
    await page.goto('/products/frontend/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Beautiful digital storefronts, launched at remarkable speed' || t.startsWith('Beautiful digital storefronts, launched at remarkable speed'))).toBeTruthy();
  });
  test('products_frontend: h2 "Speed, scale, flexibility. The"', async ({ page }) => {
    await page.goto('/products/frontend/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Speed, scale, flexibility. The ideal foundation for building your digital storefronts.' || t.startsWith('Speed, scale, flexibility. The ideal foundation for building your digital storefronts.'))).toBeTruthy();
  });
  test('products_frontend: h2 "Faster storefronts. Higher con"', async ({ page }) => {
    await page.goto('/products/frontend/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Faster storefronts. Higher conversions.' || t.startsWith('Faster storefronts. Higher conversions.'))).toBeTruthy();
  });
  test('products_frontend: h2 "Advantages that delight custom"', async ({ page }) => {
    await page.goto('/products/frontend/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Advantages that delight customers and teams.' || t.startsWith('Advantages that delight customers and teams.'))).toBeTruthy();
  });
  test('products_frontend: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/frontend/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_frontend: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/frontend/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_frontend: nav link "Kartova posts robust Q1 2026 m"', async ({ page }) => {
    await page.goto('/products/frontend/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 momentum, breaking past the \$10' || t.startsWith('Kartova posts robust Q1 2026 momentum, breaking past the \$10')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_frontend: nav link "Seen through AI: How machine v"', async ({ page }) => {
    await page.goto('/products/frontend/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: How machine vision is reshaping the retail ' || t.startsWith('Seen through AI: How machine vision is reshaping the retail ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_instore', () => {
  test('products_instore: title matches GT', async ({ page }) => {
    await page.goto('/products/instore/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova instore');
  });
  test('products_instore: h1 "Merge online and in-store sell"', async ({ page }) => {
    await page.goto('/products/instore/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Merge online and in-store selling — and leave the constraints of legacy POS behind.' || t.startsWith('Merge online and in-store selling — and leave the constraints of legacy POS behind.'))).toBeTruthy();
  });
  test('products_instore: h2 "One connected commerce. A sing"', async ({ page }) => {
    await page.goto('/products/instore/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'One connected commerce. A single platform. Complete.' || t.startsWith('One connected commerce. A single platform. Complete.'))).toBeTruthy();
  });
  test('products_instore: h2 "What makes Kartova InStore dif"', async ({ page }) => {
    await page.goto('/products/instore/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'What makes Kartova InStore different' || t.startsWith('What makes Kartova InStore different'))).toBeTruthy();
  });
  test('products_instore: h2 "Advanced scenarios spanning bo"', async ({ page }) => {
    await page.goto('/products/instore/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Advanced scenarios spanning both in-store and digital channels.' || t.startsWith('Advanced scenarios spanning both in-store and digital channels.'))).toBeTruthy();
  });
  test('products_instore: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/instore/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_instore: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/instore/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_instore: nav link "Kartova posts robust Q1 2026 g"', async ({ page }) => {
    await page.goto('/products/instore/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 growth, pushing past the \$100B ' || t.startsWith('Kartova posts robust Q1 2026 growth, pushing past the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_instore: nav link "Seen through AI: the way compu"', async ({ page }) => {
    await page.goto('/products/instore/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: the way computer vision is reshaping the re' || t.startsWith('Seen through AI: the way computer vision is reshaping the re')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - products_premium_support', () => {
  test('products_premium_support: title matches GT', async ({ page }) => {
    await page.goto('/products/premium-support/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova enterprise');
  });
  test('products_premium_support: h1 "Deploy your next-generation st"', async ({ page }) => {
    await page.goto('/products/premium-support/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Deploy your next-generation storefront with far greater assurance.' || t.startsWith('Deploy your next-generation storefront with far greater assurance.'))).toBeTruthy();
  });
  test('products_premium_support: h2 "Your growth is our purpose."', async ({ page }) => {
    await page.goto('/products/premium-support/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Your growth is our purpose.' || t.startsWith('Your growth is our purpose.'))).toBeTruthy();
  });
  test('products_premium_support: h2 "What Premium Support delivers."', async ({ page }) => {
    await page.goto('/products/premium-support/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'What Premium Support delivers.' || t.startsWith('What Premium Support delivers.'))).toBeTruthy();
  });
  test('products_premium_support: h2 "And there\'s still more: contin"', async ({ page }) => {
    await page.goto('/products/premium-support/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'And there\'s still more: continuous load testing.' || t.startsWith('And there\'s still more: continuous load testing.'))).toBeTruthy();
  });
  test('products_premium_support: nav link "Customers"', async ({ page }) => {
    await page.goto('/products/premium-support/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('products_premium_support: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/products/premium-support/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('products_premium_support: nav link "Kartova posts record Q1 2026 g"', async ({ page }) => {
    await page.goto('/products/premium-support/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts record Q1 2026 growth, crossing the \$100B GMV ' || t.startsWith('Kartova posts record Q1 2026 growth, crossing the \$100B GMV ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('products_premium_support: nav link "Seeing retail through AI: how "', async ({ page }) => {
    await page.goto('/products/premium-support/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing retail through AI: how computer vision reshapes the s' || t.startsWith('Seeing retail through AI: how computer vision reshapes the s')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - resources_report_access_center', () => {
  test('resources_report_access_center: title matches GT', async ({ page }) => {
    await page.goto('/resources/report-access-center/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova analyst report access center hub');
  });
  test('resources_report_access_center: h1 "Your Analyst Insight Access Ce"', async ({ page }) => {
    await page.goto('/resources/report-access-center/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Your Analyst Insight Access Center' || t.startsWith('Your Analyst Insight Access Center'))).toBeTruthy();
  });
  test('resources_report_access_center: h2 "Vantik Reports"', async ({ page }) => {
    await page.goto('/resources/report-access-center/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Vantik Reports' || t.startsWith('Vantik Reports'))).toBeTruthy();
  });
  test('resources_report_access_center: h2 "Axiom B2B Faceoff Reports"', async ({ page }) => {
    await page.goto('/resources/report-access-center/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Axiom B2B Faceoff Reports' || t.startsWith('Axiom B2B Faceoff Reports'))).toBeTruthy();
  });
  test('resources_report_access_center: h2 "Corva Reports"', async ({ page }) => {
    await page.goto('/resources/report-access-center/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Corva Reports' || t.startsWith('Corva Reports'))).toBeTruthy();
  });
  test('resources_report_access_center: nav link "Customers"', async ({ page }) => {
    await page.goto('/resources/report-access-center/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('resources_report_access_center: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/resources/report-access-center/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('resources_report_access_center: nav link "Kartova reports strong Q1 2026"', async ({ page }) => {
    await page.goto('/resources/report-access-center/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('resources_report_access_center: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/resources/report-access-center/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is reshaping modern ret' || t.startsWith('Seen through AI: how computer vision is reshaping modern ret')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - solutions_for_automotive_transportation', () => {
  test('solutions_for_automotive_transportation: title matches GT', async ({ page }) => {
    await page.goto('/solutions/for-automotive-transportation/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova enterprise commerce solutions fo');
  });
  test('solutions_for_automotive_transportation: h1 "Supercharge your online auto a"', async ({ page }) => {
    await page.goto('/solutions/for-automotive-transportation/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Supercharge your online auto and parts commerce' || t.startsWith('Supercharge your online auto and parts commerce'))).toBeTruthy();
  });
  test('solutions_for_automotive_transportation: h2 "Fuel faster innovation"', async ({ page }) => {
    await page.goto('/solutions/for-automotive-transportation/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Fuel faster innovation' || t.startsWith('Fuel faster innovation'))).toBeTruthy();
  });
  test('solutions_for_automotive_transportation: h2 "The powertrain built for peak "', async ({ page }) => {
    await page.goto('/solutions/for-automotive-transportation/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The powertrain built for peak performance' || t.startsWith('The powertrain built for peak performance'))).toBeTruthy();
  });
  test('solutions_for_automotive_transportation: h2 "Charting the road ahead for th"', async ({ page }) => {
    await page.goto('/solutions/for-automotive-transportation/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Charting the road ahead for the automotive industry' || t.startsWith('Charting the road ahead for the automotive industry'))).toBeTruthy();
  });
  test('solutions_for_automotive_transportation: nav link "Customers"', async ({ page }) => {
    await page.goto('/solutions/for-automotive-transportation/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_automotive_transportation: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/solutions/for-automotive-transportation/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_automotive_transportation: nav link "Kartova posts strong Q1 2026 g"', async ({ page }) => {
    await page.goto('/solutions/for-automotive-transportation/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts strong Q1 2026 growth, surpassing the \$100B GM' || t.startsWith('Kartova posts strong Q1 2026 growth, surpassing the \$100B GM')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_automotive_transportation: nav link "In focus with AI: How computer"', async ({ page }) => {
    await page.goto('/solutions/for-automotive-transportation/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'In focus with AI: How computer vision is reshaping modern re' || t.startsWith('In focus with AI: How computer vision is reshaping modern re')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - solutions_for_fashion_lifestyle', () => {
  test('solutions_for_fashion_lifestyle: title matches GT', async ({ page }) => {
    await page.goto('/solutions/for-fashion-lifestyle/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova enterprise solutions for fashion');
  });
  test('solutions_for_fashion_lifestyle: h1 "Tailored to keep pace with mod"', async ({ page }) => {
    await page.goto('/solutions/for-fashion-lifestyle/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Tailored to keep pace with modern style' || t.startsWith('Tailored to keep pace with modern style'))).toBeTruthy();
  });
  test('solutions_for_fashion_lifestyle: h2 "The lasting foundation for an "', async ({ page }) => {
    await page.goto('/solutions/for-fashion-lifestyle/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The lasting foundation for an industry in constant motion' || t.startsWith('The lasting foundation for an industry in constant motion'))).toBeTruthy();
  });
  test('solutions_for_fashion_lifestyle: h2 "Delighted shoppers turn into s"', async ({ page }) => {
    await page.goto('/solutions/for-fashion-lifestyle/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Delighted shoppers turn into stronger sales.' || t.startsWith('Delighted shoppers turn into stronger sales.'))).toBeTruthy();
  });
  test('solutions_for_fashion_lifestyle: h2 "Future-ready brands lead with "', async ({ page }) => {
    await page.goto('/solutions/for-fashion-lifestyle/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Future-ready brands lead with one clear focus. Customer experience' || t.startsWith('Future-ready brands lead with one clear focus. Customer experience'))).toBeTruthy();
  });
  test('solutions_for_fashion_lifestyle: nav link "Customers"', async ({ page }) => {
    await page.goto('/solutions/for-fashion-lifestyle/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_fashion_lifestyle: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/solutions/for-fashion-lifestyle/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_fashion_lifestyle: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/solutions/for-fashion-lifestyle/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_fashion_lifestyle: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/solutions/for-fashion-lifestyle/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the ret' || t.startsWith('Seen through AI: how computer vision is transforming the ret')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - solutions_for_food_grocery', () => {
  test('solutions_for_food_grocery: title matches GT', async ({ page }) => {
    await page.goto('/solutions/for-food-grocery/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova enterprise solutions for food & ');
  });
  test('solutions_for_food_grocery: h1 "Delight every online grocery s"', async ({ page }) => {
    await page.goto('/solutions/for-food-grocery/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Delight every online grocery shopper and turn browsing into loyalty.' || t.startsWith('Delight every online grocery shopper and turn browsing into loyalty.'))).toBeTruthy();
  });
  test('solutions_for_food_grocery: h2 "The blueprint for future-proof"', async ({ page }) => {
    await page.goto('/solutions/for-food-grocery/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The blueprint for future-proofing your commerce strategy.' || t.startsWith('The blueprint for future-proofing your commerce strategy.'))).toBeTruthy();
  });
  test('solutions_for_food_grocery: h2 "One commerce solution for ever"', async ({ page }) => {
    await page.goto('/solutions/for-food-grocery/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'One commerce solution for every digital opportunity.' || t.startsWith('One commerce solution for every digital opportunity.'))).toBeTruthy();
  });
  test('solutions_for_food_grocery: h2 "The gourmet eCommerce experien"', async ({ page }) => {
    await page.goto('/solutions/for-food-grocery/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The gourmet eCommerce experience built for grocery brands.' || t.startsWith('The gourmet eCommerce experience built for grocery brands.'))).toBeTruthy();
  });
  test('solutions_for_food_grocery: nav link "Customers"', async ({ page }) => {
    await page.goto('/solutions/for-food-grocery/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_food_grocery: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/solutions/for-food-grocery/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_food_grocery: nav link "Kartova posts robust Q1 2026 m"', async ({ page }) => {
    await page.goto('/solutions/for-food-grocery/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 momentum, crossing the \$100B GM' || t.startsWith('Kartova posts robust Q1 2026 momentum, crossing the \$100B GM')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_food_grocery: nav link "Seeing retail anew: how comput"', async ({ page }) => {
    await page.goto('/solutions/for-food-grocery/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seeing retail anew: how computer vision and AI are transform' || t.startsWith('Seeing retail anew: how computer vision and AI are transform')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - solutions_for_healthcare', () => {
  test('solutions_for_healthcare: title matches GT', async ({ page }) => {
    await page.goto('/solutions/for-healthcare/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova enterprise commerce solutions fo');
  });
  test('solutions_for_healthcare: h1 "Connected patient journeys, de"', async ({ page }) => {
    await page.goto('/solutions/for-healthcare/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Connected patient journeys, delivered at the speed of care.' || t.startsWith('Connected patient journeys, delivered at the speed of care.'))).toBeTruthy();
  });
  test('solutions_for_healthcare: h2 "The commerce platform relied o"', async ({ page }) => {
    await page.goto('/solutions/for-healthcare/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The commerce platform relied on by 50+ healthcare organizations' || t.startsWith('The commerce platform relied on by 50+ healthcare organizations'))).toBeTruthy();
  });
  test('solutions_for_healthcare: h2 "Rethinking healthcare with mod"', async ({ page }) => {
    await page.goto('/solutions/for-healthcare/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Rethinking healthcare with modern digital commerce.' || t.startsWith('Rethinking healthcare with modern digital commerce.'))).toBeTruthy();
  });
  test('solutions_for_healthcare: h2 "A clean bill of technical heal"', async ({ page }) => {
    await page.goto('/solutions/for-healthcare/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A clean bill of technical health. Powered by composable commerce.' || t.startsWith('A clean bill of technical health. Powered by composable commerce.'))).toBeTruthy();
  });
  test('solutions_for_healthcare: nav link "Customers"', async ({ page }) => {
    await page.goto('/solutions/for-healthcare/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_healthcare: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/solutions/for-healthcare/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_healthcare: nav link "Kartova reports strong Q1 2026"', async ({ page }) => {
    await page.goto('/solutions/for-healthcare/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, surpassing the \$100B ' || t.startsWith('Kartova reports strong Q1 2026 growth, surpassing the \$100B ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_healthcare: nav link "Through the lens of AI: how co"', async ({ page }) => {
    await page.goto('/solutions/for-healthcare/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Through the lens of AI: how computer vision is transforming ' || t.startsWith('Through the lens of AI: how computer vision is transforming ')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - solutions_for_retail', () => {
  test('solutions_for_retail: title matches GT', async ({ page }) => {
    await page.goto('/solutions/for-retail/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova enterprise commerce solutions fo');
  });
  test('solutions_for_retail: h1 "Retail simply runs better on K"', async ({ page }) => {
    await page.goto('/solutions/for-retail/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Retail simply runs better on Kartova' || t.startsWith('Retail simply runs better on Kartova'))).toBeTruthy();
  });
  test('solutions_for_retail: h2 "We help retailers move ahead, "', async ({ page }) => {
    await page.goto('/solutions/for-retail/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'We help retailers move ahead, stand apart — and run their business smarter.' || t.startsWith('We help retailers move ahead, stand apart — and run their business smarter.'))).toBeTruthy();
  });
  test('solutions_for_retail: h2 "Retailers that reshaped what c"', async ({ page }) => {
    await page.goto('/solutions/for-retail/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Retailers that reshaped what commerce can be — and what it can deliver.' || t.startsWith('Retailers that reshaped what commerce can be — and what it can deliver.'))).toBeTruthy();
  });
  test('solutions_for_retail: h2 "Frostvale Foods"', async ({ page }) => {
    await page.goto('/solutions/for-retail/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Frostvale Foods' || t.startsWith('Frostvale Foods'))).toBeTruthy();
  });
  test('solutions_for_retail: nav link "Customers"', async ({ page }) => {
    await page.goto('/solutions/for-retail/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_retail: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/solutions/for-retail/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_retail: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/solutions/for-retail/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, crossing the \$100B GMV' || t.startsWith('Kartova posts robust Q1 2026 results, crossing the \$100B GMV')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_retail: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/solutions/for-retail/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the mod' || t.startsWith('Seen through AI: how computer vision is transforming the mod')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - solutions_for_telecommunications', () => {
  test('solutions_for_telecommunications: title matches GT', async ({ page }) => {
    await page.goto('/solutions/for-telecommunications/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('kartova enterprise solutions for telecom');
  });
  test('solutions_for_telecommunications: h1 "Grow past connectivity with tr"', async ({ page }) => {
    await page.goto('/solutions/for-telecommunications/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Grow past connectivity with truly composable commerce' || t.startsWith('Grow past connectivity with truly composable commerce'))).toBeTruthy();
  });
  test('solutions_for_telecommunications: h2 "Time for a rethink"', async ({ page }) => {
    await page.goto('/solutions/for-telecommunications/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Time for a rethink' || t.startsWith('Time for a rethink'))).toBeTruthy();
  });
  test('solutions_for_telecommunications: h2 "A platform built for exactly w"', async ({ page }) => {
    await page.goto('/solutions/for-telecommunications/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A platform built for exactly what telcos need' || t.startsWith('A platform built for exactly what telcos need'))).toBeTruthy();
  });
  test('solutions_for_telecommunications: h2 "Composable, and connected"', async ({ page }) => {
    await page.goto('/solutions/for-telecommunications/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Composable, and connected' || t.startsWith('Composable, and connected'))).toBeTruthy();
  });
  test('solutions_for_telecommunications: nav link "Customers"', async ({ page }) => {
    await page.goto('/solutions/for-telecommunications/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_telecommunications: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/solutions/for-telecommunications/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_telecommunications: nav link "Kartova reports strong Q1 2026"', async ({ page }) => {
    await page.goto('/solutions/for-telecommunications/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova reports strong Q1 2026 growth, breaking past the \$10' || t.startsWith('Kartova reports strong Q1 2026 growth, breaking past the \$10')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('solutions_for_telecommunications: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/solutions/for-telecommunications/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is transforming the mod' || t.startsWith('Seen through AI: how computer vision is transforming the mod')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - technology_trust_center', () => {
  test('technology_trust_center: title matches GT', async ({ page }) => {
    await page.goto('/technology/trust-center/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('trust center');
  });
  test('technology_trust_center: h1 "Your trust powers everything w"', async ({ page }) => {
    await page.goto('/technology/trust-center/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Your trust powers everything we build' || t.startsWith('Your trust powers everything we build'))).toBeTruthy();
  });
  test('technology_trust_center: h2 "Security Culture"', async ({ page }) => {
    await page.goto('/technology/trust-center/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Security Culture' || t.startsWith('Security Culture'))).toBeTruthy();
  });
  test('technology_trust_center: h2 "Business Continuity Management"', async ({ page }) => {
    await page.goto('/technology/trust-center/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Business Continuity Management (BCM)' || t.startsWith('Business Continuity Management (BCM)'))).toBeTruthy();
  });
  test('technology_trust_center: h2 "Performance Management"', async ({ page }) => {
    await page.goto('/technology/trust-center/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Performance Management' || t.startsWith('Performance Management'))).toBeTruthy();
  });
  test('technology_trust_center: nav link "Customers"', async ({ page }) => {
    await page.goto('/technology/trust-center/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Customers' || t.startsWith('Customers')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('customer-stories')), 'href fragment present').toBeTruthy();
  });
  test('technology_trust_center: nav link "Start Free Trial"', async ({ page }) => {
    await page.goto('/technology/trust-center/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Start Free Trial' || t.startsWith('Start Free Trial')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('free-trial')), 'href fragment present').toBeTruthy();
  });
  test('technology_trust_center: nav link "Kartova posts robust Q1 2026 r"', async ({ page }) => {
    await page.goto('/technology/trust-center/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kartova posts robust Q1 2026 results, pushing past the \$100B' || t.startsWith('Kartova posts robust Q1 2026 results, pushing past the \$100B')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('kartova-reports-strong-q1-2026')), 'href fragment present').toBeTruthy();
  });
  test('technology_trust_center: nav link "Seen through AI: how computer "', async ({ page }) => {
    await page.goto('/technology/trust-center/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Seen through AI: how computer vision is turning retail on it' || t.startsWith('Seen through AI: how computer vision is turning retail on it')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('computer-vision-in-retail')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - Routing', () => {
  test('navigate to press_releases_kartova_reports_strong_q1_2026 via "Kartova crosses \$100B GMV run-"', async ({ page }) => {
    await page.goto('/');
    const link = page.locator('a[href*="kartova-reports-strong-q1-2026"]').first();
    expect(await link.count(), 'nav link to press_releases_kartova_reports_strong_q1_2026 exists').toBeGreaterThan(0);
    await link.click();
    await page.waitForTimeout(1200);
    expect(page.url().toLowerCase(), 'URL changed to destination').toContain('kartova-reports-strong-q1-2026');
    const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
    expect(bodyText, 'destination distinctive content shown').toContain('Kartova reports strong Q1 2026 growth, surpassing the \$100B ');
  });
  test('navigate to customer_stories via "Customers"', async ({ page }) => {
    await page.goto('/');
    const link = page.locator('a[href*="customer-stories"]').first();
    expect(await link.count(), 'nav link to customer_stories exists').toBeGreaterThan(0);
    await link.click();
    await page.waitForTimeout(1200);
    expect(page.url().toLowerCase(), 'URL changed to destination').toContain('customer-stories');
    const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
    expect(bodyText, 'destination distinctive content shown').toContain('Backed by industry leaders. Built to accelerate growth.');
  });
  test('navigate to free_trial via "Start Free Trial"', async ({ page }) => {
    await page.goto('/');
    const link = page.locator('a[href*="free-trial"]').first();
    expect(await link.count(), 'nav link to free_trial exists').toBeGreaterThan(0);
    await link.click();
    await page.waitForTimeout(1200);
    expect(page.url().toLowerCase(), 'URL changed to destination').toContain('free-trial');
    const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
    expect(bodyText, 'destination distinctive content shown').toContain('Start building with Kartova, completely free');
  });
});