File size: 112,021 Bytes
a81c7b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import { test, expect } from '@playwright/test';

test.describe('Functional - homepage', () => {
  test('homepage: title matches GT', async ({ page }) => {
    await page.goto('/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('the world\'s #1 product development platf');
  });
  test('homepage: h2 "Run the world\'s #1 product dev"', async ({ page }) => {
    await page.goto('/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Run the world\'s #1 product development platform' || t.startsWith('Run the world\'s #1 product development platform'))).toBeTruthy();
  });
  test('homepage: h2 "Build a visual roadmap"', async ({ page }) => {
    await page.goto('/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Build a visual roadmap' || t.startsWith('Build a visual roadmap'))).toBeTruthy();
  });
  test('homepage: h2 "Kick-start product discovery"', async ({ page }) => {
    await page.goto('/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Kick-start product discovery' || t.startsWith('Kick-start product discovery'))).toBeTruthy();
  });
  test('homepage: nav link "Platform overviewSpeed up prod"', 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 overviewSpeed up product development' || t.startsWith('Platform overviewSpeed up product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('homepage: nav link "Praxora RoadmapsAlign strategy"', 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 === 'Praxora RoadmapsAlign strategy with plans' || t.startsWith('Praxora RoadmapsAlign strategy with plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('homepage: nav link "Praxora DiscoveryHandle custom"', 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 === 'Praxora DiscoveryHandle customer interviews' || t.startsWith('Praxora DiscoveryHandle customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('homepage: nav link "Praxora IdeasCollect customer "', 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 === 'Praxora IdeasCollect customer feedback' || t.startsWith('Praxora IdeasCollect customer feedback')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - academy', () => {
  test('academy: title matches GT', async ({ page }) => {
    await page.goto('/academy/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora academy');
  });
  test('academy: h1 "The best path to becoming a pr"', async ({ page }) => {
    await page.goto('/academy/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The best path to becoming a product pro' || t.startsWith('The best path to becoming a product pro'))).toBeTruthy();
  });
  test('academy: h2 "Learn and grow with Praxora"', async ({ page }) => {
    await page.goto('/academy/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Learn and grow with Praxora' || t.startsWith('Learn and grow with Praxora'))).toBeTruthy();
  });
  test('academy: h2 "Hear from Academy graduates"', async ({ page }) => {
    await page.goto('/academy/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Hear from Academy graduates' || t.startsWith('Hear from Academy graduates'))).toBeTruthy();
  });
  test('academy: h3 "Certification classes"', async ({ page }) => {
    await page.goto('/academy/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Certification classes' || t.startsWith('Certification classes'))).toBeTruthy();
  });
  test('academy: header link "Praxora"', async ({ page }) => {
    await page.goto('/academy/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('academy: nav link "Product overviewMove product w"', async ({ page }) => {
    await page.goto('/academy/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewMove product work forward fast' || t.startsWith('Product overviewMove product work forward fast')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('academy: nav link "Praxora RoadmapsTurn strategy "', async ({ page }) => {
    await page.goto('/academy/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsTurn strategy into plans' || t.startsWith('Praxora RoadmapsTurn strategy into plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('academy: nav link "Praxora DiscoveryOrganize cust"', async ({ page }) => {
    await page.goto('/academy/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryOrganize customer research' || t.startsWith('Praxora DiscoveryOrganize customer research')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - ai_library', () => {
  test('ai_library: title matches GT', async ({ page }) => {
    await page.goto('/ai-library/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('explore the praxora ai prompt library');
  });
  test('ai_library: h1 "Get more done with AI"', async ({ page }) => {
    await page.goto('/ai-library/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Get more done with AI' || t.startsWith('Get more done with AI'))).toBeTruthy();
  });
  test('ai_library: h4 "Acceptance criteria"', async ({ page }) => {
    await page.goto('/ai-library/');
    const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Acceptance criteria' || t.startsWith('Acceptance criteria'))).toBeTruthy();
  });
  test('ai_library: h4 "Approaches to consider"', async ({ page }) => {
    await page.goto('/ai-library/');
    const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Approaches to consider' || t.startsWith('Approaches to consider'))).toBeTruthy();
  });
  test('ai_library: h4 "Change impact report"', async ({ page }) => {
    await page.goto('/ai-library/');
    const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Change impact report' || t.startsWith('Change impact report'))).toBeTruthy();
  });
  test('ai_library: header link "Praxora"', async ({ page }) => {
    await page.goto('/ai-library/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('ai_library: nav link "Platform overviewSimplify your"', async ({ page }) => {
    await page.goto('/ai-library/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform overviewSimplify your product workflow' || t.startsWith('Platform overviewSimplify your product workflow')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('ai_library: nav link "Praxora RoadmapsTurn strategy "', async ({ page }) => {
    await page.goto('/ai-library/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsTurn strategy into plans' || t.startsWith('Praxora RoadmapsTurn strategy into plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('ai_library: nav link "Praxora DiscoveryTrack custome"', async ({ page }) => {
    await page.goto('/ai-library/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryTrack customer conversations' || t.startsWith('Praxora DiscoveryTrack customer conversations')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog', () => {
  test('blog: title matches GT', async ({ page }) => {
    await page.goto('/blog/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('blog');
  });
  test('blog: h1 "Praxora blog"', async ({ page }) => {
    await page.goto('/blog/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora blog' || t.startsWith('Praxora blog'))).toBeTruthy();
  });
  test('blog: h2 "A product manager\'s guide to A"', async ({ page }) => {
    await page.goto('/blog/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'A product manager\'s guide to AI' || t.startsWith('A product manager\'s guide to AI'))).toBeTruthy();
  });
  test('blog: h2 "Set a publish schedule for kno"', async ({ page }) => {
    await page.goto('/blog/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Set a publish schedule for knowledge base articles' || t.startsWith('Set a publish schedule for knowledge base articles'))).toBeTruthy();
  });
  test('blog: h2 "Introducing the Praxora softwa"', async ({ page }) => {
    await page.goto('/blog/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Introducing the Praxora software MCP server' || t.startsWith('Introducing the Praxora software MCP server'))).toBeTruthy();
  });
  test('blog: header link "Praxora"', async ({ page }) => {
    await page.goto('/blog/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('blog: nav link "Platform overviewSimplify how "', async ({ page }) => {
    await page.goto('/blog/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform overviewSimplify how you build products' || t.startsWith('Platform overviewSimplify how you build products')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('blog: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/blog/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('blog: nav link "Praxora DiscoveryRun customer "', async ({ page }) => {
    await page.goto('/blog/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryRun customer interviews' || t.startsWith('Praxora DiscoveryRun customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - customers', () => {
  test('customers: title matches GT', async ({ page }) => {
    await page.goto('/customers/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('stories of customer success');
  });
  test('customers: h1 "Own your best"', async ({ page }) => {
    await page.goto('/customers/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Own your best' || t.startsWith('Own your best'))).toBeTruthy();
  });
  test('customers: h4 "Vexa, Co"', async ({ page }) => {
    await page.goto('/customers/');
    const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Vexa, Co' || t.startsWith('Vexa, Co'))).toBeTruthy();
  });
  test('customers: h4 "Nuvoli"', async ({ page }) => {
    await page.goto('/customers/');
    const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Nuvoli' || t.startsWith('Nuvoli'))).toBeTruthy();
  });
  test('customers: h4 "Lernetix"', async ({ page }) => {
    await page.goto('/customers/');
    const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Lernetix' || t.startsWith('Lernetix'))).toBeTruthy();
  });
  test('customers: header link "Praxora"', async ({ page }) => {
    await page.goto('/customers/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('customers: nav link "Product overviewSpeed up your "', async ({ page }) => {
    await page.goto('/customers/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewSpeed up your product process' || t.startsWith('Product overviewSpeed up your product process')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('customers: nav link "Praxora RoadmapsTurn strategy "', async ({ page }) => {
    await page.goto('/customers/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsTurn strategy into plans' || t.startsWith('Praxora RoadmapsTurn strategy into plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('customers: nav link "Praxora DiscoveryManage custom"', async ({ page }) => {
    await page.goto('/customers/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage customer research' || t.startsWith('Praxora DiscoveryManage customer research')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - partners', () => {
  test('partners: title matches GT', async ({ page }) => {
    await page.goto('/partners/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora partners');
  });
  test('partners: h1 "Find certified product advisor"', async ({ page }) => {
    await page.goto('/partners/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Find certified product advisors' || t.startsWith('Find certified product advisors'))).toBeTruthy();
  });
  test('partners: h2 "Meet our worldwide partners"', async ({ page }) => {
    await page.goto('/partners/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Meet our worldwide partners' || t.startsWith('Meet our worldwide partners'))).toBeTruthy();
  });
  test('partners: h3 "Partner with the industry\'s fi"', async ({ page }) => {
    await page.goto('/partners/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Partner with the industry\'s finest' || t.startsWith('Partner with the industry\'s finest'))).toBeTruthy();
  });
  test('partners: h3 "Recent engagements"', async ({ page }) => {
    await page.goto('/partners/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Recent engagements' || t.startsWith('Recent engagements'))).toBeTruthy();
  });
  test('partners: header link "Praxora"', async ({ page }) => {
    await page.goto('/partners/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('partners: nav link "Product overviewStreamline pro"', async ({ page }) => {
    await page.goto('/partners/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewStreamline product development' || t.startsWith('Product overviewStreamline product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('partners: nav link "Praxora RoadmapsLink strategy "', async ({ page }) => {
    await page.goto('/partners/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsLink strategy to plans' || t.startsWith('Praxora RoadmapsLink strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('partners: nav link "Praxora DiscoveryManage custom"', async ({ page }) => {
    await page.goto('/partners/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage customer interviews' || t.startsWith('Praxora DiscoveryManage customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - pricing', () => {
  test('pricing: title matches GT', async ({ page }) => {
    await page.goto('/pricing/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora pricing');
  });
  test('pricing: h1 "Pricing for Praxora products"', async ({ page }) => {
    await page.goto('/pricing/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Pricing for Praxora products' || t.startsWith('Pricing for Praxora products'))).toBeTruthy();
  });
  test('pricing: h2 "The all-in-one product managem"', async ({ page }) => {
    await page.goto('/pricing/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The all-in-one product management solution' || t.startsWith('The all-in-one product management solution'))).toBeTruthy();
  });
  test('pricing: h2 "The new way to manage customer"', async ({ page }) => {
    await page.goto('/pricing/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The new way to manage customer interviews' || t.startsWith('The new way to manage customer interviews'))).toBeTruthy();
  });
  test('pricing: h2 "The comprehensive idea managem"', async ({ page }) => {
    await page.goto('/pricing/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'The comprehensive idea management tool' || t.startsWith('The comprehensive idea management tool'))).toBeTruthy();
  });
  test('pricing: header link "Praxora"', async ({ page }) => {
    await page.goto('/pricing/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('pricing: nav link "Product overviewStreamline pro"', async ({ page }) => {
    await page.goto('/pricing/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewStreamline product development' || t.startsWith('Product overviewStreamline product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('pricing: nav link "Praxora RoadmapsLink strategy "', async ({ page }) => {
    await page.goto('/pricing/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsLink strategy to plans' || t.startsWith('Praxora RoadmapsLink strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('pricing: nav link "Praxora DiscoveryManage custom"', async ({ page }) => {
    await page.goto('/pricing/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage customer interviews' || t.startsWith('Praxora DiscoveryManage customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - signup', () => {
  test('signup: title matches GT', async ({ page }) => {
    await page.goto('/signup/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('sign up for praxora software');
  });
  test('signup: h1 "Begin your free trial"', async ({ page }) => {
    await page.goto('/signup/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Begin your free trial' || t.startsWith('Begin your free trial'))).toBeTruthy();
  });
  test('signup: h2 "Build strategic plans"', async ({ page }) => {
    await page.goto('/signup/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Build strategic plans' || t.startsWith('Build strategic plans'))).toBeTruthy();
  });
  test('signup: h2 "Handle customer interviews"', async ({ page }) => {
    await page.goto('/signup/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Handle customer interviews' || t.startsWith('Handle customer interviews'))).toBeTruthy();
  });
  test('signup: h2 "Gather customer feedback"', async ({ page }) => {
    await page.goto('/signup/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Gather customer feedback' || t.startsWith('Gather customer feedback'))).toBeTruthy();
  });
  test('signup: header link "Praxora"', async ({ page }) => {
    await page.goto('/signup/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('signup: nav link "Product overviewSimplify produ"', async ({ page }) => {
    await page.goto('/signup/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewSimplify product development' || t.startsWith('Product overviewSimplify product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('signup: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/signup/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('signup: nav link "Praxora DiscoveryOrganize cust"', async ({ page }) => {
    await page.goto('/signup/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryOrganize customer interviews' || t.startsWith('Praxora DiscoveryOrganize customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - suite_overview', () => {
  test('suite_overview: title matches GT', async ({ page }) => {
    await page.goto('/suite-overview/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora suite');
  });
  test('suite_overview: h1 "Rethink how you build products"', async ({ page }) => {
    await page.goto('/suite-overview/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Rethink how you build products' || t.startsWith('Rethink how you build products'))).toBeTruthy();
  });
  test('suite_overview: h2 "Praxora software is built for "', async ({ page }) => {
    await page.goto('/suite-overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora software is built for product teams' || t.startsWith('Praxora software is built for product teams'))).toBeTruthy();
  });
  test('suite_overview: h2 "Everything you need"', async ({ page }) => {
    await page.goto('/suite-overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Everything you need' || t.startsWith('Everything you need'))).toBeTruthy();
  });
  test('suite_overview: h3 "Roadmap your path to success"', async ({ page }) => {
    await page.goto('/suite-overview/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Roadmap your path to success' || t.startsWith('Roadmap your path to success'))).toBeTruthy();
  });
  test('suite_overview: header link "Praxora"', async ({ page }) => {
    await page.goto('/suite-overview/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('suite_overview: nav link "Product overviewAccelerate pro"', async ({ page }) => {
    await page.goto('/suite-overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewAccelerate product development' || t.startsWith('Product overviewAccelerate product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('suite_overview: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/suite-overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('suite_overview: nav link "Praxora DiscoveryOrganize cust"', async ({ page }) => {
    await page.goto('/suite-overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryOrganize customer interviews' || t.startsWith('Praxora DiscoveryOrganize customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - academy_certifications', () => {
  test('academy_certifications: title matches GT', async ({ page }) => {
    await page.goto('/academy/certifications/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora academy certifications');
  });
  test('academy_certifications: h1 "Become Praxora Roadmaps certif"', async ({ page }) => {
    await page.goto('/academy/certifications/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Become Praxora Roadmaps certified' || t.startsWith('Become Praxora Roadmaps certified'))).toBeTruthy();
  });
  test('academy_certifications: h2 "Hear from past graduates"', async ({ page }) => {
    await page.goto('/academy/certifications/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Hear from past graduates' || t.startsWith('Hear from past graduates'))).toBeTruthy();
  });
  test('academy_certifications: h4 "Get notified about future Prax"', async ({ page }) => {
    await page.goto('/academy/certifications/');
    const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Get notified about future Praxora events' || t.startsWith('Get notified about future Praxora events'))).toBeTruthy();
  });
  test('academy_certifications: header link "Praxora"', async ({ page }) => {
    await page.goto('/academy/certifications/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('academy_certifications: nav link "Platform overviewSimplify your"', async ({ page }) => {
    await page.goto('/academy/certifications/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform overviewSimplify your product workflow' || t.startsWith('Platform overviewSimplify your product workflow')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('academy_certifications: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/academy/certifications/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('academy_certifications: nav link "Praxora DiscoveryOrganize cust"', async ({ page }) => {
    await page.goto('/academy/certifications/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryOrganize customer interviews' || t.startsWith('Praxora DiscoveryOrganize customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - academy_events', () => {
  test('academy_events: title matches GT', async ({ page }) => {
    await page.goto('/academy/events/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora events');
  });
  test('academy_events: h1 "Attend events with Praxora exp"', async ({ page }) => {
    await page.goto('/academy/events/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Attend events with Praxora experts' || t.startsWith('Attend events with Praxora experts'))).toBeTruthy();
  });
  test('academy_events: h3 "Watch tutorial replays"', async ({ page }) => {
    await page.goto('/academy/events/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Watch tutorial replays' || t.startsWith('Watch tutorial replays'))).toBeTruthy();
  });
  test('academy_events: h4 "Sign up to hear about our futu"', async ({ page }) => {
    await page.goto('/academy/events/');
    const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Sign up to hear about our future events' || t.startsWith('Sign up to hear about our future events'))).toBeTruthy();
  });
  test('academy_events: h5 "How PMs create enterprise-appr"', async ({ page }) => {
    await page.goto('/academy/events/');
    const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How PMs create enterprise-approved applications with AI' || t.startsWith('How PMs create enterprise-approved applications with AI'))).toBeTruthy();
  });
  test('academy_events: header link "Praxora"', async ({ page }) => {
    await page.goto('/academy/events/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('academy_events: nav link "Platform overviewSimplify how "', async ({ page }) => {
    await page.goto('/academy/events/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform overviewSimplify how you build products' || t.startsWith('Platform overviewSimplify how you build products')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('academy_events: nav link "Praxora RoadmapsTurn strategy "', async ({ page }) => {
    await page.goto('/academy/events/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsTurn strategy into plans' || t.startsWith('Praxora RoadmapsTurn strategy into plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('academy_events: nav link "Praxora DiscoveryOrganize cust"', async ({ page }) => {
    await page.goto('/academy/events/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryOrganize customer research' || t.startsWith('Praxora DiscoveryOrganize customer research')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - blog_introducing_the_ai_prompt_library_for_product_development_teams', () => {
  test('blog_introducing_the_ai_prompt_library_for_product_development_teams: title matches GT', async ({ page }) => {
    await page.goto('/blog/introducing-the-ai-prompt-library-for-product-development-teams/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('meet the ai prompt library built for pro');
  });
  test('blog_introducing_the_ai_prompt_library_for_product_development_teams: h2 "Speed up product discovery"', async ({ page }) => {
    await page.goto('/blog/introducing-the-ai-prompt-library-for-product-development-teams/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Speed up product discovery' || t.startsWith('Speed up product discovery'))).toBeTruthy();
  });
  test('blog_introducing_the_ai_prompt_library_for_product_development_teams: h2 "Tie ideas to your strategic in"', async ({ page }) => {
    await page.goto('/blog/introducing-the-ai-prompt-library-for-product-development-teams/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Tie ideas to your strategic initiatives' || t.startsWith('Tie ideas to your strategic initiatives'))).toBeTruthy();
  });
  test('blog_introducing_the_ai_prompt_library_for_product_development_teams: h2 "Standardize feature definition"', async ({ page }) => {
    await page.goto('/blog/introducing-the-ai-prompt-library-for-product-development-teams/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Standardize feature definitions' || t.startsWith('Standardize feature definitions'))).toBeTruthy();
  });
  test('blog_introducing_the_ai_prompt_library_for_product_development_teams: header link "Praxora"', async ({ page }) => {
    await page.goto('/blog/introducing-the-ai-prompt-library-for-product-development-teams/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('blog_introducing_the_ai_prompt_library_for_product_development_teams: nav link "Product overviewSpeed up produ"', async ({ page }) => {
    await page.goto('/blog/introducing-the-ai-prompt-library-for-product-development-teams/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewSpeed up product development' || t.startsWith('Product overviewSpeed up product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('blog_introducing_the_ai_prompt_library_for_product_development_teams: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/blog/introducing-the-ai-prompt-library-for-product-development-teams/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('blog_introducing_the_ai_prompt_library_for_product_development_teams: nav link "Praxora DiscoveryRun customer "', async ({ page }) => {
    await page.goto('/blog/introducing-the-ai-prompt-library-for-product-development-teams/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryRun customer interviews' || t.startsWith('Praxora DiscoveryRun customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - product_integrations', () => {
  test('product_integrations: title matches GT', async ({ page }) => {
    await page.goto('/product/integrations/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('find 65+ praxora roadmaps software integ');
  });
  test('product_integrations: h1 "Connect the tools your team lo"', async ({ page }) => {
    await page.goto('/product/integrations/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Connect the tools your team loves' || t.startsWith('Connect the tools your team loves'))).toBeTruthy();
  });
  test('product_integrations: h2 "Favorite integrations"', async ({ page }) => {
    await page.goto('/product/integrations/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Favorite integrations' || t.startsWith('Favorite integrations'))).toBeTruthy();
  });
  test('product_integrations: h2 "Every integration"', async ({ page }) => {
    await page.goto('/product/integrations/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Every integration' || t.startsWith('Every integration'))).toBeTruthy();
  });
  test('product_integrations: h3 "AI coding agents"', async ({ page }) => {
    await page.goto('/product/integrations/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'AI coding agents' || t.startsWith('AI coding agents'))).toBeTruthy();
  });
  test('product_integrations: header link "Praxora"', async ({ page }) => {
    await page.goto('/product/integrations/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('product_integrations: nav link "Product overviewStreamline pro"', async ({ page }) => {
    await page.goto('/product/integrations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewStreamline product development' || t.startsWith('Product overviewStreamline product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('product_integrations: nav link "Praxora RoadmapsLink strategy "', async ({ page }) => {
    await page.goto('/product/integrations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsLink strategy to plans' || t.startsWith('Praxora RoadmapsLink strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('product_integrations: nav link "Praxora DiscoveryManage custom"', async ({ page }) => {
    await page.goto('/product/integrations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage customer interviews' || t.startsWith('Praxora DiscoveryManage customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - roadmapping_guide', () => {
  test('roadmapping_guide: title matches GT', async ({ page }) => {
    await page.goto('/roadmapping/guide/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('free resources for product teams');
  });
  test('roadmapping_guide: h1 "Guide for product leaders"', async ({ page }) => {
    await page.goto('/roadmapping/guide/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Guide for product leaders' || t.startsWith('Guide for product leaders'))).toBeTruthy();
  });
  test('roadmapping_guide: h3 "Popular answers"', async ({ page }) => {
    await page.goto('/roadmapping/guide/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Popular answers' || t.startsWith('Popular answers'))).toBeTruthy();
  });
  test('roadmapping_guide: h3 "Most-used guided templates"', async ({ page }) => {
    await page.goto('/roadmapping/guide/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Most-used guided templates' || t.startsWith('Most-used guided templates'))).toBeTruthy();
  });
  test('roadmapping_guide: h3 "Get answers from product exper"', async ({ page }) => {
    await page.goto('/roadmapping/guide/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Get answers from product experts' || t.startsWith('Get answers from product experts'))).toBeTruthy();
  });
  test('roadmapping_guide: header link "Praxora"', async ({ page }) => {
    await page.goto('/roadmapping/guide/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('roadmapping_guide: nav link "Platform overviewAccelerate pr"', async ({ page }) => {
    await page.goto('/roadmapping/guide/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform overviewAccelerate product development' || t.startsWith('Platform overviewAccelerate product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('roadmapping_guide: nav link "Praxora RoadmapsAlign strategy"', async ({ page }) => {
    await page.goto('/roadmapping/guide/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsAlign strategy to plans' || t.startsWith('Praxora RoadmapsAlign strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('roadmapping_guide: nav link "Praxora DiscoveryGuide custome"', async ({ page }) => {
    await page.goto('/roadmapping/guide/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryGuide customer interviews' || t.startsWith('Praxora DiscoveryGuide customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_business_strategy', () => {
  test('team_business_strategy: title matches GT', async ({ page }) => {
    await page.goto('/team/business-strategy/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora software use case');
  });
  test('team_business_strategy: h1 "Drive business growth"', async ({ page }) => {
    await page.goto('/team/business-strategy/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Drive business growth' || t.startsWith('Drive business growth'))).toBeTruthy();
  });
  test('team_business_strategy: h3 "Core capabilities for business"', async ({ page }) => {
    await page.goto('/team/business-strategy/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core capabilities for business strategy teams' || t.startsWith('Core capabilities for business strategy teams'))).toBeTruthy();
  });
  test('team_business_strategy: h3 "Want to get started?"', async ({ page }) => {
    await page.goto('/team/business-strategy/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Want to get started?' || t.startsWith('Want to get started?'))).toBeTruthy();
  });
  test('team_business_strategy: h3 "See more ways Praxora software"', async ({ page }) => {
    await page.goto('/team/business-strategy/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See more ways Praxora software can help' || t.startsWith('See more ways Praxora software can help'))).toBeTruthy();
  });
  test('team_business_strategy: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/business-strategy/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_business_strategy: nav link "Product overviewAccelerate pro"', async ({ page }) => {
    await page.goto('/team/business-strategy/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewAccelerate product development' || t.startsWith('Product overviewAccelerate product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_business_strategy: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/team/business-strategy/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_business_strategy: nav link "Praxora DiscoveryOrganize cust"', async ({ page }) => {
    await page.goto('/team/business-strategy/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryOrganize customer interviews' || t.startsWith('Praxora DiscoveryOrganize customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_engineering', () => {
  test('team_engineering: title matches GT', async ({ page }) => {
    await page.goto('/team/engineering/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora software use cases');
  });
  test('team_engineering: h1 "Align engineering with strateg"', async ({ page }) => {
    await page.goto('/team/engineering/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Align engineering with strategy' || t.startsWith('Align engineering with strategy'))).toBeTruthy();
  });
  test('team_engineering: h3 "Core capabilities for engineer"', async ({ page }) => {
    await page.goto('/team/engineering/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core capabilities for engineering teams' || t.startsWith('Core capabilities for engineering teams'))).toBeTruthy();
  });
  test('team_engineering: h3 "Ready to begin today?"', async ({ page }) => {
    await page.goto('/team/engineering/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Ready to begin today?' || t.startsWith('Ready to begin today?'))).toBeTruthy();
  });
  test('team_engineering: h3 "See more ways Praxora software"', async ({ page }) => {
    await page.goto('/team/engineering/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See more ways Praxora software helps' || t.startsWith('See more ways Praxora software helps'))).toBeTruthy();
  });
  test('team_engineering: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/engineering/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_engineering: nav link "Product overviewSpeed up produ"', async ({ page }) => {
    await page.goto('/team/engineering/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewSpeed up product development' || t.startsWith('Product overviewSpeed up product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_engineering: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/team/engineering/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_engineering: nav link "Praxora DiscoveryManage custom"', async ({ page }) => {
    await page.goto('/team/engineering/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage customer interviews' || t.startsWith('Praxora DiscoveryManage customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_information_technology', () => {
  test('team_information_technology: title matches GT', async ({ page }) => {
    await page.goto('/team/information-technology/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora software use case');
  });
  test('team_information_technology: h1 "Plan a strategic IT roadmap"', async ({ page }) => {
    await page.goto('/team/information-technology/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Plan a strategic IT roadmap' || t.startsWith('Plan a strategic IT roadmap'))).toBeTruthy();
  });
  test('team_information_technology: h3 "Core capabilities for IT teams"', async ({ page }) => {
    await page.goto('/team/information-technology/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core capabilities for IT teams' || t.startsWith('Core capabilities for IT teams'))).toBeTruthy();
  });
  test('team_information_technology: h3 "Ready to begin today?"', async ({ page }) => {
    await page.goto('/team/information-technology/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Ready to begin today?' || t.startsWith('Ready to begin today?'))).toBeTruthy();
  });
  test('team_information_technology: h3 "See more ways Praxora software"', async ({ page }) => {
    await page.goto('/team/information-technology/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See more ways Praxora software can help' || t.startsWith('See more ways Praxora software can help'))).toBeTruthy();
  });
  test('team_information_technology: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/information-technology/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_information_technology: nav link "Product overviewStreamline pro"', async ({ page }) => {
    await page.goto('/team/information-technology/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewStreamline product development' || t.startsWith('Product overviewStreamline product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_information_technology: nav link "Praxora RoadmapsLink strategy "', async ({ page }) => {
    await page.goto('/team/information-technology/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsLink strategy to plans' || t.startsWith('Praxora RoadmapsLink strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_information_technology: nav link "Praxora DiscoveryManage custom"', async ({ page }) => {
    await page.goto('/team/information-technology/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage customer interviews' || t.startsWith('Praxora DiscoveryManage customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_marketing', () => {
  test('team_marketing: title matches GT', async ({ page }) => {
    await page.goto('/team/marketing/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora software use case');
  });
  test('team_marketing: h1 "Build winning marketing plans"', async ({ page }) => {
    await page.goto('/team/marketing/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Build winning marketing plans' || t.startsWith('Build winning marketing plans'))).toBeTruthy();
  });
  test('team_marketing: h3 "Core capabilities for marketin"', async ({ page }) => {
    await page.goto('/team/marketing/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core capabilities for marketing teams' || t.startsWith('Core capabilities for marketing teams'))).toBeTruthy();
  });
  test('team_marketing: h3 "Want to get started?"', async ({ page }) => {
    await page.goto('/team/marketing/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Want to get started?' || t.startsWith('Want to get started?'))).toBeTruthy();
  });
  test('team_marketing: h3 "See more ways Praxora software"', async ({ page }) => {
    await page.goto('/team/marketing/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See more ways Praxora software can help' || t.startsWith('See more ways Praxora software can help'))).toBeTruthy();
  });
  test('team_marketing: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/marketing/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_marketing: nav link "Product overviewSimplify produ"', async ({ page }) => {
    await page.goto('/team/marketing/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewSimplify product development' || t.startsWith('Product overviewSimplify product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_marketing: nav link "Praxora RoadmapsLink strategy "', async ({ page }) => {
    await page.goto('/team/marketing/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsLink strategy to delivery' || t.startsWith('Praxora RoadmapsLink strategy to delivery')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_marketing: nav link "Praxora DiscoveryHandle custom"', async ({ page }) => {
    await page.goto('/team/marketing/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryHandle customer interviews' || t.startsWith('Praxora DiscoveryHandle customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_overview', () => {
  test('team_overview: title matches GT', async ({ page }) => {
    await page.goto('/team/overview/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('team collaboration for product success');
  });
  test('team_overview: h1 "Equip every team across your c"', async ({ page }) => {
    await page.goto('/team/overview/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Equip every team across your company' || t.startsWith('Equip every team across your company'))).toBeTruthy();
  });
  test('team_overview: h2 "Product management"', async ({ page }) => {
    await page.goto('/team/overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product management' || t.startsWith('Product management'))).toBeTruthy();
  });
  test('team_overview: h2 "Product operations"', async ({ page }) => {
    await page.goto('/team/overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product operations' || t.startsWith('Product operations'))).toBeTruthy();
  });
  test('team_overview: h2 "Program management"', async ({ page }) => {
    await page.goto('/team/overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Program management' || t.startsWith('Program management'))).toBeTruthy();
  });
  test('team_overview: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/overview/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_overview: nav link "Product overviewSimplify produ"', async ({ page }) => {
    await page.goto('/team/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewSimplify product development' || t.startsWith('Product overviewSimplify product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_overview: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/team/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_overview: nav link "Praxora DiscoveryOrganize cust"', async ({ page }) => {
    await page.goto('/team/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryOrganize customer interviews' || t.startsWith('Praxora DiscoveryOrganize customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_product_management', () => {
  test('team_product_management: title matches GT', async ({ page }) => {
    await page.goto('/team/product-management/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora software');
  });
  test('team_product_management: h1 "Create products customers love"', async ({ page }) => {
    await page.goto('/team/product-management/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Create products customers love' || t.startsWith('Create products customers love'))).toBeTruthy();
  });
  test('team_product_management: h3 "Core capabilities for product "', async ({ page }) => {
    await page.goto('/team/product-management/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core capabilities for product management teams' || t.startsWith('Core capabilities for product management teams'))).toBeTruthy();
  });
  test('team_product_management: h3 "Ready to get started?"', async ({ page }) => {
    await page.goto('/team/product-management/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Ready to get started?' || t.startsWith('Ready to get started?'))).toBeTruthy();
  });
  test('team_product_management: h3 "See more ways Praxora software"', async ({ page }) => {
    await page.goto('/team/product-management/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See more ways Praxora software can help' || t.startsWith('See more ways Praxora software can help'))).toBeTruthy();
  });
  test('team_product_management: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/product-management/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_product_management: nav link "Product overviewAccelerate pro"', async ({ page }) => {
    await page.goto('/team/product-management/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewAccelerate product development' || t.startsWith('Product overviewAccelerate product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_product_management: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/team/product-management/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_product_management: nav link "Praxora DiscoveryOrganize cust"', async ({ page }) => {
    await page.goto('/team/product-management/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryOrganize customer interviews' || t.startsWith('Praxora DiscoveryOrganize customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_product_operations', () => {
  test('team_product_operations: title matches GT', async ({ page }) => {
    await page.goto('/team/product-operations/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora software');
  });
  test('team_product_operations: h1 "Deliver product excellence"', async ({ page }) => {
    await page.goto('/team/product-operations/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Deliver product excellence' || t.startsWith('Deliver product excellence'))).toBeTruthy();
  });
  test('team_product_operations: h3 "Key capabilities for product o"', async ({ page }) => {
    await page.goto('/team/product-operations/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Key capabilities for product operations teams' || t.startsWith('Key capabilities for product operations teams'))).toBeTruthy();
  });
  test('team_product_operations: h3 "Ready to begin today?"', async ({ page }) => {
    await page.goto('/team/product-operations/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Ready to begin today?' || t.startsWith('Ready to begin today?'))).toBeTruthy();
  });
  test('team_product_operations: h3 "See more ways Praxora software"', async ({ page }) => {
    await page.goto('/team/product-operations/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See more ways Praxora software can help' || t.startsWith('See more ways Praxora software can help'))).toBeTruthy();
  });
  test('team_product_operations: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/product-operations/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_product_operations: nav link "Product overviewStreamline pro"', async ({ page }) => {
    await page.goto('/team/product-operations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewStreamline product development' || t.startsWith('Product overviewStreamline product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_product_operations: nav link "Praxora RoadmapsLink strategy "', async ({ page }) => {
    await page.goto('/team/product-operations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsLink strategy to plans' || t.startsWith('Praxora RoadmapsLink strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_product_operations: nav link "Praxora DiscoveryManage custom"', async ({ page }) => {
    await page.goto('/team/product-operations/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage customer interviews' || t.startsWith('Praxora DiscoveryManage customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_program_management', () => {
  test('team_program_management: title matches GT', async ({ page }) => {
    await page.goto('/team/program-management/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora software use cases');
  });
  test('team_program_management: h1 "Steer work across your portfol"', async ({ page }) => {
    await page.goto('/team/program-management/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Steer work across your portfolio' || t.startsWith('Steer work across your portfolio'))).toBeTruthy();
  });
  test('team_program_management: h3 "Core capabilities for program "', async ({ page }) => {
    await page.goto('/team/program-management/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core capabilities for program management teams' || t.startsWith('Core capabilities for program management teams'))).toBeTruthy();
  });
  test('team_program_management: h3 "Ready to get going?"', async ({ page }) => {
    await page.goto('/team/program-management/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Ready to get going?' || t.startsWith('Ready to get going?'))).toBeTruthy();
  });
  test('team_program_management: h3 "See more ways Praxora software"', async ({ page }) => {
    await page.goto('/team/program-management/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See more ways Praxora software can help' || t.startsWith('See more ways Praxora software can help'))).toBeTruthy();
  });
  test('team_program_management: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/program-management/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_program_management: nav link "Product overviewStreamline pro"', async ({ page }) => {
    await page.goto('/team/program-management/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewStreamline product development' || t.startsWith('Product overviewStreamline product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_program_management: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/team/program-management/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to work' || t.startsWith('Praxora RoadmapsConnect strategy to work')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_program_management: nav link "Praxora DiscoveryManage user i"', async ({ page }) => {
    await page.goto('/team/program-management/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage user interviews' || t.startsWith('Praxora DiscoveryManage user interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_project_management', () => {
  test('team_project_management: title matches GT', async ({ page }) => {
    await page.goto('/team/project-management/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora software use case');
  });
  test('team_project_management: h1 "Deliver every project on time"', async ({ page }) => {
    await page.goto('/team/project-management/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Deliver every project on time' || t.startsWith('Deliver every project on time'))).toBeTruthy();
  });
  test('team_project_management: h3 "Core capabilities for project "', async ({ page }) => {
    await page.goto('/team/project-management/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core capabilities for project management teams' || t.startsWith('Core capabilities for project management teams'))).toBeTruthy();
  });
  test('team_project_management: h3 "Ready to get started?"', async ({ page }) => {
    await page.goto('/team/project-management/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Ready to get started?' || t.startsWith('Ready to get started?'))).toBeTruthy();
  });
  test('team_project_management: h3 "See more ways Praxora software"', async ({ page }) => {
    await page.goto('/team/project-management/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See more ways Praxora software can help' || t.startsWith('See more ways Praxora software can help'))).toBeTruthy();
  });
  test('team_project_management: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/project-management/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_project_management: nav link "Platform overviewAccelerate pr"', async ({ page }) => {
    await page.goto('/team/project-management/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Platform overviewAccelerate product development' || t.startsWith('Platform overviewAccelerate product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_project_management: nav link "Praxora RoadmapsTie strategy t"', async ({ page }) => {
    await page.goto('/team/project-management/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsTie strategy to delivery' || t.startsWith('Praxora RoadmapsTie strategy to delivery')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_project_management: nav link "Praxora DiscoveryRun customer "', async ({ page }) => {
    await page.goto('/team/project-management/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryRun customer interviews' || t.startsWith('Praxora DiscoveryRun customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - team_ux', () => {
  test('team_ux: title matches GT', async ({ page }) => {
    await page.goto('/team/ux/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('praxora software use case');
  });
  test('team_ux: h1 "Craft lovable experiences"', async ({ page }) => {
    await page.goto('/team/ux/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Craft lovable experiences' || t.startsWith('Craft lovable experiences'))).toBeTruthy();
  });
  test('team_ux: h3 "Core capabilities for UX teams"', async ({ page }) => {
    await page.goto('/team/ux/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Core capabilities for UX teams' || t.startsWith('Core capabilities for UX teams'))).toBeTruthy();
  });
  test('team_ux: h3 "Ready to get started?"', async ({ page }) => {
    await page.goto('/team/ux/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Ready to get started?' || t.startsWith('Ready to get started?'))).toBeTruthy();
  });
  test('team_ux: h3 "See more ways Praxora software"', async ({ page }) => {
    await page.goto('/team/ux/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'See more ways Praxora software can help' || t.startsWith('See more ways Praxora software can help'))).toBeTruthy();
  });
  test('team_ux: header link "Praxora"', async ({ page }) => {
    await page.goto('/team/ux/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('team_ux: nav link "Product overviewAccelerate pro"', async ({ page }) => {
    await page.goto('/team/ux/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewAccelerate product development' || t.startsWith('Product overviewAccelerate product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('team_ux: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/team/ux/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to plans' || t.startsWith('Praxora RoadmapsConnect strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('team_ux: nav link "Praxora DiscoveryRun your cust"', async ({ page }) => {
    await page.goto('/team/ux/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryRun your customer interviews' || t.startsWith('Praxora DiscoveryRun your customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - use_cases_overview', () => {
  test('use_cases_overview: title matches GT', async ({ page }) => {
    await page.goto('/use-cases/overview/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('explore praxora product management use c');
  });
  test('use_cases_overview: h1 "Take control of product develo"', async ({ page }) => {
    await page.goto('/use-cases/overview/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Take control of product development' || t.startsWith('Take control of product development'))).toBeTruthy();
  });
  test('use_cases_overview: h2 "Strategize"', async ({ page }) => {
    await page.goto('/use-cases/overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Strategize' || t.startsWith('Strategize'))).toBeTruthy();
  });
  test('use_cases_overview: h2 "Discover"', async ({ page }) => {
    await page.goto('/use-cases/overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Discover' || t.startsWith('Discover'))).toBeTruthy();
  });
  test('use_cases_overview: h2 "Capture"', async ({ page }) => {
    await page.goto('/use-cases/overview/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Capture' || t.startsWith('Capture'))).toBeTruthy();
  });
  test('use_cases_overview: header link "Praxora"', async ({ page }) => {
    await page.goto('/use-cases/overview/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('use_cases_overview: nav link "Product overviewStreamline pro"', async ({ page }) => {
    await page.goto('/use-cases/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewStreamline product development' || t.startsWith('Product overviewStreamline product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('use_cases_overview: nav link "Praxora RoadmapsLink strategy "', async ({ page }) => {
    await page.goto('/use-cases/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsLink strategy to plans' || t.startsWith('Praxora RoadmapsLink strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('use_cases_overview: nav link "Praxora DiscoveryManage custom"', async ({ page }) => {
    await page.goto('/use-cases/overview/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage customer interviews' || t.startsWith('Praxora DiscoveryManage customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - roadmapping_guide_dictionary', () => {
  test('roadmapping_guide_dictionary: title matches GT', async ({ page }) => {
    await page.goto('/roadmapping/guide/dictionary/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('product development definitions');
  });
  test('roadmapping_guide_dictionary: h1 "Product development dictionary"', async ({ page }) => {
    await page.goto('/roadmapping/guide/dictionary/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product development dictionary' || t.startsWith('Product development dictionary'))).toBeTruthy();
  });
  test('roadmapping_guide_dictionary: h2 "Read next"', async ({ page }) => {
    await page.goto('/roadmapping/guide/dictionary/');
    const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Read next' || t.startsWith('Read next'))).toBeTruthy();
  });
  test('roadmapping_guide_dictionary: h5 "How to build a standout roadma"', async ({ page }) => {
    await page.goto('/roadmapping/guide/dictionary/');
    const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'How to build a standout roadmap' || t.startsWith('How to build a standout roadmap'))).toBeTruthy();
  });
  test('roadmapping_guide_dictionary: h5 "Latest functionality in Praxor"', async ({ page }) => {
    await page.goto('/roadmapping/guide/dictionary/');
    const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Latest functionality in Praxora Roadmaps' || t.startsWith('Latest functionality in Praxora Roadmaps'))).toBeTruthy();
  });
  test('roadmapping_guide_dictionary: header link "Praxora"', async ({ page }) => {
    await page.goto('/roadmapping/guide/dictionary/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('roadmapping_guide_dictionary: nav link "Product overviewStreamline pro"', async ({ page }) => {
    await page.goto('/roadmapping/guide/dictionary/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewStreamline product development' || t.startsWith('Product overviewStreamline product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('roadmapping_guide_dictionary: nav link "Praxora RoadmapsLink strategy "', async ({ page }) => {
    await page.goto('/roadmapping/guide/dictionary/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsLink strategy to plans' || t.startsWith('Praxora RoadmapsLink strategy to plans')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('roadmapping_guide_dictionary: nav link "Praxora DiscoveryManage custom"', async ({ page }) => {
    await page.goto('/roadmapping/guide/dictionary/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryManage customer interviews' || t.startsWith('Praxora DiscoveryManage customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - roadmapping_guide_product_templates', () => {
  test('roadmapping_guide_product_templates: title matches GT', async ({ page }) => {
    await page.goto('/roadmapping/guide/product-templates/');
    const t = (await page.title()).toLowerCase();
    expect(t).toContain('guided template collection');
  });
  test('roadmapping_guide_product_templates: h1 "Curated templates"', async ({ page }) => {
    await page.goto('/roadmapping/guide/product-templates/');
    const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Curated templates' || t.startsWith('Curated templates'))).toBeTruthy();
  });
  test('roadmapping_guide_product_templates: h3 "Get answers from product exper"', async ({ page }) => {
    await page.goto('/roadmapping/guide/product-templates/');
    const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Get answers from product experts' || t.startsWith('Get answers from product experts'))).toBeTruthy();
  });
  test('roadmapping_guide_product_templates: h5 "10Ps marketing matrix"', async ({ page }) => {
    await page.goto('/roadmapping/guide/product-templates/');
    const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '10Ps marketing matrix' || t.startsWith('10Ps marketing matrix'))).toBeTruthy();
  });
  test('roadmapping_guide_product_templates: h5 "2026 monthly calendar"', async ({ page }) => {
    await page.goto('/roadmapping/guide/product-templates/');
    const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === '2026 monthly calendar' || t.startsWith('2026 monthly calendar'))).toBeTruthy();
  });
  test('roadmapping_guide_product_templates: header link "Praxora"', async ({ page }) => {
    await page.goto('/roadmapping/guide/product-templates/');
    const links = page.locator('header a, [role="banner"] a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora' || t.startsWith('Praxora')), 'link text in header').toBeTruthy();
  });
  test('roadmapping_guide_product_templates: nav link "Product overviewStreamline pro"', async ({ page }) => {
    await page.goto('/roadmapping/guide/product-templates/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Product overviewStreamline product development' || t.startsWith('Product overviewStreamline product development')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('suite-overview')), 'href fragment present').toBeTruthy();
  });
  test('roadmapping_guide_product_templates: nav link "Praxora RoadmapsConnect strate"', async ({ page }) => {
    await page.goto('/roadmapping/guide/product-templates/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora RoadmapsConnect strategy to work' || t.startsWith('Praxora RoadmapsConnect strategy to work')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
  test('roadmapping_guide_product_templates: nav link "Praxora DiscoveryRun customer "', async ({ page }) => {
    await page.goto('/roadmapping/guide/product-templates/');
    const links = page.locator('nav a');
    const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
    expect(texts.some(t => t === 'Praxora DiscoveryRun customer interviews' || t.startsWith('Praxora DiscoveryRun customer interviews')), 'link text in nav').toBeTruthy();
    const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
    expect(hrefs.some(h => h.includes('overview')), 'href fragment present').toBeTruthy();
  });
});

test.describe('Functional - Routing', () => {
  test('navigate to signup via "PM coding tool to build truste"', async ({ page }) => {
    await page.goto('/');
    const link = page.locator('a[href*="signup"]').first();
    expect(await link.count(), 'nav link to signup exists').toBeGreaterThan(0);
    await link.click();
    await page.waitForTimeout(1200);
    expect(page.url().toLowerCase(), 'URL changed to destination').toContain('signup');
    const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
    expect(bodyText, 'destination distinctive content shown').toContain('Begin your free trial');
  });
  test('navigate to suite_overview via "Platform overviewSpeed up prod"', async ({ page }) => {
    await page.goto('/');
    const link = page.locator('a[href*="suite-overview"]').first();
    expect(await link.count(), 'nav link to suite_overview exists').toBeGreaterThan(0);
    await link.click();
    await page.waitForTimeout(1200);
    expect(page.url().toLowerCase(), 'URL changed to destination').toContain('suite-overview');
    const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
    expect(bodyText, 'destination distinctive content shown').toContain('Rethink how you build products');
  });
  test('navigate to team_overview via "Praxora RoadmapsAlign strategy"', async ({ page }) => {
    await page.goto('/');
    const link = page.locator('a[href*="overview"]').first();
    expect(await link.count(), 'nav link to team_overview exists').toBeGreaterThan(0);
    await link.click();
    await page.waitForTimeout(1200);
    expect(page.url().toLowerCase(), 'URL changed to destination').toContain('overview');
    const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
    expect(bodyText, 'destination distinctive content shown').toContain('Equip every team across your company');
  });
});