File size: 191,497 Bytes
1c5f5f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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('distributed deep learning and hyperparam');
  });
  test('homepage: h1 "Scale to any size"', async ({ page }) => {
    await page.goto('/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Scale to any size' || t.startsWith('Scale to any size'))).toBeTruthy();
  });
  test('homepage: h1 "Sweep hyperparameters"', async ({ page }) => {
    await page.goto('/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Sweep hyperparameters' || t.startsWith('Sweep hyperparameters'))).toBeTruthy();
  });
  test('homepage: h1 "Explore your results"', async ({ page }) => {
    await page.goto('/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Explore your results' || t.startsWith('Explore your results'))).toBeTruthy();
  });
  test('homepage: h1 "Share your GPU cluster"', async ({ page }) => {
    await page.goto('/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Share your GPU cluster' || t.startsWith('Share your GPU cluster'))).toBeTruthy();
  });
  test('homepage: nav link "Platform"', 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 === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - about', () => {
  test('about: title matches GT', async ({ page }) => {
    await page.goto('/about/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('about gradyn');
  });
  test('about: h1 "Our story"', async ({ page }) => {
    await page.goto('/about/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Our story' || t.startsWith('Our story'))).toBeTruthy();
  });
  test('about: h1 "Advisors"', async ({ page }) => {
    await page.goto('/about/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Advisors' || t.startsWith('Advisors'))).toBeTruthy();
  });
  test('about: h1 "Our Location"', async ({ page }) => {
    await page.goto('/about/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Our Location' || t.startsWith('Our Location'))).toBeTruthy();
  });
  test('about: nav link "Product"', async ({ page }) => {
    await page.goto('/about/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('about: nav link "News"', async ({ page }) => {
    await page.goto('/about/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'News' || t.startsWith('News')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
  });
  test('about: nav link "Community"', async ({ page }) => {
    await page.goto('/about/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Community' || t.startsWith('Community')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('resources')), '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('careers');
  });
  test('careers: h1 "Help shape the future of ML"', 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 === 'Help shape the future of ML' || t.startsWith('Help shape the future of ML'))).toBeTruthy();
  });
  test('careers: h1 "Life on the platform team at G"', 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 === 'Life on the platform team at Gradyn' || t.startsWith('Life on the platform team at Gradyn'))).toBeTruthy();
  });
  test('careers: h1 "Benefits"', 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 === 'Benefits' || t.startsWith('Benefits'))).toBeTruthy();
  });
  test('careers: h2 "Come build alongside a crew of"', 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 === 'Come build alongside a crew of deep engineers working across machine learning and distributed traini' || t.startsWith('Come build alongside a crew of deep engineers working across machine learning and distributed traini'))).toBeTruthy();
  });
  test('careers: nav link "Project"', 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 === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - cla', () => {
  test('cla: title matches GT', async ({ page }) => {
    await page.goto('/cla/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('gradyn contributor agreements');
  });
  test('cla: h1 "Gradyn Contributor License Agr"', async ({ page }) => {
    await page.goto('/cla/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn Contributor License Agreements' || t.startsWith('Gradyn Contributor License Agreements'))).toBeTruthy();
  });
  test('cla: h2 "Individual Contributors"', async ({ page }) => {
    await page.goto('/cla/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Individual Contributors' || t.startsWith('Individual Contributors'))).toBeTruthy();
  });
  test('cla: h2 "Corporate Contributors"', async ({ page }) => {
    await page.goto('/cla/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Corporate Contributors' || t.startsWith('Corporate Contributors'))).toBeTruthy();
  });
  test('cla: h2 "How-To: Sending Your Signed Li"', async ({ page }) => {
    await page.goto('/cla/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How-To: Sending Your Signed License Agreements' || t.startsWith('How-To: Sending Your Signed License Agreements'))).toBeTruthy();
  });
  test('cla: nav link "Project"', async ({ page }) => {
    await page.goto('/cla/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - contact', () => {
  test('contact: title matches GT', async ({ page }) => {
    await page.goto('/contact/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('get in touch');
  });
  test('contact: h1 "Connect"', async ({ page }) => {
    await page.goto('/contact/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Connect' || t.startsWith('Connect'))).toBeTruthy();
  });
  test('contact: h1 "Join the Community"', async ({ page }) => {
    await page.goto('/contact/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Join the Community' || t.startsWith('Join the Community'))).toBeTruthy();
  });
  test('contact: h1 "Enterprise Support"', async ({ page }) => {
    await page.goto('/contact/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Enterprise Support' || t.startsWith('Enterprise Support'))).toBeTruthy();
  });
  test('contact: nav link "Platform"', async ({ page }) => {
    await page.goto('/contact/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('contact: nav link "News"', async ({ page }) => {
    await page.goto('/contact/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'News' || t.startsWith('News')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
  });
  test('contact: nav link "Community"', async ({ page }) => {
    await page.goto('/contact/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Community' || t.startsWith('Community')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('resources')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - press', () => {
  test('press: title matches GT', async ({ page }) => {
    await page.goto('/press/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('press & news');
  });
  test('press: h2 "Why the Next Decade of AI Has "', async ({ page }) => {
    await page.goto('/press/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Why the Next Decade of AI Has to Turn Green, Fast' || t.startsWith('Why the Next Decade of AI Has to Turn Green, Fast'))).toBeTruthy();
  });
  test('press: h2 "AI Can Achieve Great Things, i"', async ({ page }) => {
    await page.goto('/press/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'AI Can Achieve Great Things, if It Won\'t Cook the Planet' || t.startsWith('AI Can Achieve Great Things, if It Won\'t Cook the Planet'))).toBeTruthy();
  });
  test('press: h2 "Forecasts Across AI, DL, And M"', async ({ page }) => {
    await page.goto('/press/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Forecasts Across AI, DL, And ML' || t.startsWith('Forecasts Across AI, DL, And ML'))).toBeTruthy();
  });
  test('press: nav link "Project"', async ({ page }) => {
    await page.goto('/press/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - privacy', () => {
  test('privacy: title matches GT', async ({ page }) => {
    await page.goto('/privacy/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('privacy policy');
  });
  test('privacy: h1 "Gradyn Privacy Policy"', async ({ page }) => {
    await page.goto('/privacy/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn Privacy Policy' || t.startsWith('Gradyn Privacy Policy'))).toBeTruthy();
  });
  test('privacy: nav link "Project"', async ({ page }) => {
    await page.goto('/privacy/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - project', () => {
  test('project: title matches GT', async ({ page }) => {
    await page.goto('/project/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('high');
  });
  test('project: h1 "Focus on models, not machines."', async ({ page }) => {
    await page.goto('/project/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Focus on models, not machines.' || t.startsWith('Focus on models, not machines.'))).toBeTruthy();
  });
  test('project: h1 "Deliver your models sooner and"', async ({ page }) => {
    await page.goto('/project/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Deliver your models sooner and simpler' || t.startsWith('Deliver your models sooner and simpler'))).toBeTruthy();
  });
  test('project: h1 "Our Platform is Transparent, C"', async ({ page }) => {
    await page.goto('/project/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Our Platform is Transparent, Collaborative, and Open' || t.startsWith('Our Platform is Transparent, Collaborative, and Open'))).toBeTruthy();
  });
  test('project: h1 "Join Our Community"', async ({ page }) => {
    await page.goto('/project/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Join Our Community' || t.startsWith('Join Our Community'))).toBeTruthy();
  });
  test('project: nav link "Project"', async ({ page }) => {
    await page.goto('/project/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), '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('resources');
  });
  test('resources: h1 "Case Studies"', 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 === 'Case Studies' || t.startsWith('Case Studies'))).toBeTruthy();
  });
  test('resources: h1 "Recent Posts"', 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 === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('resources: h1 "Recordings"', 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 === 'Recordings' || t.startsWith('Recordings'))).toBeTruthy();
  });
  test('resources: nav link "Project"', 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 === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_adaptive_asha', () => {
  test('blog_adaptive_asha: title matches GT', async ({ page }) => {
    await page.goto('/blog/adaptive-asha/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('adaptive asha explained with a nationwid');
  });
  test('blog_adaptive_asha: h1 "Adaptive ASHA Explained with a"', async ({ page }) => {
    await page.goto('/blog/adaptive-asha/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Adaptive ASHA Explained with a Talent Showdown' || t.startsWith('Adaptive ASHA Explained with a Talent Showdown'))).toBeTruthy();
  });
  test('blog_adaptive_asha: h1 "Latest Articles"', async ({ page }) => {
    await page.goto('/blog/adaptive-asha/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Articles' || t.startsWith('Latest Articles'))).toBeTruthy();
  });
  test('blog_adaptive_asha: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/adaptive-asha/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_ai_chips_in_the_real_world_recap', () => {
  test('blog_ai_chips_in_the_real_world_recap: title matches GT', async ({ page }) => {
    await page.goto('/blog/ai-chips-in-the-real-world-recap/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('specialized ai silicon in practice');
  });
  test('blog_ai_chips_in_the_real_world_recap: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/ai-chips-in-the-real-world-recap/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_ai_chips_in_the_real_world_recap: h2 "Optimizing Workloads: The Pree"', async ({ page }) => {
    await page.goto('/blog/ai-chips-in-the-real-world-recap/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Optimizing Workloads: The Preemption Puzzle, Finally Solved by Gradyn' || t.startsWith('Optimizing Workloads: The Preemption Puzzle, Finally Solved by Gradyn'))).toBeTruthy();
  });
  test('blog_ai_chips_in_the_real_world_recap: h2 "Develop and debug your code lo"', async ({ page }) => {
    await page.goto('/blog/ai-chips-in-the-real-world-recap/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Develop and debug your code locally with the PyTorch Trainer API' || t.startsWith('Develop and debug your code locally with the PyTorch Trainer API'))).toBeTruthy();
  });
  test('blog_ai_chips_in_the_real_world_recap: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/ai-chips-in-the-real-world-recap/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_ai_in_the_2020s_must_get_greener_and_heres_how', () => {
  test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: title matches GT', async ({ page }) => {
    await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('sustainable ai is the defining challenge');
  });
  test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: h1 "Why Machine Learning Must Get "', async ({ page }) => {
    await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Why Machine Learning Must Get Far More Efficient' || t.startsWith('Why Machine Learning Must Get Far More Efficient'))).toBeTruthy();
  });
  test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: h2 "Pursuing energy-efficient “Gre"', async ({ page }) => {
    await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Pursuing energy-efficient “Green AI” calls for brand-new strategies' || t.startsWith('Pursuing energy-efficient “Green AI” calls for brand-new strategies'))).toBeTruthy();
  });
  test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: h2 "Red AI Has Real Value"', async ({ page }) => {
    await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Red AI Has Real Value' || t.startsWith('Red AI Has Real Value'))).toBeTruthy();
  });
  test('blog_ai_in_the_2020s_must_get_greener_and_heres_how: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/ai-in-the-2020s-must-get-greener-and-heres-how/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health', () => {
  test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: title matches GT', async ({ page }) => {
    await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('how ai leadership can strengthen the eco');
  });
  test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: h2 "Gradyn Core v0.28.1"', async ({ page }) => {
    await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn Core v0.28.1' || t.startsWith('Gradyn Core v0.28.1'))).toBeTruthy();
  });
  test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: h2 "Gradyn Core v0.28.0"', async ({ page }) => {
    await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn Core v0.28.0' || t.startsWith('Gradyn Core v0.28.0'))).toBeTruthy();
  });
  test('blog_ai_leadership_and_the_positive_impacts_on_economy_privacy_environmental_health: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/ai-leadership-and-the-positive-impacts-on-economy-privacy-environmental-health/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast', () => {
  test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: title matches GT', async ({ page }) => {
    await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('marek vance on programmatic data labelin');
  });
  test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: h2 "How does data parallelism work"', async ({ page }) => {
    await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How does data parallelism work?' || t.startsWith('How does data parallelism work?'))).toBeTruthy();
  });
  test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: h2 "Sharding Optimizer State Acros"', async ({ page }) => {
    await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Sharding Optimizer State Across Four Practical Tiers' || t.startsWith('Sharding Optimizer State Across Four Practical Tiers'))).toBeTruthy();
  });
  test('blog_alex_ratner_programmatic_data_labeling_machine_learning_podcast: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/alex-ratner-programmatic-data-labeling-machine-learning-podcast/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_announcing_the_gradyn_model_registry', () => {
  test('blog_announcing_the_gradyn_model_registry: title matches GT', async ({ page }) => {
    await page.goto('/blog/announcing-the-gradyn-model-registry/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('ship models faster with gradyn\'s new mod');
  });
  test('blog_announcing_the_gradyn_model_registry: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/announcing-the-gradyn-model-registry/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_announcing_the_gradyn_model_registry: h2 "Closing the Distance Between R"', async ({ page }) => {
    await page.goto('/blog/announcing-the-gradyn-model-registry/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Closing the Distance Between Research and Production' || t.startsWith('Closing the Distance Between Research and Production'))).toBeTruthy();
  });
  test('blog_announcing_the_gradyn_model_registry: h2 "Production-Ready Models with t"', async ({ page }) => {
    await page.goto('/blog/announcing-the-gradyn-model-registry/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Production-Ready Models with the Model Registry' || t.startsWith('Production-Ready Models with the Model Registry'))).toBeTruthy();
  });
  test('blog_announcing_the_gradyn_model_registry: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/announcing-the-gradyn-model-registry/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_announcing_the_gradyn_model_registry: footer link "Product"', async ({ page }) => {
    await page.goto('/blog/announcing-the-gradyn-model-registry/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_apis', () => {
  test('blog_apis: title matches GT', async ({ page }) => {
    await page.goto('/blog/apis/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('6 gradyn apis explained');
  });
  test('blog_apis: h1 "6 Key Gradyn APIs Explained"', async ({ page }) => {
    await page.goto('/blog/apis/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '6 Key Gradyn APIs Explained' || t.startsWith('6 Key Gradyn APIs Explained'))).toBeTruthy();
  });
  test('blog_apis: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/apis/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_apis: h2 "Trial API"', async ({ page }) => {
    await page.goto('/blog/apis/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Trial API' || t.startsWith('Trial API'))).toBeTruthy();
  });
  test('blog_apis: h2 "Core API"', async ({ page }) => {
    await page.goto('/blog/apis/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core API' || t.startsWith('Core API'))).toBeTruthy();
  });
  test('blog_apis: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/apis/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_building_an_enterprise_deep_learning_platform', () => {
  test('blog_building_an_enterprise_deep_learning_platform: title matches GT', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('designing an enterprise deep learning pl');
  });
  test('blog_building_an_enterprise_deep_learning_platform: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform: h2 "What Your Deep Learning Platfo"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'What Your Deep Learning Platform Must Include' || t.startsWith('What Your Deep Learning Platform Must Include'))).toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform: h2 "Gradyn v0.31.0"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn v0.31.0' || t.startsWith('Gradyn v0.31.0'))).toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform: footer link "Platform"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_building_an_enterprise_deep_learning_platform_2', () => {
  test('blog_building_an_enterprise_deep_learning_platform_2: title matches GT', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('how to stand up an enterprise deep learn');
  });
  test('blog_building_an_enterprise_deep_learning_platform_2: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform_2: h2 "Building the ML backbone"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Building the ML backbone' || t.startsWith('Building the ML backbone'))).toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform_2: h2 "Assembling your Software Layer"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Assembling your Software Layer' || t.startsWith('Assembling your Software Layer'))).toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform_2: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-2/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_building_an_enterprise_deep_learning_platform_3', () => {
  test('blog_building_an_enterprise_deep_learning_platform_3: title matches GT', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('assembling a production');
  });
  test('blog_building_an_enterprise_deep_learning_platform_3: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform_3: h2 "Nimbus 7B vs. Terra 7B: Head-t"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Nimbus 7B vs. Terra 7B: Head-to-Head in the Foundry studio' || t.startsWith('Nimbus 7B vs. Terra 7B: Head-to-Head in the Foundry studio'))).toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform_3: h2 "Tensor Parallelism: What is it"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Tensor Parallelism: What is it?' || t.startsWith('Tensor Parallelism: What is it?'))).toBeTruthy();
  });
  test('blog_building_an_enterprise_deep_learning_platform_3: nav link "Platform"', async ({ page }) => {
    await page.goto('/blog/building-an-enterprise-deep-learning-platform-3/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_cloud_v_onprem', () => {
  test('blog_cloud_v_onprem: title matches GT', async ({ page }) => {
    await page.goto('/blog/cloud-v-onprem/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('picking the right deep learning infrastr');
  });
  test('blog_cloud_v_onprem: h1 "Selecting Deep Learning Infras"', async ({ page }) => {
    await page.goto('/blog/cloud-v-onprem/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Selecting Deep Learning Infrastructure: The Cloud vs. On-Prem Debate' || t.startsWith('Selecting Deep Learning Infrastructure: The Cloud vs. On-Prem Debate'))).toBeTruthy();
  });
  test('blog_cloud_v_onprem: h1 "Performance"', async ({ page }) => {
    await page.goto('/blog/cloud-v-onprem/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Performance' || t.startsWith('Performance'))).toBeTruthy();
  });
  test('blog_cloud_v_onprem: h1 "The Cost"', async ({ page }) => {
    await page.goto('/blog/cloud-v-onprem/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The Cost' || t.startsWith('The Cost'))).toBeTruthy();
  });
  test('blog_cloud_v_onprem: h1 "Setup"', async ({ page }) => {
    await page.goto('/blog/cloud-v-onprem/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Setup' || t.startsWith('Setup'))).toBeTruthy();
  });
  test('blog_cloud_v_onprem: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/cloud-v-onprem/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_data_scientists_dont_care_about_kubernetes', () => {
  test('blog_data_scientists_dont_care_about_kubernetes: title matches GT', async ({ page }) => {
    await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('why kubernetes gets in the way of model ');
  });
  test('blog_data_scientists_dont_care_about_kubernetes: h1 "Data Scientists Would Rather S"', async ({ page }) => {
    await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Data Scientists Would Rather Skip Kubernetes' || t.startsWith('Data Scientists Would Rather Skip Kubernetes'))).toBeTruthy();
  });
  test('blog_data_scientists_dont_care_about_kubernetes: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_data_scientists_dont_care_about_kubernetes: h2 "Where ML Tooling Fails"', async ({ page }) => {
    await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Where ML Tooling Fails' || t.startsWith('Where ML Tooling Fails'))).toBeTruthy();
  });
  test('blog_data_scientists_dont_care_about_kubernetes: h2 "Principles of Good Data Scienc"', async ({ page }) => {
    await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Principles of Good Data Science Tools' || t.startsWith('Principles of Good Data Science Tools'))).toBeTruthy();
  });
  test('blog_data_scientists_dont_care_about_kubernetes: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/data-scientists-dont-care-about-kubernetes/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_data_version_control_gradyn', () => {
  test('blog_data_version_control_gradyn: title matches GT', async ({ page }) => {
    await page.goto('/blog/data-version-control-gradyn/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('version');
  });
  test('blog_data_version_control_gradyn: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/data-version-control-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_data_version_control_gradyn: h2 "Data Version Control"', async ({ page }) => {
    await page.goto('/blog/data-version-control-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Data Version Control' || t.startsWith('Data Version Control'))).toBeTruthy();
  });
  test('blog_data_version_control_gradyn: h2 "Setting Up DVC and Gradyn"', async ({ page }) => {
    await page.goto('/blog/data-version-control-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Setting Up DVC and Gradyn' || t.startsWith('Setting Up DVC and Gradyn'))).toBeTruthy();
  });
  test('blog_data_version_control_gradyn: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/data-version-control-gradyn/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_dave_patterson_podcast_new', () => {
  test('blog_dave_patterson_podcast_new: title matches GT', async ({ page }) => {
    await page.goto('/blog/dave-patterson-podcast-new/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('a conversation with marcus holloway');
  });
  test('blog_dave_patterson_podcast_new: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/dave-patterson-podcast-new/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_dave_patterson_podcast_new: h2 "Introducing the Gradyn Podcast"', async ({ page }) => {
    await page.goto('/blog/dave-patterson-podcast-new/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Introducing the Gradyn Podcast Series' || t.startsWith('Introducing the Gradyn Podcast Series'))).toBeTruthy();
  });
  test('blog_dave_patterson_podcast_new: h2 "Gradyn Core v0.31.0"', async ({ page }) => {
    await page.goto('/blog/dave-patterson-podcast-new/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn Core v0.31.0' || t.startsWith('Gradyn Core v0.31.0'))).toBeTruthy();
  });
  test('blog_dave_patterson_podcast_new: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/dave-patterson-podcast-new/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_deep_in_the_trenches_p1', () => {
  test('blog_deep_in_the_trenches_p1: title matches GT', async ({ page }) => {
    await page.goto('/blog/deep-in-the-trenches-p1/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('notes from the lab');
  });
  test('blog_deep_in_the_trenches_p1: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/deep-in-the-trenches-p1/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_deep_in_the_trenches_p1: h2 "Applications"', async ({ page }) => {
    await page.goto('/blog/deep-in-the-trenches-p1/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Applications' || t.startsWith('Applications'))).toBeTruthy();
  });
  test('blog_deep_in_the_trenches_p1: h2 "Methods"', async ({ page }) => {
    await page.goto('/blog/deep-in-the-trenches-p1/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Methods' || t.startsWith('Methods'))).toBeTruthy();
  });
  test('blog_deep_in_the_trenches_p1: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/deep-in-the-trenches-p1/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_deep_learning_tools_grad_students', () => {
  test('blog_deep_learning_tools_grad_students: title matches GT', async ({ page }) => {
    await page.goto('/blog/deep-learning-tools-grad-students/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('the deep learning platform we wish we\'d ');
  });
  test('blog_deep_learning_tools_grad_students: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/deep-learning-tools-grad-students/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_deep_learning_tools_grad_students: h2 "The way we ran deep learning r"', async ({ page }) => {
    await page.goto('/blog/deep-learning-tools-grad-students/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The way we ran deep learning research back in grad school' || t.startsWith('The way we ran deep learning research back in grad school'))).toBeTruthy();
  });
  test('blog_deep_learning_tools_grad_students: h2 "How Gradyn can transform the r"', async ({ page }) => {
    await page.goto('/blog/deep-learning-tools-grad-students/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How Gradyn can transform the research experience' || t.startsWith('How Gradyn can transform the research experience'))).toBeTruthy();
  });
  test('blog_deep_learning_tools_grad_students: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/deep-learning-tools-grad-students/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_deep_learning_tools_grad_students: footer link "Product"', async ({ page }) => {
    await page.goto('/blog/deep-learning-tools-grad-students/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_gradyn_ai_sagemaker_comparison', () => {
  test('blog_gradyn_ai_sagemaker_comparison: title matches GT', async ({ page }) => {
    await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('gradyn / cumulus ml comparison');
  });
  test('blog_gradyn_ai_sagemaker_comparison: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_gradyn_ai_sagemaker_comparison: h2 "Gradyn Studio is now available"', async ({ page }) => {
    await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn Studio is now available!' || t.startsWith('Gradyn Studio is now available!'))).toBeTruthy();
  });
  test('blog_gradyn_ai_sagemaker_comparison: h2 "Profiling Activation Memory in"', async ({ page }) => {
    await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Profiling Activation Memory in PyTorch Models' || t.startsWith('Profiling Activation Memory in PyTorch Models'))).toBeTruthy();
  });
  test('blog_gradyn_ai_sagemaker_comparison: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/gradyn-ai-sagemaker-comparison/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_gradyn_algorithmia_integration', () => {
  test('blog_gradyn_algorithmia_integration: title matches GT', async ({ page }) => {
    await page.goto('/blog/gradyn-algorithmia-integration/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('servio and gradyn');
  });
  test('blog_gradyn_algorithmia_integration: h1 "Recent Reads"', async ({ page }) => {
    await page.goto('/blog/gradyn-algorithmia-integration/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Reads' || t.startsWith('Recent Reads'))).toBeTruthy();
  });
  test('blog_gradyn_algorithmia_integration: h2 "An introduction to the Gradyn "', async ({ page }) => {
    await page.goto('/blog/gradyn-algorithmia-integration/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'An introduction to the Gradyn and Servio integration' || t.startsWith('An introduction to the Gradyn and Servio integration'))).toBeTruthy();
  });
  test('blog_gradyn_algorithmia_integration: h2 "Train on Gradyn, then deploy w"', async ({ page }) => {
    await page.goto('/blog/gradyn-algorithmia-integration/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Train on Gradyn, then deploy with Servio' || t.startsWith('Train on Gradyn, then deploy with Servio'))).toBeTruthy();
  });
  test('blog_gradyn_algorithmia_integration: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/gradyn-algorithmia-integration/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_gradyn_and_spark', () => {
  test('blog_gradyn_and_spark: title matches GT', async ({ page }) => {
    await page.goto('/blog/gradyn-and-spark/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('building end');
  });
  test('blog_gradyn_and_spark: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/gradyn-and-spark/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_gradyn_and_spark: h2 "Why Data Versioning Matters"', async ({ page }) => {
    await page.goto('/blog/gradyn-and-spark/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Why Data Versioning Matters' || t.startsWith('Why Data Versioning Matters'))).toBeTruthy();
  });
  test('blog_gradyn_and_spark: h2 "Preprocessing Data with Spark"', async ({ page }) => {
    await page.goto('/blog/gradyn-and-spark/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Preprocessing Data with Spark' || t.startsWith('Preprocessing Data with Spark'))).toBeTruthy();
  });
  test('blog_gradyn_and_spark: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/gradyn-and-spark/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_gradyn_community_sync', () => {
  test('blog_gradyn_community_sync: title matches GT', async ({ page }) => {
    await page.goto('/blog/gradyn-community-sync/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('inside our first');
  });
  test('blog_gradyn_community_sync: h1 "Our First-Ever Gradyn Communit"', async ({ page }) => {
    await page.goto('/blog/gradyn-community-sync/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Our First-Ever Gradyn Community Sync' || t.startsWith('Our First-Ever Gradyn Community Sync'))).toBeTruthy();
  });
  test('blog_gradyn_community_sync: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/gradyn-community-sync/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_gradyn_community_sync: h2 "An Open Welcome"', async ({ page }) => {
    await page.goto('/blog/gradyn-community-sync/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'An Open Welcome' || t.startsWith('An Open Welcome'))).toBeTruthy();
  });
  test('blog_gradyn_community_sync: h2 "The Community Roundtable"', async ({ page }) => {
    await page.goto('/blog/gradyn-community-sync/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The Community Roundtable' || t.startsWith('The Community Roundtable'))).toBeTruthy();
  });
  test('blog_gradyn_community_sync: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/gradyn-community-sync/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_gradyn_kubeflow_comparison', () => {
  test('blog_gradyn_kubeflow_comparison: title matches GT', async ({ page }) => {
    await page.goto('/blog/gradyn-kubeflow-comparison/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('gradyn and fluxboard');
  });
  test('blog_gradyn_kubeflow_comparison: h1 "Gradyn and Fluxboard: Stronger"', async ({ page }) => {
    await page.goto('/blog/gradyn-kubeflow-comparison/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn and Fluxboard: Stronger When Combined!' || t.startsWith('Gradyn and Fluxboard: Stronger When Combined!'))).toBeTruthy();
  });
  test('blog_gradyn_kubeflow_comparison: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/gradyn-kubeflow-comparison/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_gradyn_kubeflow_comparison: h2 "Making Sense of Fluxboard’s Ma"', async ({ page }) => {
    await page.goto('/blog/gradyn-kubeflow-comparison/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Making Sense of Fluxboard’s Many Components' || t.startsWith('Making Sense of Fluxboard’s Many Components'))).toBeTruthy();
  });
  test('blog_gradyn_kubeflow_comparison: h2 "How Fluxboard and Gradyn Stack"', async ({ page }) => {
    await page.goto('/blog/gradyn-kubeflow-comparison/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How Fluxboard and Gradyn Stack Up for Model Training' || t.startsWith('How Fluxboard and Gradyn Stack Up for Model Training'))).toBeTruthy();
  });
  test('blog_gradyn_kubeflow_comparison: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/gradyn-kubeflow-comparison/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_gradyn_on_kubernetes', () => {
  test('blog_gradyn_on_kubernetes: title matches GT', async ({ page }) => {
    await page.goto('/blog/gradyn-on-kubernetes/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('gradyn now natively supports kubernetes!');
  });
  test('blog_gradyn_on_kubernetes: h1 "Gradyn Now Supports Kubernetes"', async ({ page }) => {
    await page.goto('/blog/gradyn-on-kubernetes/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn Now Supports Kubernetes!' || t.startsWith('Gradyn Now Supports Kubernetes!'))).toBeTruthy();
  });
  test('blog_gradyn_on_kubernetes: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/gradyn-on-kubernetes/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_gradyn_on_kubernetes: h2 "Why Run Deep Learning on Kuber"', async ({ page }) => {
    await page.goto('/blog/gradyn-on-kubernetes/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Why Run Deep Learning on Kubernetes?' || t.startsWith('Why Run Deep Learning on Kubernetes?'))).toBeTruthy();
  });
  test('blog_gradyn_on_kubernetes: h2 "Gradyn on Kubernetes"', async ({ page }) => {
    await page.goto('/blog/gradyn-on-kubernetes/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn on Kubernetes' || t.startsWith('Gradyn on Kubernetes'))).toBeTruthy();
  });
  test('blog_gradyn_on_kubernetes: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/gradyn-on-kubernetes/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_distributed_deep_learning_that_actually_works', () => {
  test('blog_distributed_deep_learning_that_actually_works: title matches GT', async ({ page }) => {
    await page.goto('/blog/distributed-deep-learning-that-actually-works/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('making multi');
  });
  test('blog_distributed_deep_learning_that_actually_works: h1 "Distributed Deep Learning You "', async ({ page }) => {
    await page.goto('/blog/distributed-deep-learning-that-actually-works/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Distributed Deep Learning You Can Rely On' || t.startsWith('Distributed Deep Learning You Can Rely On'))).toBeTruthy();
  });
  test('blog_distributed_deep_learning_that_actually_works: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/distributed-deep-learning-that-actually-works/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_distributed_deep_learning_that_actually_works: h2 "Groundwork"', async ({ page }) => {
    await page.goto('/blog/distributed-deep-learning-that-actually-works/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Groundwork' || t.startsWith('Groundwork'))).toBeTruthy();
  });
  test('blog_distributed_deep_learning_that_actually_works: h2 "The Communication Ceiling"', async ({ page }) => {
    await page.goto('/blog/distributed-deep-learning-that-actually-works/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The Communication Ceiling' || t.startsWith('The Communication Ceiling'))).toBeTruthy();
  });
  test('blog_distributed_deep_learning_that_actually_works: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/distributed-deep-learning-that-actually-works/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_distributed_deep_learning_that_actually_works: footer link "Product"', async ({ page }) => {
    await page.goto('/blog/distributed-deep-learning-that-actually-works/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_epoch_based_metrics', () => {
  test('blog_epoch_based_metrics: title matches GT', async ({ page }) => {
    await page.goto('/blog/epoch-based-metrics/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('viewing epoch');
  });
  test('blog_epoch_based_metrics: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/epoch-based-metrics/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_epoch_based_metrics: h2 "Fresh walkthrough on reading e"', async ({ page }) => {
    await page.goto('/blog/epoch-based-metrics/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Fresh walkthrough on reading epoch-based metrics in the Gradyn WebUI' || t.startsWith('Fresh walkthrough on reading epoch-based metrics in the Gradyn WebUI'))).toBeTruthy();
  });
  test('blog_epoch_based_metrics: h2 "Tackling Cluster Efficiency: H"', async ({ page }) => {
    await page.goto('/blog/epoch-based-metrics/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Tackling Cluster Efficiency: How Gradyn Cracks the Preemption Riddle' || t.startsWith('Tackling Cluster Efficiency: How Gradyn Cracks the Preemption Riddle'))).toBeTruthy();
  });
  test('blog_epoch_based_metrics: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/epoch-based-metrics/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_faster_nlp_with_deep_learning_distributed_training', () => {
  test('blog_faster_nlp_with_deep_learning_distributed_training: title matches GT', async ({ page }) => {
    await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('accelerating nlp deep learning with dist');
  });
  test('blog_faster_nlp_with_deep_learning_distributed_training: h1 "Speeding Up NLP Deep Learning "', async ({ page }) => {
    await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Speeding Up NLP Deep Learning with Distributed Training' || t.startsWith('Speeding Up NLP Deep Learning with Distributed Training'))).toBeTruthy();
  });
  test('blog_faster_nlp_with_deep_learning_distributed_training: h1 "Newest Posts"', async ({ page }) => {
    await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Newest Posts' || t.startsWith('Newest Posts'))).toBeTruthy();
  });
  test('blog_faster_nlp_with_deep_learning_distributed_training: h2 "Nimbus 7B vs. Terra 7B: Head-t"', async ({ page }) => {
    await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Nimbus 7B vs. Terra 7B: Head-to-Head inside GenAI studio' || t.startsWith('Nimbus 7B vs. Terra 7B: Head-to-Head inside GenAI studio'))).toBeTruthy();
  });
  test('blog_faster_nlp_with_deep_learning_distributed_training: h2 "Activation Memory: A Quick Pri"', async ({ page }) => {
    await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Activation Memory: A Quick Primer' || t.startsWith('Activation Memory: A Quick Primer'))).toBeTruthy();
  });
  test('blog_faster_nlp_with_deep_learning_distributed_training: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_faster_nlp_with_deep_learning_distributed_training: footer link "Product"', async ({ page }) => {
    await page.goto('/blog/faster-nlp-with-deep-learning-distributed-training/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_fine_tune_bert', () => {
  test('blog_fine_tune_bert: title matches GT', async ({ page }) => {
    await page.goto('/blog/fine-tune-bert/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('fine');
  });
  test('blog_fine_tune_bert: h2 "Running It Locally First"', async ({ page }) => {
    await page.goto('/blog/fine-tune-bert/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Running It Locally First' || t.startsWith('Running It Locally First'))).toBeTruthy();
  });
  test('blog_fine_tune_bert: h2 "Go Further With Gradyn"', async ({ page }) => {
    await page.goto('/blog/fine-tune-bert/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Go Further With Gradyn' || t.startsWith('Go Further With Gradyn'))).toBeTruthy();
  });
  test('blog_fine_tune_bert: h2 "Running BERT Across Many GPUs."', async ({ page }) => {
    await page.goto('/blog/fine-tune-bert/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Running BERT Across Many GPUs.' || t.startsWith('Running BERT Across Many GPUs.'))).toBeTruthy();
  });
  test('blog_fine_tune_bert: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/fine-tune-bert/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_first_time_user_experience_gradyn', () => {
  test('blog_first_time_user_experience_gradyn: title matches GT', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('getting started with gradyn');
  });
  test('blog_first_time_user_experience_gradyn: h1 "Components"', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Components' || t.startsWith('Components'))).toBeTruthy();
  });
  test('blog_first_time_user_experience_gradyn: h1 "Installing Gradyn on Kubernete"', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Installing Gradyn on Kubernetes & Meridian Runtime Enterprise' || t.startsWith('Installing Gradyn on Kubernetes & Meridian Runtime Enterprise'))).toBeTruthy();
  });
  test('blog_first_time_user_experience_gradyn: h1 "Installing the Gradyn Command "', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Installing the Gradyn Command Line Interface' || t.startsWith('Installing the Gradyn Command Line Interface'))).toBeTruthy();
  });
  test('blog_first_time_user_experience_gradyn: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_first_time_user_experience_gradyn_part_2', () => {
  test('blog_first_time_user_experience_gradyn_part_2: title matches GT', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('getting up and running with gradyn');
  });
  test('blog_first_time_user_experience_gradyn_part_2: h1 "Getting Up and Running With Gr"', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Getting Up and Running With Gradyn: A Newcomer’s Hands-On Journey, Part Two' || t.startsWith('Getting Up and Running With Gradyn: A Newcomer’s Hands-On Journey, Part Two'))).toBeTruthy();
  });
  test('blog_first_time_user_experience_gradyn_part_2: h1 "Overview of the Gradyn model t"', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Overview of the Gradyn model training workflow' || t.startsWith('Overview of the Gradyn model training workflow'))).toBeTruthy();
  });
  test('blog_first_time_user_experience_gradyn_part_2: h1 "The use case and our model"', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The use case and our model' || t.startsWith('The use case and our model'))).toBeTruthy();
  });
  test('blog_first_time_user_experience_gradyn_part_2: h1 "Starting my first experiment o"', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Starting my first experiment on a single GPU' || t.startsWith('Starting my first experiment on a single GPU'))).toBeTruthy();
  });
  test('blog_first_time_user_experience_gradyn_part_2: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/first-time-user-experience-gradyn-part-2/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_gpu_cluster_p1', () => {
  test('blog_gpu_cluster_p1: title matches GT', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p1/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('how to squeeze real value from your gpu ');
  });
  test('blog_gpu_cluster_p1: h1 "How to squeeze real value from"', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p1/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How to squeeze real value from your GPU cluster for deep learning: part I' || t.startsWith('How to squeeze real value from your GPU cluster for deep learning: part I'))).toBeTruthy();
  });
  test('blog_gpu_cluster_p1: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p1/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_gpu_cluster_p1: h2 "Traditional Cluster Management"', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p1/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Traditional Cluster Management Software' || t.startsWith('Traditional Cluster Management Software'))).toBeTruthy();
  });
  test('blog_gpu_cluster_p1: h2 "What’s Missing?"', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p1/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'What’s Missing?' || t.startsWith('What’s Missing?'))).toBeTruthy();
  });
  test('blog_gpu_cluster_p1: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p1/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_gpu_cluster_p2', () => {
  test('blog_gpu_cluster_p2: title matches GT', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p2/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('squeezing every last bit from your gpu c');
  });
  test('blog_gpu_cluster_p2: h1 "Squeezing every last bit from "', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p2/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Squeezing every last bit from your GPU cluster for deep learning: part II' || t.startsWith('Squeezing every last bit from your GPU cluster for deep learning: part II'))).toBeTruthy();
  });
  test('blog_gpu_cluster_p2: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p2/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_gpu_cluster_p2: h2 "Assembling a Complete Deep Lea"', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p2/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Assembling a Complete Deep Learning Stack' || t.startsWith('Assembling a Complete Deep Learning Stack'))).toBeTruthy();
  });
  test('blog_gpu_cluster_p2: h2 "A DL Team\'s Wish List"', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p2/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A DL Team\'s Wish List' || t.startsWith('A DL Team\'s Wish List'))).toBeTruthy();
  });
  test('blog_gpu_cluster_p2: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/gpu-cluster-p2/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_hpsearch_fasterrcnn_coco_pytorch', () => {
  test('blog_hpsearch_fasterrcnn_coco_pytorch: title matches GT', async ({ page }) => {
    await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('hyperparameter search on fasterrcnn');
  });
  test('blog_hpsearch_fasterrcnn_coco_pytorch: h1 "Hyperparameter Sweeps for Fast"', async ({ page }) => {
    await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Hyperparameter Sweeps for FasterRCNN' || t.startsWith('Hyperparameter Sweeps for FasterRCNN'))).toBeTruthy();
  });
  test('blog_hpsearch_fasterrcnn_coco_pytorch: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_hpsearch_fasterrcnn_coco_pytorch: h2 "Getting Set Up Locally"', async ({ page }) => {
    await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Getting Set Up Locally' || t.startsWith('Getting Set Up Locally'))).toBeTruthy();
  });
  test('blog_hpsearch_fasterrcnn_coco_pytorch: h2 "Go Further With Gradyn"', async ({ page }) => {
    await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Go Further With Gradyn' || t.startsWith('Go Further With Gradyn'))).toBeTruthy();
  });
  test('blog_hpsearch_fasterrcnn_coco_pytorch: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/hpsearch-fasterrcnn-coco-pytorch/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_hyperparameter_visualizations_gradyn', () => {
  test('blog_hyperparameter_visualizations_gradyn: title matches GT', async ({ page }) => {
    await page.goto('/blog/hyperparameter-visualizations-gradyn/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('new feature');
  });
  test('blog_hyperparameter_visualizations_gradyn: h1 "New Feature: Charting Your Hyp"', async ({ page }) => {
    await page.goto('/blog/hyperparameter-visualizations-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'New Feature: Charting Your Hyperparameter Searches' || t.startsWith('New Feature: Charting Your Hyperparameter Searches'))).toBeTruthy();
  });
  test('blog_hyperparameter_visualizations_gradyn: h1 "Learning Curve"', async ({ page }) => {
    await page.goto('/blog/hyperparameter-visualizations-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Learning Curve' || t.startsWith('Learning Curve'))).toBeTruthy();
  });
  test('blog_hyperparameter_visualizations_gradyn: h1 "Parallel Plot"', async ({ page }) => {
    await page.goto('/blog/hyperparameter-visualizations-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Parallel Plot' || t.startsWith('Parallel Plot'))).toBeTruthy();
  });
  test('blog_hyperparameter_visualizations_gradyn: h1 "Scatter Plot"', async ({ page }) => {
    await page.goto('/blog/hyperparameter-visualizations-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Scatter Plot' || t.startsWith('Scatter Plot'))).toBeTruthy();
  });
  test('blog_hyperparameter_visualizations_gradyn: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/hyperparameter-visualizations-gradyn/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_intro_to_core_api', () => {
  test('blog_intro_to_core_api: title matches GT', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('intro to core api');
  });
  test('blog_intro_to_core_api: h1 "Why Core API?"', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Why Core API?' || t.startsWith('Why Core API?'))).toBeTruthy();
  });
  test('blog_intro_to_core_api: h1 "Integer Incrementing Tutorial"', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Integer Incrementing Tutorial' || t.startsWith('Integer Incrementing Tutorial'))).toBeTruthy();
  });
  test('blog_intro_to_core_api: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_intro_to_core_api: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_intro_to_core_api_pt2', () => {
  test('blog_intro_to_core_api_pt2: title matches GT', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api-pt2/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('intro to core api');
  });
  test('blog_intro_to_core_api_pt2: h1 "Latest Articles"', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api-pt2/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Articles' || t.startsWith('Latest Articles'))).toBeTruthy();
  });
  test('blog_intro_to_core_api_pt2: h2 "Step 0: Run the script on your"', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api-pt2/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Step 0: Run the script on your local machine' || t.startsWith('Step 0: Run the script on your local machine'))).toBeTruthy();
  });
  test('blog_intro_to_core_api_pt2: h2 "Step 1: Run the script on Grad"', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api-pt2/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Step 1: Run the script on Gradyn' || t.startsWith('Step 1: Run the script on Gradyn'))).toBeTruthy();
  });
  test('blog_intro_to_core_api_pt2: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/intro-to-core-api-pt2/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_intro_to_gradyn', () => {
  test('blog_intro_to_gradyn: title matches GT', async ({ page }) => {
    await page.goto('/blog/intro-to-gradyn/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('getting started with gradyn');
  });
  test('blog_intro_to_gradyn: h1 "Intro to Gradyn: A First-Time "', async ({ page }) => {
    await page.goto('/blog/intro-to-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Intro to Gradyn: A First-Time User\'s Guide' || t.startsWith('Intro to Gradyn: A First-Time User\'s Guide'))).toBeTruthy();
  });
  test('blog_intro_to_gradyn: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/intro-to-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_intro_to_gradyn: h2 "Core Concepts"', async ({ page }) => {
    await page.goto('/blog/intro-to-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core Concepts' || t.startsWith('Core Concepts'))).toBeTruthy();
  });
  test('blog_intro_to_gradyn: h2 "Porting Models"', async ({ page }) => {
    await page.goto('/blog/intro-to-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Porting Models' || t.startsWith('Porting Models'))).toBeTruthy();
  });
  test('blog_intro_to_gradyn: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/intro-to-gradyn/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_joe_hellerstein_data_wrangling_reproducibility_podcast', () => {
  test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: title matches GT', async ({ page }) => {
    await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('dr. lena varga on data wrangling and rep');
  });
  test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: h2 "Gradyn v0.31.0 Notes"', async ({ page }) => {
    await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn v0.31.0 Notes' || t.startsWith('Gradyn v0.31.0 Notes'))).toBeTruthy();
  });
  test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: h2 "AI News #19"', async ({ page }) => {
    await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'AI News #19' || t.startsWith('AI News #19'))).toBeTruthy();
  });
  test('blog_joe_hellerstein_data_wrangling_reproducibility_podcast: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/joe-hellerstein-data-wrangling-reproducibility-podcast/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_llm_prompting', () => {
  test('blog_llm_prompting: title matches GT', async ({ page }) => {
    await page.goto('/blog/llm-prompting/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('llm prompting');
  });
  test('blog_llm_prompting: h1 "LLM Prompting: The Core Techni"', async ({ page }) => {
    await page.goto('/blog/llm-prompting/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'LLM Prompting: The Core Techniques' || t.startsWith('LLM Prompting: The Core Techniques'))).toBeTruthy();
  });
  test('blog_llm_prompting: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/llm-prompting/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_llm_prompting: h2 "What is an LLM prompt?"', async ({ page }) => {
    await page.goto('/blog/llm-prompting/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'What is an LLM prompt?' || t.startsWith('What is an LLM prompt?'))).toBeTruthy();
  });
  test('blog_llm_prompting: h2 "Zero-shot, one-shot, and few-s"', async ({ page }) => {
    await page.goto('/blog/llm-prompting/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Zero-shot, one-shot, and few-shot prompts' || t.startsWith('Zero-shot, one-shot, and few-shot prompts'))).toBeTruthy();
  });
  test('blog_llm_prompting: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/llm-prompting/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_maximize_juptyter_notebook_experience_gradyn', () => {
  test('blog_maximize_juptyter_notebook_experience_gradyn: title matches GT', async ({ page }) => {
    await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('get the most out of your jupyter noteboo');
  });
  test('blog_maximize_juptyter_notebook_experience_gradyn: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_maximize_juptyter_notebook_experience_gradyn: h2 "Manage Compute Resources for J"', async ({ page }) => {
    await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Manage Compute Resources for Jupyter Notebooks with Gradyn Resource Pools' || t.startsWith('Manage Compute Resources for Jupyter Notebooks with Gradyn Resource Pools'))).toBeTruthy();
  });
  test('blog_maximize_juptyter_notebook_experience_gradyn: h2 "Maximize Resource Use Through "', async ({ page }) => {
    await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Maximize Resource Use Through Persistence' || t.startsWith('Maximize Resource Use Through Persistence'))).toBeTruthy();
  });
  test('blog_maximize_juptyter_notebook_experience_gradyn: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_maximize_juptyter_notebook_experience_gradyn: footer link "Roadmap"', async ({ page }) => {
    await page.goto('/blog/maximize-juptyter-notebook-experience-gradyn/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Roadmap' || t.startsWith('Roadmap')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_metaflow_gradyn_integration', () => {
  test('blog_metaflow_gradyn_integration: title matches GT', async ({ page }) => {
    await page.goto('/blog/metaflow-gradyn-integration/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('easier nlp model training with flowdeck ');
  });
  test('blog_metaflow_gradyn_integration: h1 "Introduction"', async ({ page }) => {
    await page.goto('/blog/metaflow-gradyn-integration/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Introduction' || t.startsWith('Introduction'))).toBeTruthy();
  });
  test('blog_metaflow_gradyn_integration: h1 "Use case"', async ({ page }) => {
    await page.goto('/blog/metaflow-gradyn-integration/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Use case' || t.startsWith('Use case'))).toBeTruthy();
  });
  test('blog_metaflow_gradyn_integration: h1 "Setup"', async ({ page }) => {
    await page.goto('/blog/metaflow-gradyn-integration/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Setup' || t.startsWith('Setup'))).toBeTruthy();
  });
  test('blog_metaflow_gradyn_integration: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/metaflow-gradyn-integration/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_neil_conway_deep_learning_model_development_challenges_podcast', () => {
  test('blog_neil_conway_deep_learning_model_development_challenges_podcast: title matches GT', async ({ page }) => {
    await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('marcus vane on the challenges of deep le');
  });
  test('blog_neil_conway_deep_learning_model_development_challenges_podcast: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_neil_conway_deep_learning_model_development_challenges_podcast: h2 "Optimizing Activation Memory: "', async ({ page }) => {
    await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Optimizing Activation Memory: A Practical Guide' || t.startsWith('Optimizing Activation Memory: A Practical Guide'))).toBeTruthy();
  });
  test('blog_neil_conway_deep_learning_model_development_challenges_podcast: h2 "Small Language Models Head to "', async ({ page }) => {
    await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Small Language Models Head to Head: A Rapid Benchmark Roundup' || t.startsWith('Small Language Models Head to Head: A Rapid Benchmark Roundup'))).toBeTruthy();
  });
  test('blog_neil_conway_deep_learning_model_development_challenges_podcast: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/neil-conway-deep-learning-model-development-challenges-podcast/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_neural_architecture_search', () => {
  test('blog_neural_architecture_search: title matches GT', async ({ page }) => {
    await page.goto('/blog/neural-architecture-search/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('what you should know about neural archit');
  });
  test('blog_neural_architecture_search: h1 "A practical guide to Neural Ar"', async ({ page }) => {
    await page.goto('/blog/neural-architecture-search/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A practical guide to Neural Architecture Search' || t.startsWith('A practical guide to Neural Architecture Search'))).toBeTruthy();
  });
  test('blog_neural_architecture_search: h1 "Recent Reads"', async ({ page }) => {
    await page.goto('/blog/neural-architecture-search/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Reads' || t.startsWith('Recent Reads'))).toBeTruthy();
  });
  test('blog_neural_architecture_search: h2 "AutoML ⊃ Hyperparameter Optimi"', async ({ page }) => {
    await page.goto('/blog/neural-architecture-search/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'AutoML ⊃ Hyperparameter Optimization ⊃ NAS' || t.startsWith('AutoML ⊃ Hyperparameter Optimization ⊃ NAS'))).toBeTruthy();
  });
  test('blog_neural_architecture_search: h2 "Inside NAS"', async ({ page }) => {
    await page.goto('/blog/neural-architecture-search/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Inside NAS' || t.startsWith('Inside NAS'))).toBeTruthy();
  });
  test('blog_neural_architecture_search: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/neural-architecture-search/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_object_detection_keras_gradyn', () => {
  test('blog_object_detection_keras_gradyn: title matches GT', async ({ page }) => {
    await page.goto('/blog/object-detection-keras-gradyn/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('object detection with keras and gradyn');
  });
  test('blog_object_detection_keras_gradyn: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/object-detection-keras-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_object_detection_keras_gradyn: h2 "A Quick Tour of the RetinaNet "', async ({ page }) => {
    await page.goto('/blog/object-detection-keras-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A Quick Tour of the RetinaNet Object Detection Model' || t.startsWith('A Quick Tour of the RetinaNet Object Detection Model'))).toBeTruthy();
  });
  test('blog_object_detection_keras_gradyn: h2 "Getting Gradyn Running"', async ({ page }) => {
    await page.goto('/blog/object-detection-keras-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Getting Gradyn Running' || t.startsWith('Getting Gradyn Running'))).toBeTruthy();
  });
  test('blog_object_detection_keras_gradyn: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/object-detection-keras-gradyn/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_optimizing_horovod', () => {
  test('blog_optimizing_horovod: title matches GT', async ({ page }) => {
    await page.goto('/blog/optimizing-horovod/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('making cyclonet faster with local gradie');
  });
  test('blog_optimizing_horovod: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/optimizing-horovod/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_optimizing_horovod: h2 "Accelerating Model Training vi"', async ({ page }) => {
    await page.goto('/blog/optimizing-horovod/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Accelerating Model Training via Local Gradient Aggregation' || t.startsWith('Accelerating Model Training via Local Gradient Aggregation'))).toBeTruthy();
  });
  test('blog_optimizing_horovod: h2 "Measuring Performance"', async ({ page }) => {
    await page.goto('/blog/optimizing-horovod/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Measuring Performance' || t.startsWith('Measuring Performance'))).toBeTruthy();
  });
  test('blog_optimizing_horovod: nav link "Platform"', async ({ page }) => {
    await page.goto('/blog/optimizing-horovod/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_optimizing_horovod: footer link "Product"', async ({ page }) => {
    await page.goto('/blog/optimizing-horovod/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_preemption', () => {
  test('blog_preemption: title matches GT', async ({ page }) => {
    await page.goto('/blog/preemption/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('sharing clusters the smart way');
  });
  test('blog_preemption: h1 "Preemption, Up Close"', async ({ page }) => {
    await page.goto('/blog/preemption/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Preemption, Up Close' || t.startsWith('Preemption, Up Close'))).toBeTruthy();
  });
  test('blog_preemption: h1 "Wrapping up"', async ({ page }) => {
    await page.goto('/blog/preemption/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Wrapping up' || t.startsWith('Wrapping up'))).toBeTruthy();
  });
  test('blog_preemption: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/preemption/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_preemption: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/preemption/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_product_feature_series_one_click_access_to_tensorboard', () => {
  test('blog_product_feature_series_one_click_access_to_tensorboard: title matches GT', async ({ page }) => {
    await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('[product feature series] instant one');
  });
  test('blog_product_feature_series_one_click_access_to_tensorboard: h2 "Model registry is now availabl"', async ({ page }) => {
    await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Model registry is now available!' || t.startsWith('Model registry is now available!'))).toBeTruthy();
  });
  test('blog_product_feature_series_one_click_access_to_tensorboard: h2 "Gradient Checkpointing: A Deep"', async ({ page }) => {
    await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradient Checkpointing: A Deep Dive using PyTorch' || t.startsWith('Gradient Checkpointing: A Deep Dive using PyTorch'))).toBeTruthy();
  });
  test('blog_product_feature_series_one_click_access_to_tensorboard: h2 "Orbit 7B vs. Lumen 7B: A Rapid"', async ({ page }) => {
    await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Orbit 7B vs. Lumen 7B: A Rapid Head-to-Head Benchmark Showdown' || t.startsWith('Orbit 7B vs. Lumen 7B: A Rapid Head-to-Head Benchmark Showdown'))).toBeTruthy();
  });
  test('blog_product_feature_series_one_click_access_to_tensorboard: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/product-feature-series-one-click-access-to-tensorboard/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_production_training_pipelines_with_gradyn_and_kubeflow', () => {
  test('blog_production_training_pipelines_with_gradyn_and_kubeflow: title matches GT', async ({ page }) => {
    await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('build fast, automated ml pipelines with ');
  });
  test('blog_production_training_pipelines_with_gradyn_and_kubeflow: h1 "Fast, automated ML pipelines w"', async ({ page }) => {
    await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Fast, automated ML pipelines with Gradyn and Fluxboard' || t.startsWith('Fast, automated ML pipelines with Gradyn and Fluxboard'))).toBeTruthy();
  });
  test('blog_production_training_pipelines_with_gradyn_and_kubeflow: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_production_training_pipelines_with_gradyn_and_kubeflow: h2 "Where Fluxboard Pipelines Come"', async ({ page }) => {
    await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Where Fluxboard Pipelines Come In' || t.startsWith('Where Fluxboard Pipelines Come In'))).toBeTruthy();
  });
  test('blog_production_training_pipelines_with_gradyn_and_kubeflow: h2 "Production-Grade Training with"', async ({ page }) => {
    await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Production-Grade Training with Gradyn' || t.startsWith('Production-Grade Training with Gradyn'))).toBeTruthy();
  });
  test('blog_production_training_pipelines_with_gradyn_and_kubeflow: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/production-training-pipelines-with-gradyn-and-kubeflow/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_pytorch_trainer', () => {
  test('blog_pytorch_trainer: title matches GT', async ({ page }) => {
    await page.goto('/blog/pytorch-trainer/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('build and test your code locally using t');
  });
  test('blog_pytorch_trainer: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/pytorch-trainer/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_pytorch_trainer: h2 "Training Locally"', async ({ page }) => {
    await page.goto('/blog/pytorch-trainer/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Training Locally' || t.startsWith('Training Locally'))).toBeTruthy();
  });
  test('blog_pytorch_trainer: h2 "From Laptop to Cluster"', async ({ page }) => {
    await page.goto('/blog/pytorch-trainer/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'From Laptop to Cluster' || t.startsWith('From Laptop to Cluster'))).toBeTruthy();
  });
  test('blog_pytorch_trainer: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/pytorch-trainer/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_rag', () => {
  test('blog_rag: title matches GT', async ({ page }) => {
    await page.goto('/blog/rag/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('the detective and the narrator');
  });
  test('blog_rag: h1 "Defining RAG"', async ({ page }) => {
    await page.goto('/blog/rag/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Defining RAG' || t.startsWith('Defining RAG'))).toBeTruthy();
  });
  test('blog_rag: h1 "When should you reach for RAG?"', async ({ page }) => {
    await page.goto('/blog/rag/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'When should you reach for RAG?' || t.startsWith('When should you reach for RAG?'))).toBeTruthy();
  });
  test('blog_rag: h1 "How does RAG run?"', async ({ page }) => {
    await page.goto('/blog/rag/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How does RAG run?' || t.startsWith('How does RAG run?'))).toBeTruthy();
  });
  test('blog_rag: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/rag/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_rag: nav link "Community"', async ({ page }) => {
    await page.goto('/blog/rag/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Community' || t.startsWith('Community')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('resources')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_random_search_baseline_for_nas', () => {
  test('blog_random_search_baseline_for_nas: title matches GT', async ({ page }) => {
    await page.goto('/blog/random-search-baseline-for-nas/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('why random search remains a tough baseli');
  });
  test('blog_random_search_baseline_for_nas: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/random-search-baseline-for-nas/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_random_search_baseline_for_nas: h2 "AI News #19"', async ({ page }) => {
    await page.goto('/blog/random-search-baseline-for-nas/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'AI News #19' || t.startsWith('AI News #19'))).toBeTruthy();
  });
  test('blog_random_search_baseline_for_nas: h2 "Gradyn v0.30.0 Notes"', async ({ page }) => {
    await page.goto('/blog/random-search-baseline-for-nas/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn v0.30.0 Notes' || t.startsWith('Gradyn v0.30.0 Notes'))).toBeTruthy();
  });
  test('blog_random_search_baseline_for_nas: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/random-search-baseline-for-nas/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_reproducibility_in_ml', () => {
  test('blog_reproducibility_in_ml: title matches GT', async ({ page }) => {
    await page.goto('/blog/reproducibility-in-ml/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('reproducible ml');
  });
  test('blog_reproducibility_in_ml: h1 "Reproducible ML: why it\'s esse"', async ({ page }) => {
    await page.goto('/blog/reproducibility-in-ml/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Reproducible ML: why it\'s essential and how you can achieve it' || t.startsWith('Reproducible ML: why it\'s essential and how you can achieve it'))).toBeTruthy();
  });
  test('blog_reproducibility_in_ml: h1 "Recent Reads"', async ({ page }) => {
    await page.goto('/blog/reproducibility-in-ml/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Reads' || t.startsWith('Recent Reads'))).toBeTruthy();
  });
  test('blog_reproducibility_in_ml: h2 "A Day in the Shoes of a New Da"', async ({ page }) => {
    await page.goto('/blog/reproducibility-in-ml/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A Day in the Shoes of a New Data Scientist' || t.startsWith('A Day in the Shoes of a New Data Scientist'))).toBeTruthy();
  });
  test('blog_reproducibility_in_ml: h2 "Where Non-Determinism Comes Fr"', async ({ page }) => {
    await page.goto('/blog/reproducibility-in-ml/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Where Non-Determinism Comes From' || t.startsWith('Where Non-Determinism Comes From'))).toBeTruthy();
  });
  test('blog_reproducibility_in_ml: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/reproducibility-in-ml/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_resource_pools', () => {
  test('blog_resource_pools: title matches GT', async ({ page }) => {
    await page.goto('/blog/resource-pools/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('squeeze more performance from your deep ');
  });
  test('blog_resource_pools: h1 "Run your deep learning cluster"', async ({ page }) => {
    await page.goto('/blog/resource-pools/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Run your deep learning cluster more efficiently using resource pools' || t.startsWith('Run your deep learning cluster more efficiently using resource pools'))).toBeTruthy();
  });
  test('blog_resource_pools: h1 "From the Blog"', async ({ page }) => {
    await page.goto('/blog/resource-pools/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'From the Blog' || t.startsWith('From the Blog'))).toBeTruthy();
  });
  test('blog_resource_pools: h2 "Meet resource pools: a path to"', async ({ page }) => {
    await page.goto('/blog/resource-pools/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Meet resource pools: a path to more efficient clusters' || t.startsWith('Meet resource pools: a path to more efficient clusters'))).toBeTruthy();
  });
  test('blog_resource_pools: h2 "Working with resource pools"', async ({ page }) => {
    await page.goto('/blog/resource-pools/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Working with resource pools' || t.startsWith('Working with resource pools'))).toBeTruthy();
  });
  test('blog_resource_pools: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/resource-pools/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_resource_pools: footer link "Openings"', async ({ page }) => {
    await page.goto('/blog/resource-pools/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Openings' || t.startsWith('Openings')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('careers')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_sc23_recap', () => {
  test('blog_sc23_recap: title matches GT', async ({ page }) => {
    await page.goto('/blog/sc23-recap/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('solara, voltcore vx200s, liquid cooling,');
  });
  test('blog_sc23_recap: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/sc23-recap/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_sc23_recap: h2 "Gradyn v0.28.1"', async ({ page }) => {
    await page.goto('/blog/sc23-recap/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn v0.28.1' || t.startsWith('Gradyn v0.28.1'))).toBeTruthy();
  });
  test('blog_sc23_recap: h2 "Gradyn v0.28.0"', async ({ page }) => {
    await page.goto('/blog/sc23-recap/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn v0.28.0' || t.startsWith('Gradyn v0.28.0'))).toBeTruthy();
  });
  test('blog_sc23_recap: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/sc23-recap/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_sc23_recap: footer link "Source"', async ({ page }) => {
    await page.goto('/blog/sc23-recap/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Source' || t.startsWith('Source')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_scale_your_model_development_on_a_budget', () => {
  test('blog_scale_your_model_development_on_a_budget: title matches GT', async ({ page }) => {
    await page.goto('/blog/scale-your-model-development-on-a-budget/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('stretch your model development budget wi');
  });
  test('blog_scale_your_model_development_on_a_budget: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/scale-your-model-development-on-a-budget/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_scale_your_model_development_on_a_budget: h2 "Intro"', async ({ page }) => {
    await page.goto('/blog/scale-your-model-development-on-a-budget/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Intro' || t.startsWith('Intro'))).toBeTruthy();
  });
  test('blog_scale_your_model_development_on_a_budget: h2 "So When Are Preemptibles Worth"', async ({ page }) => {
    await page.goto('/blog/scale-your-model-development-on-a-budget/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'So When Are Preemptibles Worth It?' || t.startsWith('So When Are Preemptibles Worth It?'))).toBeTruthy();
  });
  test('blog_scale_your_model_development_on_a_budget: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/scale-your-model-development-on-a-budget/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_slurm_lacking_deep_learning', () => {
  test('blog_slurm_lacking_deep_learning: title matches GT', async ({ page }) => {
    await page.goto('/blog/slurm-lacking-deep-learning/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('how slurm falls short for modern deep le');
  });
  test('blog_slurm_lacking_deep_learning: h1 "Where Slurm Falls Short for De"', async ({ page }) => {
    await page.goto('/blog/slurm-lacking-deep-learning/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Where Slurm Falls Short for Deep Learning Work' || t.startsWith('Where Slurm Falls Short for Deep Learning Work'))).toBeTruthy();
  });
  test('blog_slurm_lacking_deep_learning: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/slurm-lacking-deep-learning/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_slurm_lacking_deep_learning: h2 "Final Thoughts"', async ({ page }) => {
    await page.goto('/blog/slurm-lacking-deep-learning/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Final Thoughts' || t.startsWith('Final Thoughts'))).toBeTruthy();
  });
  test('blog_slurm_lacking_deep_learning: h2 "Gradyn v0.28.1"', async ({ page }) => {
    await page.goto('/blog/slurm-lacking-deep-learning/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn v0.28.1' || t.startsWith('Gradyn v0.28.1'))).toBeTruthy();
  });
  test('blog_slurm_lacking_deep_learning: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/slurm-lacking-deep-learning/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers', () => {
  test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: title matches GT', async ({ page }) => {
    await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('purpose');
  });
  test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: h2 "Introducing GenAI studio today"', async ({ page }) => {
    await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Introducing GenAI studio today!' || t.startsWith('Introducing GenAI studio today!'))).toBeTruthy();
  });
  test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: h2 "Memory Profiling: A Close Look"', async ({ page }) => {
    await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Memory Profiling: A Close Look with PyTorch' || t.startsWith('Memory Profiling: A Close Look with PyTorch'))).toBeTruthy();
  });
  test('blog_specialized_ai_chips_hold_both_promise_and_peril_for_developers: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/specialized-ai-chips-hold-both-promise-and-peril-for-developers/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_speedy_model_training_rapids_gradyn', () => {
  test('blog_speedy_model_training_rapids_gradyn: title matches GT', async ({ page }) => {
    await page.goto('/blog/speedy-model-training-rapids-gradyn/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('repost');
  });
  test('blog_speedy_model_training_rapids_gradyn: h1 "Repost: Accelerated Model Trai"', async ({ page }) => {
    await page.goto('/blog/speedy-model-training-rapids-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Repost: Accelerated Model Training with RapidFrame & Gradyn' || t.startsWith('Repost: Accelerated Model Training with RapidFrame & Gradyn'))).toBeTruthy();
  });
  test('blog_speedy_model_training_rapids_gradyn: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/speedy-model-training-rapids-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_speedy_model_training_rapids_gradyn: h2 "Opening up GPU access"', async ({ page }) => {
    await page.goto('/blog/speedy-model-training-rapids-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Opening up GPU access' || t.startsWith('Opening up GPU access'))).toBeTruthy();
  });
  test('blog_speedy_model_training_rapids_gradyn: h2 "Getting set up"', async ({ page }) => {
    await page.goto('/blog/speedy-model-training-rapids-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Getting set up' || t.startsWith('Getting set up'))).toBeTruthy();
  });
  test('blog_speedy_model_training_rapids_gradyn: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/speedy-model-training-rapids-gradyn/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_stable_diffusion_core_api', () => {
  test('blog_stable_diffusion_core_api: title matches GT', async ({ page }) => {
    await page.goto('/blog/stable-diffusion-core-api/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('building custom stable diffusion models ');
  });
  test('blog_stable_diffusion_core_api: h1 "Diffusion, Textual Inversion, "', async ({ page }) => {
    await page.goto('/blog/stable-diffusion-core-api/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Diffusion, Textual Inversion, and 🧨 Diffusers' || t.startsWith('Diffusion, Textual Inversion, and 🧨 Diffusers'))).toBeTruthy();
  });
  test('blog_stable_diffusion_core_api: h1 "Explore the Demo"', async ({ page }) => {
    await page.goto('/blog/stable-diffusion-core-api/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Explore the Demo' || t.startsWith('Explore the Demo'))).toBeTruthy();
  });
  test('blog_stable_diffusion_core_api: h1 "Step-by-Step: Fine-Tuning"', async ({ page }) => {
    await page.goto('/blog/stable-diffusion-core-api/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Step-by-Step: Fine-Tuning' || t.startsWith('Step-by-Step: Fine-Tuning'))).toBeTruthy();
  });
  test('blog_stable_diffusion_core_api: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/stable-diffusion-core-api/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_standardized_models_with_gradyn', () => {
  test('blog_standardized_models_with_gradyn: title matches GT', async ({ page }) => {
    await page.goto('/blog/standardized-models-with-gradyn/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('organizing your machine learning codebas');
  });
  test('blog_standardized_models_with_gradyn: h1 "Organizing your Code to Build "', async ({ page }) => {
    await page.goto('/blog/standardized-models-with-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Organizing your Code to Build a Deep Learning Model that Truly Scales' || t.startsWith('Organizing your Code to Build a Deep Learning Model that Truly Scales'))).toBeTruthy();
  });
  test('blog_standardized_models_with_gradyn: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/standardized-models-with-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_standardized_models_with_gradyn: h2 "The Gradyn studio is now live!"', async ({ page }) => {
    await page.goto('/blog/standardized-models-with-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The Gradyn studio is now live!' || t.startsWith('The Gradyn studio is now live!'))).toBeTruthy();
  });
  test('blog_standardized_models_with_gradyn: h2 "Activation Memory: A Deep Dive"', async ({ page }) => {
    await page.goto('/blog/standardized-models-with-gradyn/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Activation Memory: A Deep Dive into Training' || t.startsWith('Activation Memory: A Deep Dive into Training'))).toBeTruthy();
  });
  test('blog_standardized_models_with_gradyn: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/standardized-models-with-gradyn/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_stop_doing_iterative_model_development', () => {
  test('blog_stop_doing_iterative_model_development: title matches GT', async ({ page }) => {
    await page.goto('/blog/stop-doing-iterative-model-development/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('break free from iterative model developm');
  });
  test('blog_stop_doing_iterative_model_development: h1 "A hands-on example"', async ({ page }) => {
    await page.goto('/blog/stop-doing-iterative-model-development/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A hands-on example' || t.startsWith('A hands-on example'))).toBeTruthy();
  });
  test('blog_stop_doing_iterative_model_development: h1 "Search-First Model Development"', async ({ page }) => {
    await page.goto('/blog/stop-doing-iterative-model-development/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Search-First Model Development' || t.startsWith('Search-First Model Development'))).toBeTruthy();
  });
  test('blog_stop_doing_iterative_model_development: h1 "Latest Articles"', async ({ page }) => {
    await page.goto('/blog/stop-doing-iterative-model-development/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Articles' || t.startsWith('Latest Articles'))).toBeTruthy();
  });
  test('blog_stop_doing_iterative_model_development: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/stop-doing-iterative-model-development/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_tensorflow_ai_service_partner', () => {
  test('blog_tensorflow_ai_service_partner: title matches GT', async ({ page }) => {
    await page.goto('/blog/tensorflow-ai-service-partner/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('gradyn joins the tensorforge ai service ');
  });
  test('blog_tensorflow_ai_service_partner: h1 "Gradyn joins the TensorForge A"', async ({ page }) => {
    await page.goto('/blog/tensorflow-ai-service-partner/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn joins the TensorForge AI Service Partner program to help organizations build AI-powered apps' || t.startsWith('Gradyn joins the TensorForge AI Service Partner program to help organizations build AI-powered apps'))).toBeTruthy();
  });
  test('blog_tensorflow_ai_service_partner: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/tensorflow-ai-service-partner/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_tensorflow_ai_service_partner: h2 "About Gradyn, Inc."', async ({ page }) => {
    await page.goto('/blog/tensorflow-ai-service-partner/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'About Gradyn, Inc.' || t.startsWith('About Gradyn, Inc.'))).toBeTruthy();
  });
  test('blog_tensorflow_ai_service_partner: h2 "AI Digest #8"', async ({ page }) => {
    await page.goto('/blog/tensorflow-ai-service-partner/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'AI Digest #8' || t.startsWith('AI Digest #8'))).toBeTruthy();
  });
  test('blog_tensorflow_ai_service_partner: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/tensorflow-ai-service-partner/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_tensorflow_ai_service_partner: footer link "Platform"', async ({ page }) => {
    await page.goto('/blog/tensorflow-ai-service-partner/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform' || t.startsWith('Platform')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_tf_dataset_the_bad_parts', () => {
  test('blog_tf_dataset_the_bad_parts: title matches GT', async ({ page }) => {
    await page.goto('/blog/tf-dataset-the-bad-parts/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('tensorflow datasets');
  });
  test('blog_tf_dataset_the_bad_parts: h1 "Data Loading Patterns"', async ({ page }) => {
    await page.goto('/blog/tf-dataset-the-bad-parts/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Data Loading Patterns' || t.startsWith('Data Loading Patterns'))).toBeTruthy();
  });
  test('blog_tf_dataset_the_bad_parts: h1 "Sequential Reads in TensorFlow"', async ({ page }) => {
    await page.goto('/blog/tf-dataset-the-bad-parts/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Sequential Reads in TensorFlow Datasets' || t.startsWith('Sequential Reads in TensorFlow Datasets'))).toBeTruthy();
  });
  test('blog_tf_dataset_the_bad_parts: h1 "The Fix"', async ({ page }) => {
    await page.goto('/blog/tf-dataset-the-bad-parts/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The Fix' || t.startsWith('The Fix'))).toBeTruthy();
  });
  test('blog_tf_dataset_the_bad_parts: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/tf-dataset-the-bad-parts/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies', () => {
  test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: title matches GT', async ({ page }) => {
    await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('the fight for machine learning engineers');
  });
  test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: h2 "Model Studio is now available!"', async ({ page }) => {
    await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Model Studio is now available!' || t.startsWith('Model Studio is now available!'))).toBeTruthy();
  });
  test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: h2 "Where Training Memory Goes: A "', async ({ page }) => {
    await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Where Training Memory Goes: A Deep Dive in Tensyr' || t.startsWith('Where Training Memory Goes: A Deep Dive in Tensyr'))).toBeTruthy();
  });
  test('blog_the_squeeze_on_ai_talent_could_cripple_americas_most_important_companies: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/the-squeeze-on-ai-talent-could-cripple-americas-most-important-companies/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_tianqi_chen_model_deployment_specialized_hardware_podcast', () => {
  test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: title matches GT', async ({ page }) => {
    await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('rowan vesely on shipping models efficien');
  });
  test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: h2 "Nimbus 7B vs. Terra 7B: A Rapi"', async ({ page }) => {
    await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Nimbus 7B vs. Terra 7B: A Rapid Head-to-Head Run in GenAI studio' || t.startsWith('Nimbus 7B vs. Terra 7B: A Rapid Head-to-Head Run in GenAI studio'))).toBeTruthy();
  });
  test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: h2 "Activation Memory: A Plain Gui"', async ({ page }) => {
    await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Activation Memory: A Plain Guide' || t.startsWith('Activation Memory: A Plain Guide'))).toBeTruthy();
  });
  test('blog_tianqi_chen_model_deployment_specialized_hardware_podcast: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/tianqi-chen-model-deployment-specialized-hardware-podcast/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_toward_the_jet_age_of_machine_learning', () => {
  test('blog_toward_the_jet_age_of_machine_learning: title matches GT', async ({ page }) => {
    await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('when deep learning outgrows a single gpu');
  });
  test('blog_toward_the_jet_age_of_machine_learning: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_toward_the_jet_age_of_machine_learning: h2 "Challenge 1: Speed and Efficie"', async ({ page }) => {
    await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Challenge 1: Speed and Efficiency' || t.startsWith('Challenge 1: Speed and Efficiency'))).toBeTruthy();
  });
  test('blog_toward_the_jet_age_of_machine_learning: h2 "Challenge 2: Automation"', async ({ page }) => {
    await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Challenge 2: Automation' || t.startsWith('Challenge 2: Automation'))).toBeTruthy();
  });
  test('blog_toward_the_jet_age_of_machine_learning: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/toward-the-jet-age-of-machine-learning/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_transfer_learning_with_gradyn', () => {
  test('blog_transfer_learning_with_gradyn: title matches GT', async ({ page }) => {
    await page.goto('/blog/transfer-learning-with-gradyn/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('transfer learning made painless with gra');
  });
  test('blog_transfer_learning_with_gradyn: h1 "1) Distributed Training"', async ({ page }) => {
    await page.goto('/blog/transfer-learning-with-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '1) Distributed Training' || t.startsWith('1) Distributed Training'))).toBeTruthy();
  });
  test('blog_transfer_learning_with_gradyn: h1 "2) Visualization:"', async ({ page }) => {
    await page.goto('/blog/transfer-learning-with-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '2) Visualization:' || t.startsWith('2) Visualization:'))).toBeTruthy();
  });
  test('blog_transfer_learning_with_gradyn: h1 "3) Checkpointing"', async ({ page }) => {
    await page.goto('/blog/transfer-learning-with-gradyn/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '3) Checkpointing' || t.startsWith('3) Checkpointing'))).toBeTruthy();
  });
  test('blog_transfer_learning_with_gradyn: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/transfer-learning-with-gradyn/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_warm_starting_deep_learning', () => {
  test('blog_warm_starting_deep_learning: title matches GT', async ({ page }) => {
    await page.goto('/blog/warm-starting-deep-learning/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('reusing trained weights for leaner deep ');
  });
  test('blog_warm_starting_deep_learning: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/warm-starting-deep-learning/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_warm_starting_deep_learning: h2 "Warm-starting and Transfer Lea"', async ({ page }) => {
    await page.goto('/blog/warm-starting-deep-learning/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Warm-starting and Transfer Learning' || t.startsWith('Warm-starting and Transfer Learning'))).toBeTruthy();
  });
  test('blog_warm_starting_deep_learning: h2 "Warm-starting for Efficient De"', async ({ page }) => {
    await page.goto('/blog/warm-starting-deep-learning/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Warm-starting for Efficient Deep Learning Resource Utilization' || t.startsWith('Warm-starting for Efficient Deep Learning Resource Utilization'))).toBeTruthy();
  });
  test('blog_warm_starting_deep_learning: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/warm-starting-deep-learning/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_weekly_update_2', () => {
  test('blog_weekly_update_2: title matches GT', async ({ page }) => {
    await page.goto('/blog/weekly-update-2/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('nyra video, a contamination sweeper, fas');
  });
  test('blog_weekly_update_2: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/weekly-update-2/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_weekly_update_2: h2 "1) Nyra Video and Nyra Edit"', async ({ page }) => {
    await page.goto('/blog/weekly-update-2/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '1) Nyra Video and Nyra Edit' || t.startsWith('1) Nyra Video and Nyra Edit'))).toBeTruthy();
  });
  test('blog_weekly_update_2: h2 "2) Contamination Sweeper"', async ({ page }) => {
    await page.goto('/blog/weekly-update-2/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '2) Contamination Sweeper' || t.startsWith('2) Contamination Sweeper'))).toBeTruthy();
  });
  test('blog_weekly_update_2: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/weekly-update-2/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_weekly_update_3', () => {
  test('blog_weekly_update_3: title matches GT', async ({ page }) => {
    await page.goto('/blog/weekly-update-3/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('frameflow video synthesis, horizon decod');
  });
  test('blog_weekly_update_3: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/weekly-update-3/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_weekly_update_3: h2 "1) FrameFlow Video Synthesis"', async ({ page }) => {
    await page.goto('/blog/weekly-update-3/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '1) FrameFlow Video Synthesis' || t.startsWith('1) FrameFlow Video Synthesis'))).toBeTruthy();
  });
  test('blog_weekly_update_3: h2 "2) Horizon Decoding"', async ({ page }) => {
    await page.goto('/blog/weekly-update-3/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '2) Horizon Decoding' || t.startsWith('2) Horizon Decoding'))).toBeTruthy();
  });
  test('blog_weekly_update_3: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/weekly-update-3/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_weekly_update_3: footer link "Product"', async ({ page }) => {
    await page.goto('/blog/weekly-update-3/');
    const links = page.locator('footer a, [role="contentinfo"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in footer').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_weekly_update_4', () => {
  test('blog_weekly_update_4: title matches GT', async ({ page }) => {
    await page.goto('/blog/weekly-update-4/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('visual anagrams, adversarial diffusion d');
  });
  test('blog_weekly_update_4: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/weekly-update-4/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_weekly_update_4: h2 "1) Visual Anagrams"', async ({ page }) => {
    await page.goto('/blog/weekly-update-4/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '1) Visual Anagrams' || t.startsWith('1) Visual Anagrams'))).toBeTruthy();
  });
  test('blog_weekly_update_4: h2 "2) Adversarial Diffusion Disti"', async ({ page }) => {
    await page.goto('/blog/weekly-update-4/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '2) Adversarial Diffusion Distillation' || t.startsWith('2) Adversarial Diffusion Distillation'))).toBeTruthy();
  });
  test('blog_weekly_update_4: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/weekly-update-4/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
  test('blog_weekly_update_4: nav link "News"', async ({ page }) => {
    await page.goto('/blog/weekly-update-4/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'News' || t.startsWith('News')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('blog')), 'href fragment present').toBeTruthy();
  });
  test('blog_weekly_update_4: nav link "Community"', async ({ page }) => {
    await page.goto('/blog/weekly-update-4/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Community' || t.startsWith('Community')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('resources')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_weekly_update_5', () => {
  test('blog_weekly_update_5: title matches GT', async ({ page }) => {
    await page.goto('/blog/weekly-update-5/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('boundless zoom diffusion, tonekeep trans');
  });
  test('blog_weekly_update_5: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/weekly-update-5/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_weekly_update_5: h2 "1) Boundless Zoom Diffusion:"', async ({ page }) => {
    await page.goto('/blog/weekly-update-5/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '1) Boundless Zoom Diffusion:' || t.startsWith('1) Boundless Zoom Diffusion:'))).toBeTruthy();
  });
  test('blog_weekly_update_5: h2 "2) ToneKeep Translate"', async ({ page }) => {
    await page.goto('/blog/weekly-update-5/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '2) ToneKeep Translate' || t.startsWith('2) ToneKeep Translate'))).toBeTruthy();
  });
  test('blog_weekly_update_5: nav link "Product"', async ({ page }) => {
    await page.goto('/blog/weekly-update-5/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product' || t.startsWith('Product')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_what_andreessen_horowitz_got_wrong_about_ai', () => {
  test('blog_what_andreessen_horowitz_got_wrong_about_ai: title matches GT', async ({ page }) => {
    await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('where brightmoor capital misreads the ai');
  });
  test('blog_what_andreessen_horowitz_got_wrong_about_ai: h1 "Where Brightmoor Capital Gets "', async ({ page }) => {
    await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Where Brightmoor Capital Gets AI Wrong' || t.startsWith('Where Brightmoor Capital Gets AI Wrong'))).toBeTruthy();
  });
  test('blog_what_andreessen_horowitz_got_wrong_about_ai: h1 "Recent Posts"', async ({ page }) => {
    await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent Posts' || t.startsWith('Recent Posts'))).toBeTruthy();
  });
  test('blog_what_andreessen_horowitz_got_wrong_about_ai: h2 "Gradyn Studio is now available"', async ({ page }) => {
    await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gradyn Studio is now available!' || t.startsWith('Gradyn Studio is now available!'))).toBeTruthy();
  });
  test('blog_what_andreessen_horowitz_got_wrong_about_ai: h2 "Activation Memory: A Deep Dive"', async ({ page }) => {
    await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Activation Memory: A Deep Dive using Tensora' || t.startsWith('Activation Memory: A Deep Dive using Tensora'))).toBeTruthy();
  });
  test('blog_what_andreessen_horowitz_got_wrong_about_ai: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/what-andreessen-horowitz-got-wrong-about-ai/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_why_does_no_one_use_advanced_hp_tuning', () => {
  test('blog_why_does_no_one_use_advanced_hp_tuning: title matches GT', async ({ page }) => {
    await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('why is advanced hyperparameter tuning so');
  });
  test('blog_why_does_no_one_use_advanced_hp_tuning: h1 "Latest Posts"', async ({ page }) => {
    await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
  });
  test('blog_why_does_no_one_use_advanced_hp_tuning: h2 "Scaling to large problems"', async ({ page }) => {
    await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Scaling to large problems' || t.startsWith('Scaling to large problems'))).toBeTruthy();
  });
  test('blog_why_does_no_one_use_advanced_hp_tuning: h2 "Hooking into your backend syst"', async ({ page }) => {
    await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Hooking into your backend systems' || t.startsWith('Hooking into your backend systems'))).toBeTruthy();
  });
  test('blog_why_does_no_one_use_advanced_hp_tuning: nav link "Project"', async ({ page }) => {
    await page.goto('/blog/why-does-no-one-use-advanced-hp-tuning/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Project' || t.startsWith('Project')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('project')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - Routing', () => {
  test('navigate to project via "Platform"', async ({ page }) => {
    await page.goto('/');
    const link = page.locator('a[href*="project"]').first();
    expect(await link.count(), 'nav link to project exists').toBeGreaterThan(0);
    await link.click();
    await page.waitForTimeout(1200);
    expect(page.url().toLowerCase(), 'URL changed to destination').toContain('project');
    const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
    expect(bodyText, 'destination distinctive content shown').toContain('Focus on models, not machines.');
  });
});