Datasets:
File size: 226,758 Bytes
f63c0fb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 | 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('fynora');
});
test('homepage: h1 "Meet Fynora. Your AI-powered f"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Meet Fynora. Your AI-powered financial operations platform.' || t.startsWith('Meet Fynora. Your AI-powered financial operations platform.'))).toBeTruthy();
});
test('homepage: h2 "Features"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Features' || t.startsWith('Features'))).toBeTruthy();
});
test('homepage: h2 "Cut hours from payments with A"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cut hours from payments with AI-enhanced AP automation' || t.startsWith('Cut hours from payments with AI-enhanced AP automation'))).toBeTruthy();
});
test('homepage: h2 "Improve cash flow with credit,"', async ({ page }) => {
await page.goto('/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Improve cash flow with credit, guardrails, and AI-powered expense precision' || t.startsWith('Improve cash flow with credit, guardrails, and AI-powered expense precision'))).toBeTruthy();
});
test('homepage: nav link "Accounts Payable"', 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 === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('homepage: nav link "Accounts Receivable"', 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 === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('homepage: nav link "Cash Flow Forecasting"', 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 === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('homepage: nav link "Integrations"', 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 === 'Integrations' || t.startsWith('Integrations')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - about_us', () => {
test('about_us: title matches GT', async ({ page }) => {
await page.goto('/about-us/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('about us');
});
test('about_us: h1 "Reinventing the financial back"', async ({ page }) => {
await page.goto('/about-us/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Reinventing the financial back office for teams' || t.startsWith('Reinventing the financial back office for teams'))).toBeTruthy();
});
test('about_us: h2 "Our mission is to make it effo"', async ({ page }) => {
await page.goto('/about-us/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our mission is to make it effortless to connect and get paid.' || t.startsWith('Our mission is to make it effortless to connect and get paid.'))).toBeTruthy();
});
test('about_us: h2 "Tackling a huge problem"', async ({ page }) => {
await page.goto('/about-us/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Tackling a huge problem' || t.startsWith('Tackling a huge problem'))).toBeTruthy();
});
test('about_us: h2 "Helping businesses grow faster"', async ({ page }) => {
await page.goto('/about-us/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Helping businesses grow faster' || t.startsWith('Helping businesses grow faster'))).toBeTruthy();
});
test('about_us: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/about-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('about_us: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/about-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('about_us: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/about-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('about_us: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/about-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - blog', () => {
test('blog: title matches GT', async ({ page }) => {
await page.goto('/blog/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the fynora blog');
});
test('blog: h1 "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 === 'Blog' || t.startsWith('Blog'))).toBeTruthy();
});
test('blog: h2 "Featured"', async ({ page }) => {
await page.goto('/blog/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Featured' || t.startsWith('Featured'))).toBeTruthy();
});
test('blog: h2 "More Blogs"', 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 === 'More Blogs' || t.startsWith('More Blogs'))).toBeTruthy();
});
test('blog: h2 "Latest Posts"', async ({ page }) => {
await page.goto('/blog/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('blog: nav link "Accounts Payable"', 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 === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('blog: nav link "Accounts Receivable"', 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 === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('blog: nav link "Cash Flow Forecasting"', 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 === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('blog: nav link "Integrations Overview"', 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 === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - business_templates', () => {
test('business_templates: title matches GT', async ({ page }) => {
await page.goto('/business-templates/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('free business templates for modern finan');
});
test('business_templates: h1 "Business Templates"', async ({ page }) => {
await page.goto('/business-templates/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Business Templates' || t.startsWith('Business Templates'))).toBeTruthy();
});
test('business_templates: h2 "Balance sheet template"', async ({ page }) => {
await page.goto('/business-templates/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Balance sheet template' || t.startsWith('Balance sheet template'))).toBeTruthy();
});
test('business_templates: h2 "Payment receipt template"', async ({ page }) => {
await page.goto('/business-templates/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Payment receipt template' || t.startsWith('Payment receipt template'))).toBeTruthy();
});
test('business_templates: h3 "Budget proposal template"', async ({ page }) => {
await page.goto('/business-templates/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Budget proposal template' || t.startsWith('Budget proposal template'))).toBeTruthy();
});
test('business_templates: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/business-templates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('business_templates: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/business-templates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('business_templates: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/business-templates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('business_templates: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/business-templates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - case_study', () => {
test('case_study: title matches GT', async ({ page }) => {
await page.goto('/case-study/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('customer stories');
});
test('case_study: h1 "Customer Stories"', async ({ page }) => {
await page.goto('/case-study/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Customer Stories' || t.startsWith('Customer Stories'))).toBeTruthy();
});
test('case_study: h1 "How Northpeak scales expense m"', async ({ page }) => {
await page.goto('/case-study/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How Northpeak scales expense management while earning rewards' || t.startsWith('How Northpeak scales expense management while earning rewards'))).toBeTruthy();
});
test('case_study: h2 "Most Recent"', async ({ page }) => {
await page.goto('/case-study/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Most Recent' || t.startsWith('Most Recent'))).toBeTruthy();
});
test('case_study: h2 "MedSync Simplified Their Finan"', async ({ page }) => {
await page.goto('/case-study/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'MedSync Simplified Their Financial Workflows' || t.startsWith('MedSync Simplified Their Financial Workflows'))).toBeTruthy();
});
test('case_study: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/case-study/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('case_study: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/case-study/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('case_study: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/case-study/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('case_study: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/case-study/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - compare', () => {
test('compare: title matches GT', async ({ page }) => {
await page.goto('/compare/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('compare fynora features against competit');
});
test('compare: h1 "See how Fynora stacks up again"', async ({ page }) => {
await page.goto('/compare/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'See how Fynora stacks up against other finance platforms' || t.startsWith('See how Fynora stacks up against other finance platforms'))).toBeTruthy();
});
test('compare: h1 "Discover a whole new level of "', async ({ page }) => {
await page.goto('/compare/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Discover a whole new level of efficiency' || t.startsWith('Discover a whole new level of efficiency'))).toBeTruthy();
});
test('compare: h2 "Which solution is the right fi"', async ({ page }) => {
await page.goto('/compare/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Which solution is the right fit for your team?' || t.startsWith('Which solution is the right fit for your team?'))).toBeTruthy();
});
test('compare: h2 "Your heading here"', async ({ page }) => {
await page.goto('/compare/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Your heading here' || t.startsWith('Your heading here'))).toBeTruthy();
});
test('compare: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/compare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('compare: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/compare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('compare: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/compare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('compare: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/compare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - console_signup', () => {
test('console_signup: title matches GT', async ({ page }) => {
await page.goto('/console-signup/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('accountant sign up');
});
test('console_signup: h1 "Deliver what clients want most"', async ({ page }) => {
await page.goto('/console-signup/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Deliver what clients want most. Clarity and command.' || t.startsWith('Deliver what clients want most. Clarity and command.'))).toBeTruthy();
});
test('console_signup: h2 "Begin today with a zero-risk t"', async ({ page }) => {
await page.goto('/console-signup/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Begin today with a zero-risk trial' || t.startsWith('Begin today with a zero-risk trial'))).toBeTruthy();
});
test('console_signup: h2 "Built for smoother financial w"', async ({ page }) => {
await page.goto('/console-signup/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Built for smoother financial workflows' || t.startsWith('Built for smoother financial workflows'))).toBeTruthy();
});
test('console_signup: h5 "Create your account to begin e"', async ({ page }) => {
await page.goto('/console-signup/');
const texts = (await page.locator('h5').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Create your account to begin exploring, and our team will follow up with answers.' || t.startsWith('Create your account to begin exploring, and our team will follow up with answers.'))).toBeTruthy();
});
test('console_signup: nav link "AP & AR"', async ({ page }) => {
await page.goto('/console-signup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'AP & AR' || t.startsWith('AP & AR')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('terms-of-service')), 'href fragment present').toBeTruthy();
});
test('console_signup: nav link "Spend & Expense"', async ({ page }) => {
await page.goto('/console-signup/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spend & Expense' || t.startsWith('Spend & Expense')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('spend-expense-terms-of-service')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - contact_us', () => {
test('contact_us: title matches GT', async ({ page }) => {
await page.goto('/contact-us/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('talk to us');
});
test('contact_us: h1 "Reach out"', async ({ page }) => {
await page.goto('/contact-us/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Reach out' || t.startsWith('Reach out'))).toBeTruthy();
});
test('contact_us: h2 "Have a question about your acc"', async ({ page }) => {
await page.goto('/contact-us/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Have a question about your account or a payment?' || t.startsWith('Have a question about your account or a payment?'))).toBeTruthy();
});
test('contact_us: h2 "Reach our sales experts"', async ({ page }) => {
await page.goto('/contact-us/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Reach our sales experts' || t.startsWith('Reach our sales experts'))).toBeTruthy();
});
test('contact_us: h2 "Other requests"', async ({ page }) => {
await page.goto('/contact-us/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Other requests' || t.startsWith('Other requests'))).toBeTruthy();
});
test('contact_us: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/contact-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('contact_us: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/contact-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('contact_us: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/contact-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('contact_us: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/contact-us/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - for_accountants', () => {
test('for_accountants: title matches GT', async ({ page }) => {
await page.goto('/for-accountants/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('accounting automation platform for accou');
});
test('for_accountants: h1 "Accounting automation software"', async ({ page }) => {
await page.goto('/for-accountants/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounting automation software for stronger client relationships' || t.startsWith('Accounting automation software for stronger client relationships'))).toBeTruthy();
});
test('for_accountants: h2 "Request a live demo"', async ({ page }) => {
await page.goto('/for-accountants/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Request a live demo' || t.startsWith('Request a live demo'))).toBeTruthy();
});
test('for_accountants: h2 "Schedule a live demo"', async ({ page }) => {
await page.goto('/for-accountants/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy();
});
test('for_accountants: h2 "Book your live demo"', async ({ page }) => {
await page.goto('/for-accountants/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy();
});
test('for_accountants: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/for-accountants/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('for_accountants: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/for-accountants/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('for_accountants: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/for-accountants/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('for_accountants: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/for-accountants/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - guides', () => {
test('guides: title matches GT', async ({ page }) => {
await page.goto('/guides/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora guides');
});
test('guides: h1 "Guides"', async ({ page }) => {
await page.goto('/guides/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Guides' || t.startsWith('Guides'))).toBeTruthy();
});
test('guides: h2 "Featured"', async ({ page }) => {
await page.goto('/guides/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Featured' || t.startsWith('Featured'))).toBeTruthy();
});
test('guides: h2 "More Guides"', async ({ page }) => {
await page.goto('/guides/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'More Guides' || t.startsWith('More Guides'))).toBeTruthy();
});
test('guides: h2 "Latest Reads"', async ({ page }) => {
await page.goto('/guides/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Reads' || t.startsWith('Latest Reads'))).toBeTruthy();
});
test('guides: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/guides/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('guides: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/guides/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('guides: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/guides/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('guides: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/guides/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - integrations', () => {
test('integrations: title matches GT', async ({ page }) => {
await page.goto('/integrations/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora accounting software integrations');
});
test('integrations: h1 "Integrations built to keep you"', async ({ page }) => {
await page.goto('/integrations/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations built to keep your business moving' || t.startsWith('Integrations built to keep your business moving'))).toBeTruthy();
});
test('integrations: h2 "Deep syncs that lead the field"', async ({ page }) => {
await page.goto('/integrations/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Deep syncs that lead the field' || t.startsWith('Deep syncs that lead the field'))).toBeTruthy();
});
test('integrations: h2 "Extend your integrations with "', async ({ page }) => {
await page.goto('/integrations/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Extend your integrations with Fynora' || t.startsWith('Extend your integrations with Fynora'))).toBeTruthy();
});
test('integrations: h2 "Heading goes here"', async ({ page }) => {
await page.goto('/integrations/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Heading goes here' || t.startsWith('Heading goes here'))).toBeTruthy();
});
test('integrations: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/integrations/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('integrations: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/integrations/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('integrations: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/integrations/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('integrations: nav link "Integrations"', async ({ page }) => {
await page.goto('/integrations/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations' || t.startsWith('Integrations')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - jobs', () => {
test('jobs: title matches GT', async ({ page }) => {
await page.goto('/jobs/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('careers at fynora');
});
test('jobs: h1 "Current openings at Fynora"', async ({ page }) => {
await page.goto('/jobs/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Current openings at Fynora' || t.startsWith('Current openings at Fynora'))).toBeTruthy();
});
test('jobs: h2 "Engineering (4)"', async ({ page }) => {
await page.goto('/jobs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Engineering (4)' || t.startsWith('Engineering (4)'))).toBeTruthy();
});
test('jobs: h2 "Product & Design (2)"', async ({ page }) => {
await page.goto('/jobs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Product & Design (2)' || t.startsWith('Product & Design (2)'))).toBeTruthy();
});
test('jobs: h2 "Finance & Operations (2)"', async ({ page }) => {
await page.goto('/jobs/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Finance & Operations (2)' || t.startsWith('Finance & Operations (2)'))).toBeTruthy();
});
test('jobs: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/jobs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('jobs: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/jobs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('jobs: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/jobs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('jobs: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/jobs/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - leadership', () => {
test('leadership: title matches GT', async ({ page }) => {
await page.goto('/leadership/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('our leadership team');
});
test('leadership: h1 "Leadership"', async ({ page }) => {
await page.goto('/leadership/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Leadership' || t.startsWith('Leadership'))).toBeTruthy();
});
test('leadership: h2 "Board of Directors"', async ({ page }) => {
await page.goto('/leadership/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Board of Directors' || t.startsWith('Board of Directors'))).toBeTruthy();
});
test('leadership: h2 "Emeritus"', async ({ page }) => {
await page.goto('/leadership/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Emeritus' || t.startsWith('Emeritus'))).toBeTruthy();
});
test('leadership: h2 "Follow Fynora to stay in the k"', async ({ page }) => {
await page.goto('/leadership/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Follow Fynora to stay in the know' || t.startsWith('Follow Fynora to stay in the know'))).toBeTruthy();
});
test('leadership: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/leadership/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('leadership: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/leadership/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('leadership: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/leadership/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('leadership: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/leadership/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - learning', () => {
test('learning: title matches GT', async ({ page }) => {
await page.goto('/learning/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('learning center');
});
test('learning: h1 "Resource Center"', async ({ page }) => {
await page.goto('/learning/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Resource Center' || t.startsWith('Resource Center'))).toBeTruthy();
});
test('learning: h2 "Latest Posts"', async ({ page }) => {
await page.goto('/learning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest Posts' || t.startsWith('Latest Posts'))).toBeTruthy();
});
test('learning: h2 "Understand tax compliance"', async ({ page }) => {
await page.goto('/learning/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Understand tax compliance' || t.startsWith('Understand tax compliance'))).toBeTruthy();
});
test('learning: h3 "What is a DUNS number and why "', async ({ page }) => {
await page.goto('/learning/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What is a DUNS number and why should your business care?' || t.startsWith('What is a DUNS number and why should your business care?'))).toBeTruthy();
});
test('learning: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('learning: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('learning: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('learning: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/learning/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - legal', () => {
test('legal: title matches GT', async ({ page }) => {
await page.goto('/legal/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('legal');
});
test('legal: h1 "Legal Agreements, Policies & D"', async ({ page }) => {
await page.goto('/legal/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Legal Agreements, Policies & Disclosures' || t.startsWith('Legal Agreements, Policies & Disclosures'))).toBeTruthy();
});
test('legal: h2 "Fynora AP & AR"', async ({ page }) => {
await page.goto('/legal/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora AP & AR' || t.startsWith('Fynora AP & AR'))).toBeTruthy();
});
test('legal: h2 "Fynora Spend & Expense"', async ({ page }) => {
await page.goto('/legal/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy();
});
test('legal: h2 "Invoxa Go"', async ({ page }) => {
await page.goto('/legal/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Invoxa Go' || t.startsWith('Invoxa Go'))).toBeTruthy();
});
test('legal: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/legal/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('legal: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/legal/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('legal: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/legal/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('legal: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/legal/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - partner_referral', () => {
test('partner_referral: title matches GT', async ({ page }) => {
await page.goto('/partner-referral/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('referral program');
});
test('partner_referral: h1 "Fynora Spend & Expense Partner"', async ({ page }) => {
await page.goto('/partner-referral/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Spend & Expense Partner Referral Portal' || t.startsWith('Fynora Spend & Expense Partner Referral Portal'))).toBeTruthy();
});
test('partner_referral: h2 "Fynora demo referral link"', async ({ page }) => {
await page.goto('/partner-referral/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora demo referral link' || t.startsWith('Fynora demo referral link'))).toBeTruthy();
});
test('partner_referral: h2 "Fynora self-start application "', async ({ page }) => {
await page.goto('/partner-referral/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora self-start application referral link' || t.startsWith('Fynora self-start application referral link'))).toBeTruthy();
});
test('partner_referral: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/partner-referral/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('partner_referral: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/partner-referral/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('partner_referral: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/partner-referral/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('partner_referral: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/partner-referral/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - press_release', () => {
test('press_release: title matches GT', async ({ page }) => {
await page.goto('/press-release/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('press releases');
});
test('press_release: h1 "Press Releases"', async ({ page }) => {
await page.goto('/press-release/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Press Releases' || t.startsWith('Press Releases'))).toBeTruthy();
});
test('press_release: h2 "Latest press releases"', async ({ page }) => {
await page.goto('/press-release/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Latest press releases' || t.startsWith('Latest press releases'))).toBeTruthy();
});
test('press_release: h2 "Follow Fynora to stay in the l"', async ({ page }) => {
await page.goto('/press-release/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Follow Fynora to stay in the loop' || t.startsWith('Follow Fynora to stay in the loop'))).toBeTruthy();
});
test('press_release: h3 "Fynora Names New Senior Leader"', async ({ page }) => {
await page.goto('/press-release/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Names New Senior Leaders and Rolls Out Team Structure Changes to Fuel Its Next Chapter of Exp' || t.startsWith('Fynora Names New Senior Leaders and Rolls Out Team Structure Changes to Fuel Its Next Chapter of Exp'))).toBeTruthy();
});
test('press_release: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/press-release/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('press_release: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/press-release/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('press_release: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/press-release/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('press_release: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/press-release/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product', () => {
test('product: title matches GT', async ({ page }) => {
await page.goto('/product/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the fynora financial operations platform');
});
test('product: h1 "Run AP, AR, spend, and expense"', async ({ page }) => {
await page.goto('/product/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Run AP, AR, spend, and expense—in one place' || t.startsWith('Run AP, AR, spend, and expense—in one place'))).toBeTruthy();
});
test('product: h2 "Automate and steer your busine"', async ({ page }) => {
await page.goto('/product/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Automate and steer your business with the unified financial operations platform built by Fynora' || t.startsWith('Automate and steer your business with the unified financial operations platform built by Fynora'))).toBeTruthy();
});
test('product: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => {
await page.goto('/product/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy();
});
test('product: h2 "Accounts payable and accounts "', async ({ page }) => {
await page.goto('/product/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts payable and accounts receivable capabilities' || t.startsWith('Accounts payable and accounts receivable capabilities'))).toBeTruthy();
});
test('product: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_accounts_payable', () => {
test('product_accounts_payable: title matches GT', async ({ page }) => {
await page.goto('/product/accounts-payable/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('accounts payable platform');
});
test('product_accounts_payable: h1 "Accelerate accounts payable wi"', async ({ page }) => {
await page.goto('/product/accounts-payable/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accelerate accounts payable with Fynora' || t.startsWith('Accelerate accounts payable with Fynora'))).toBeTruthy();
});
test('product_accounts_payable: h2 "Schedule a live demo"', async ({ page }) => {
await page.goto('/product/accounts-payable/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy();
});
test('product_accounts_payable: h2 "Book your live demo"', async ({ page }) => {
await page.goto('/product/accounts-payable/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy();
});
test('product_accounts_payable: h2 "Book a demo to get started"', async ({ page }) => {
await page.goto('/product/accounts-payable/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book a demo to get started' || t.startsWith('Book a demo to get started'))).toBeTruthy();
});
test('product_accounts_payable: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/accounts-payable/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_accounts_payable: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/accounts-payable/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_accounts_payable: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/accounts-payable/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_accounts_payable: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/accounts-payable/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - dl_best_practices_for_automating_business_finances', () => {
test('dl_best_practices_for_automating_business_finances: title matches GT', async ({ page }) => {
await page.goto('/dl/best-practices-for-automating-business-finances/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('smart strategies for automating your fin');
});
test('dl_best_practices_for_automating_business_finances: h1 "Smart strategies for automatin"', async ({ page }) => {
await page.goto('/dl/best-practices-for-automating-business-finances/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Smart strategies for automating your finances' || t.startsWith('Smart strategies for automating your finances'))).toBeTruthy();
});
test('dl_best_practices_for_automating_business_finances: h2 "Stories from our clients"', async ({ page }) => {
await page.goto('/dl/best-practices-for-automating-business-finances/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stories from our clients' || t.startsWith('Stories from our clients'))).toBeTruthy();
});
test('dl_best_practices_for_automating_business_finances: h2 "Watch the platform at work"', async ({ page }) => {
await page.goto('/dl/best-practices-for-automating-business-finances/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Watch the platform at work' || t.startsWith('Watch the platform at work'))).toBeTruthy();
});
test('dl_best_practices_for_automating_business_finances: h2 "See what finance teams are say"', async ({ page }) => {
await page.goto('/dl/best-practices-for-automating-business-finances/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'See what finance teams are saying' || t.startsWith('See what finance teams are saying'))).toBeTruthy();
});
test('dl_best_practices_for_automating_business_finances: nav link "AP & AR"', async ({ page }) => {
await page.goto('/dl/best-practices-for-automating-business-finances/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'AP & AR' || t.startsWith('AP & AR')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('terms-of-service')), 'href fragment present').toBeTruthy();
});
test('dl_best_practices_for_automating_business_finances: nav link "Spend & Expense"', async ({ page }) => {
await page.goto('/dl/best-practices-for-automating-business-finances/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spend & Expense' || t.startsWith('Spend & Expense')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('spend-expense-terms-of-service')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - integrations_microsoft_dynamics', () => {
test('integrations_microsoft_dynamics: title matches GT', async ({ page }) => {
await page.goto('/integrations/microsoft-dynamics/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('corveto erp integration');
});
test('integrations_microsoft_dynamics: h1 "Fynora + Corveth Dynamics: Sma"', async ({ page }) => {
await page.goto('/integrations/microsoft-dynamics/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora + Corveth Dynamics: Smarter AP, AR, spend, and expense management for teams' || t.startsWith('Fynora + Corveth Dynamics: Smarter AP, AR, spend, and expense management for teams'))).toBeTruthy();
});
test('integrations_microsoft_dynamics: h2 "Own your finance operations wi"', async ({ page }) => {
await page.goto('/integrations/microsoft-dynamics/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Own your finance operations with Fynora + Corveth Dynamics' || t.startsWith('Own your finance operations with Fynora + Corveth Dynamics'))).toBeTruthy();
});
test('integrations_microsoft_dynamics: h2 "Section title here"', async ({ page }) => {
await page.goto('/integrations/microsoft-dynamics/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Section title here' || t.startsWith('Section title here'))).toBeTruthy();
});
test('integrations_microsoft_dynamics: h2 "Drive your finance workflows w"', async ({ page }) => {
await page.goto('/integrations/microsoft-dynamics/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Drive your finance workflows with a best-in-class integration' || t.startsWith('Drive your finance workflows with a best-in-class integration'))).toBeTruthy();
});
test('integrations_microsoft_dynamics: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/integrations/microsoft-dynamics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('integrations_microsoft_dynamics: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/integrations/microsoft-dynamics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('integrations_microsoft_dynamics: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/integrations/microsoft-dynamics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('integrations_microsoft_dynamics: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/integrations/microsoft-dynamics/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - integrations_netsuite', () => {
test('integrations_netsuite: title matches GT', async ({ page }) => {
await page.goto('/integrations/netsuite/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('corevance erp integration');
});
test('integrations_netsuite: h1 "Fynora + Orbisuite: Smarter AP"', async ({ page }) => {
await page.goto('/integrations/netsuite/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora + Orbisuite: Smarter AP, AR, spend, and expense management' || t.startsWith('Fynora + Orbisuite: Smarter AP, AR, spend, and expense management'))).toBeTruthy();
});
test('integrations_netsuite: h2 "Own your finance operations wi"', async ({ page }) => {
await page.goto('/integrations/netsuite/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Own your finance operations with Fynora + Orbisuite' || t.startsWith('Own your finance operations with Fynora + Orbisuite'))).toBeTruthy();
});
test('integrations_netsuite: h2 "Why teams choose us"', async ({ page }) => {
await page.goto('/integrations/netsuite/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why teams choose us' || t.startsWith('Why teams choose us'))).toBeTruthy();
});
test('integrations_netsuite: h2 "Fuel your financial workflows "', async ({ page }) => {
await page.goto('/integrations/netsuite/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fuel your financial workflows with a truly best-in-class integration' || t.startsWith('Fuel your financial workflows with a truly best-in-class integration'))).toBeTruthy();
});
test('integrations_netsuite: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/integrations/netsuite/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('integrations_netsuite: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/integrations/netsuite/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('integrations_netsuite: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/integrations/netsuite/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('integrations_netsuite: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/integrations/netsuite/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - newsroom_media', () => {
test('newsroom_media: title matches GT', async ({ page }) => {
await page.goto('/newsroom/media/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('in the news');
});
test('newsroom_media: h1 "In the Press"', async ({ page }) => {
await page.goto('/newsroom/media/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'In the Press' || t.startsWith('In the Press'))).toBeTruthy();
});
test('newsroom_media: h2 "Recent media coverage"', async ({ page }) => {
await page.goto('/newsroom/media/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recent media coverage' || t.startsWith('Recent media coverage'))).toBeTruthy();
});
test('newsroom_media: h2 "Additional coverage"', async ({ page }) => {
await page.goto('/newsroom/media/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Additional coverage' || t.startsWith('Additional coverage'))).toBeTruthy();
});
test('newsroom_media: h2 "Follow Fynora to stay in the k"', async ({ page }) => {
await page.goto('/newsroom/media/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Follow Fynora to stay in the know' || t.startsWith('Follow Fynora to stay in the know'))).toBeTruthy();
});
test('newsroom_media: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/newsroom/media/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('newsroom_media: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/newsroom/media/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('newsroom_media: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/newsroom/media/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('newsroom_media: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/newsroom/media/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - partners_affiliates', () => {
test('partners_affiliates: title matches GT', async ({ page }) => {
await page.goto('/partners/affiliates/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('affiliates');
});
test('partners_affiliates: h1 "Built for affiliate growth"', async ({ page }) => {
await page.goto('/partners/affiliates/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Built for affiliate growth' || t.startsWith('Built for affiliate growth'))).toBeTruthy();
});
test('partners_affiliates: h2 "Who should apply?"', async ({ page }) => {
await page.goto('/partners/affiliates/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Who should apply?' || t.startsWith('Who should apply?'))).toBeTruthy();
});
test('partners_affiliates: h2 "What we offer"', async ({ page }) => {
await page.goto('/partners/affiliates/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What we offer' || t.startsWith('What we offer'))).toBeTruthy();
});
test('partners_affiliates: h2 "Join now and begin earning rew"', async ({ page }) => {
await page.goto('/partners/affiliates/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Join now and begin earning rewards' || t.startsWith('Join now and begin earning rewards'))).toBeTruthy();
});
test('partners_affiliates: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/partners/affiliates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('partners_affiliates: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/partners/affiliates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('partners_affiliates: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/partners/affiliates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('partners_affiliates: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/partners/affiliates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - partners_banks', () => {
test('partners_banks: title matches GT', async ({ page }) => {
await page.goto('/partners/banks/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the intelligent business payments platfo');
});
test('partners_banks: h1 "Make your bank the heart of ev"', async ({ page }) => {
await page.goto('/partners/banks/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Make your bank the heart of every business payment' || t.startsWith('Make your bank the heart of every business payment'))).toBeTruthy();
});
test('partners_banks: h2 "Move past basic online invoice"', async ({ page }) => {
await page.goto('/partners/banks/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Move past basic online invoice pay for your SMB clients' || t.startsWith('Move past basic online invoice pay for your SMB clients'))).toBeTruthy();
});
test('partners_banks: h2 "A full-cycle payments platform"', async ({ page }) => {
await page.goto('/partners/banks/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'A full-cycle payments platform that keeps your clients\' cash flow steady' || t.startsWith('A full-cycle payments platform that keeps your clients\' cash flow steady'))).toBeTruthy();
});
test('partners_banks: h2 "Growing customer value at your"', async ({ page }) => {
await page.goto('/partners/banks/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Growing customer value at your bank' || t.startsWith('Growing customer value at your bank'))).toBeTruthy();
});
test('partners_banks: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/partners/banks/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('partners_banks: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/partners/banks/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('partners_banks: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/partners/banks/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('partners_banks: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/partners/banks/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_accountant_console', () => {
test('product_accountant_console: title matches GT', async ({ page }) => {
await page.goto('/product/accountant-console/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the fynora accountant console');
});
test('product_accountant_console: h1 "Streamline operations and driv"', async ({ page }) => {
await page.goto('/product/accountant-console/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Streamline operations and drive your firm\'s growth' || t.startsWith('Streamline operations and drive your firm\'s growth'))).toBeTruthy();
});
test('product_accountant_console: h2 "Schedule a live demo"', async ({ page }) => {
await page.goto('/product/accountant-console/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy();
});
test('product_accountant_console: h2 "Book your live demo"', async ({ page }) => {
await page.goto('/product/accountant-console/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy();
});
test('product_accountant_console: h2 "Book a demo to get started"', async ({ page }) => {
await page.goto('/product/accountant-console/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book a demo to get started' || t.startsWith('Book a demo to get started'))).toBeTruthy();
});
test('product_accountant_console: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/accountant-console/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_accountant_console: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/accountant-console/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_accountant_console: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/accountant-console/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_accountant_console: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/accountant-console/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_accounts_payable_controls', () => {
test('product_accounts_payable_controls: title matches GT', async ({ page }) => {
await page.goto('/product/accounts-payable-controls/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('accounts payable controls');
});
test('product_accounts_payable_controls: h1 "Sharper visibility and control"', async ({ page }) => {
await page.goto('/product/accounts-payable-controls/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sharper visibility and control for total confidence' || t.startsWith('Sharper visibility and control for total confidence'))).toBeTruthy();
});
test('product_accounts_payable_controls: h2 "Strengthen AP controls through"', async ({ page }) => {
await page.goto('/product/accounts-payable-controls/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Strengthen AP controls through tailored user roles, permissions, and approvals' || t.startsWith('Strengthen AP controls through tailored user roles, permissions, and approvals'))).toBeTruthy();
});
test('product_accounts_payable_controls: h2 "Deeper visibility across your "', async ({ page }) => {
await page.goto('/product/accounts-payable-controls/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Deeper visibility across your AP workflow' || t.startsWith('Deeper visibility across your AP workflow'))).toBeTruthy();
});
test('product_accounts_payable_controls: h2 "Stronger security for your bus"', async ({ page }) => {
await page.goto('/product/accounts-payable-controls/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stronger security for your business' || t.startsWith('Stronger security for your business'))).toBeTruthy();
});
test('product_accounts_payable_controls: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/accounts-payable-controls/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_accounts_payable_controls: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/accounts-payable-controls/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_accounts_payable_controls: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/accounts-payable-controls/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_accounts_payable_controls: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/accounts-payable-controls/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_accounts_receivable', () => {
test('product_accounts_receivable: title matches GT', async ({ page }) => {
await page.goto('/product/accounts-receivable/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('accounts receivable automation software');
});
test('product_accounts_receivable: h1 "Sign up and send your very fir"', async ({ page }) => {
await page.goto('/product/accounts-receivable/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sign up and send your very first invoice in minutes' || t.startsWith('Sign up and send your very first invoice in minutes'))).toBeTruthy();
});
test('product_accounts_receivable: h2 "Streamline invoicing in four s"', async ({ page }) => {
await page.goto('/product/accounts-receivable/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Streamline invoicing in four steps' || t.startsWith('Streamline invoicing in four steps'))).toBeTruthy();
});
test('product_accounts_receivable: h2 "Build polished, on-brand invoi"', async ({ page }) => {
await page.goto('/product/accounts-receivable/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Build polished, on-brand invoices' || t.startsWith('Build polished, on-brand invoices'))).toBeTruthy();
});
test('product_accounts_receivable: h2 "Deliver on your terms"', async ({ page }) => {
await page.goto('/product/accounts-receivable/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Deliver on your terms' || t.startsWith('Deliver on your terms'))).toBeTruthy();
});
test('product_accounts_receivable: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/accounts-receivable/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_accounts_receivable: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/accounts-receivable/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_accounts_receivable: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/accounts-receivable/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_accounts_receivable: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/accounts-receivable/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_ach_payment_processing', () => {
test('product_ach_payment_processing: title matches GT', async ({ page }) => {
await page.goto('/product/ach-payment-processing/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('ach payment processing for businesses');
});
test('product_ach_payment_processing: h1 "ACH payment processing for eve"', async ({ page }) => {
await page.goto('/product/ach-payment-processing/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'ACH payment processing for every business' || t.startsWith('ACH payment processing for every business'))).toBeTruthy();
});
test('product_ach_payment_processing: h2 "Why teams are choosing ACH"', async ({ page }) => {
await page.goto('/product/ach-payment-processing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why teams are choosing ACH' || t.startsWith('Why teams are choosing ACH'))).toBeTruthy();
});
test('product_ach_payment_processing: h2 "More time, more savings, and l"', async ({ page }) => {
await page.goto('/product/ach-payment-processing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'More time, more savings, and less worry with ACH payments and Fynora' || t.startsWith('More time, more savings, and less worry with ACH payments and Fynora'))).toBeTruthy();
});
test('product_ach_payment_processing: h2 "Send vendor payments by ACH an"', async ({ page }) => {
await page.goto('/product/ach-payment-processing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Send vendor payments by ACH and let automation handle the rest.' || t.startsWith('Send vendor payments by ACH and let automation handle the rest.'))).toBeTruthy();
});
test('product_ach_payment_processing: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/ach-payment-processing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_ach_payment_processing: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/ach-payment-processing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_ach_payment_processing: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/ach-payment-processing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_ach_payment_processing: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/ach-payment-processing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_ai', () => {
test('product_ai: title matches GT', async ({ page }) => {
await page.goto('/product/ai/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('boost efficiency & accuracy with fynora ');
});
test('product_ai: h1 "AI precision shaped by a trill"', async ({ page }) => {
await page.goto('/product/ai/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'AI precision shaped by a trillion dollars of data' || t.startsWith('AI precision shaped by a trillion dollars of data'))).toBeTruthy();
});
test('product_ai: h2 "Fynora AI agents in action"', async ({ page }) => {
await page.goto('/product/ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora AI agents in action' || t.startsWith('Fynora AI agents in action'))).toBeTruthy();
});
test('product_ai: h2 "More AI, more control"', async ({ page }) => {
await page.goto('/product/ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'More AI, more control' || t.startsWith('More AI, more control'))).toBeTruthy();
});
test('product_ai: h2 "Fynora has relied on AI for ye"', async ({ page }) => {
await page.goto('/product/ai/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora has relied on AI for years to drive financial automation' || t.startsWith('Fynora has relied on AI for years to drive financial automation'))).toBeTruthy();
});
test('product_ai: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/ai/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_ai: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/ai/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_ai: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/ai/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_ai: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/ai/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_api', () => {
test('product_api: title matches GT', async ({ page }) => {
await page.goto('/product/api/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora api');
});
test('product_api: h1 "Connect. Automate. Scale. All "', async ({ page }) => {
await page.goto('/product/api/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Connect. Automate. Scale. All on the Fynora API Platform.' || t.startsWith('Connect. Automate. Scale. All on the Fynora API Platform.'))).toBeTruthy();
});
test('product_api: h2 "Master your financial workflow"', async ({ page }) => {
await page.goto('/product/api/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Master your financial workflows with the right API integration' || t.startsWith('Master your financial workflows with the right API integration'))).toBeTruthy();
});
test('product_api: h2 "Slash manual effort with an ac"', async ({ page }) => {
await page.goto('/product/api/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Slash manual effort with an accounts payable API' || t.startsWith('Slash manual effort with an accounts payable API'))).toBeTruthy();
});
test('product_api: h2 "Clear cash flow bottlenecks fa"', async ({ page }) => {
await page.goto('/product/api/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Clear cash flow bottlenecks fast with an invoicing and payment API' || t.startsWith('Clear cash flow bottlenecks fast with an invoicing and payment API'))).toBeTruthy();
});
test('product_api: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/api/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_api: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/api/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_api: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/api/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_api: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/api/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_fynora_balance', () => {
test('product_fynora_balance: title matches GT', async ({ page }) => {
await page.goto('/product/fynora-balance/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('explore balance');
});
test('product_fynora_balance: h1 "Turn on Fynora balance"', async ({ page }) => {
await page.goto('/product/fynora-balance/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Turn on Fynora balance' || t.startsWith('Turn on Fynora balance'))).toBeTruthy();
});
test('product_fynora_balance: h2 "Fynora balance is a smarter wa"', async ({ page }) => {
await page.goto('/product/fynora-balance/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora balance is a smarter way to manage your money' || t.startsWith('Fynora balance is a smarter way to manage your money'))).toBeTruthy();
});
test('product_fynora_balance: h2 "How it works"', async ({ page }) => {
await page.goto('/product/fynora-balance/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How it works' || t.startsWith('How it works'))).toBeTruthy();
});
test('product_fynora_balance: h2 "Pay bills faster than ever wit"', async ({ page }) => {
await page.goto('/product/fynora-balance/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pay bills faster than ever with Fynora balance' || t.startsWith('Pay bills faster than ever with Fynora balance'))).toBeTruthy();
});
test('product_fynora_balance: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/fynora-balance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_fynora_balance: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/fynora-balance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_fynora_balance: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/fynora-balance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_fynora_balance: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/fynora-balance/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_budgets', () => {
test('product_budgets: title matches GT', async ({ page }) => {
await page.goto('/product/budgets/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('business budget management software');
});
test('product_budgets: h1 "Fine-tune every business budge"', async ({ page }) => {
await page.goto('/product/budgets/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fine-tune every business budget' || t.startsWith('Fine-tune every business budget'))).toBeTruthy();
});
test('product_budgets: h2 "Schedule a live demo"', async ({ page }) => {
await page.goto('/product/budgets/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy();
});
test('product_budgets: h2 "Book your live demo"', async ({ page }) => {
await page.goto('/product/budgets/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy();
});
test('product_budgets: h2 "See Fynora in action"', async ({ page }) => {
await page.goto('/product/budgets/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'See Fynora in action' || t.startsWith('See Fynora in action'))).toBeTruthy();
});
test('product_budgets: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/budgets/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_budgets: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/budgets/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_budgets: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/budgets/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_budgets: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/budgets/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_credit', () => {
test('product_credit: title matches GT', async ({ page }) => {
await page.goto('/product/credit/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('flexible business credit lines');
});
test('product_credit: h1 "Quick and flexible business cr"', async ({ page }) => {
await page.goto('/product/credit/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Quick and flexible business credit' || t.startsWith('Quick and flexible business credit'))).toBeTruthy();
});
test('product_credit: h2 "Schedule a live demo"', async ({ page }) => {
await page.goto('/product/credit/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy();
});
test('product_credit: h2 "Book your live demo"', async ({ page }) => {
await page.goto('/product/credit/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy();
});
test('product_credit: h2 "Schedule a demo to begin today"', async ({ page }) => {
await page.goto('/product/credit/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schedule a demo to begin today' || t.startsWith('Schedule a demo to begin today'))).toBeTruthy();
});
test('product_credit: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/credit/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_credit: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/credit/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_credit: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/credit/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_credit: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/credit/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_download', () => {
test('product_download: title matches GT', async ({ page }) => {
await page.goto('/product/download/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora spend & expense app');
});
test('product_download: h1 "The Fynora Spend & Expense App"', async ({ page }) => {
await page.goto('/product/download/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Fynora Spend & Expense App' || t.startsWith('The Fynora Spend & Expense App'))).toBeTruthy();
});
test('product_download: h2 "Standout capabilities"', async ({ page }) => {
await page.goto('/product/download/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Standout capabilities' || t.startsWith('Standout capabilities'))).toBeTruthy();
});
test('product_download: h2 "Manage every dollar from start"', async ({ page }) => {
await page.goto('/product/download/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Manage every dollar from start to finish in the app' || t.startsWith('Manage every dollar from start to finish in the app'))).toBeTruthy();
});
test('product_download: h2 "Get the Fynora Spend & Expense"', async ({ page }) => {
await page.goto('/product/download/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get the Fynora Spend & Expense app' || t.startsWith('Get the Fynora Spend & Expense app'))).toBeTruthy();
});
test('product_download: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/download/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_download: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/download/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_download: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/download/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_download: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/download/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_expenses', () => {
test('product_expenses: title matches GT', async ({ page }) => {
await page.goto('/product/expenses/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('smart expense management software for mo');
});
test('product_expenses: h1 "Expense management software th"', async ({ page }) => {
await page.goto('/product/expenses/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Expense management software that runs on autopilot' || t.startsWith('Expense management software that runs on autopilot'))).toBeTruthy();
});
test('product_expenses: h2 "Schedule a live demo"', async ({ page }) => {
await page.goto('/product/expenses/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy();
});
test('product_expenses: h2 "Book your live demo"', async ({ page }) => {
await page.goto('/product/expenses/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy();
});
test('product_expenses: h2 "Get a guided live demo"', async ({ page }) => {
await page.goto('/product/expenses/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get a guided live demo' || t.startsWith('Get a guided live demo'))).toBeTruthy();
});
test('product_expenses: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/expenses/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_expenses: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/expenses/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_expenses: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/expenses/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_expenses: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/expenses/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_instant_transfer', () => {
test('product_instant_transfer: title matches GT', async ({ page }) => {
await page.goto('/product/instant-transfer/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('instant transfer');
});
test('product_instant_transfer: h1 "Get paid in minutes with exped"', async ({ page }) => {
await page.goto('/product/instant-transfer/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get paid in minutes with expedited transfers' || t.startsWith('Get paid in minutes with expedited transfers'))).toBeTruthy();
});
test('product_instant_transfer: h2 "Why use it?"', async ({ page }) => {
await page.goto('/product/instant-transfer/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why use it?' || t.startsWith('Why use it?'))).toBeTruthy();
});
test('product_instant_transfer: h2 "What our customers are saying"', async ({ page }) => {
await page.goto('/product/instant-transfer/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What our customers are saying' || t.startsWith('What our customers are saying'))).toBeTruthy();
});
test('product_instant_transfer: h2 "Your money, right on time"', async ({ page }) => {
await page.goto('/product/instant-transfer/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Your money, right on time' || t.startsWith('Your money, right on time'))).toBeTruthy();
});
test('product_instant_transfer: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/instant-transfer/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_instant_transfer: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/instant-transfer/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_instant_transfer: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/instant-transfer/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_instant_transfer: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/instant-transfer/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_international_payments', () => {
test('product_international_payments: title matches GT', async ({ page }) => {
await page.goto('/product/international-payments/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('international payments');
});
test('product_international_payments: h1 "Send international payments ac"', async ({ page }) => {
await page.goto('/product/international-payments/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Send international payments across more than 130 countries' || t.startsWith('Send international payments across more than 130 countries'))).toBeTruthy();
});
test('product_international_payments: h2 "Request a live demo"', async ({ page }) => {
await page.goto('/product/international-payments/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Request a live demo' || t.startsWith('Request a live demo'))).toBeTruthy();
});
test('product_international_payments: h2 "Book your live demo"', async ({ page }) => {
await page.goto('/product/international-payments/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy();
});
test('product_international_payments: h2 "Schedule a demo to get started"', async ({ page }) => {
await page.goto('/product/international-payments/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schedule a demo to get started' || t.startsWith('Schedule a demo to get started'))).toBeTruthy();
});
test('product_international_payments: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/international-payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_international_payments: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/international-payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_international_payments: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/international-payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_international_payments: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/international-payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_invoice_financing_software', () => {
test('product_invoice_financing_software: title matches GT', async ({ page }) => {
await page.goto('/product/invoice-financing-software/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('invoice financing software');
});
test('product_invoice_financing_software: h1 "Get funded faster with Invoice"', async ({ page }) => {
await page.goto('/product/invoice-financing-software/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Get funded faster with Invoice Financing' || t.startsWith('Get funded faster with Invoice Financing'))).toBeTruthy();
});
test('product_invoice_financing_software: h2 "Why choose Invoice Financing?"', async ({ page }) => {
await page.goto('/product/invoice-financing-software/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why choose Invoice Financing?' || t.startsWith('Why choose Invoice Financing?'))).toBeTruthy();
});
test('product_invoice_financing_software: h2 "What our clients say about us"', async ({ page }) => {
await page.goto('/product/invoice-financing-software/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What our clients say about us' || t.startsWith('What our clients say about us'))).toBeTruthy();
});
test('product_invoice_financing_software: h2 "Pull cash from your unpaid inv"', async ({ page }) => {
await page.goto('/product/invoice-financing-software/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pull cash from your unpaid invoices' || t.startsWith('Pull cash from your unpaid invoices'))).toBeTruthy();
});
test('product_invoice_financing_software: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/invoice-financing-software/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_invoice_financing_software: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/invoice-financing-software/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_invoice_financing_software: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/invoice-financing-software/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_invoice_financing_software: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/invoice-financing-software/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_mobile_app', () => {
test('product_mobile_app: title matches GT', async ({ page }) => {
await page.goto('/product/mobile-app/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora app');
});
test('product_mobile_app: h1 "Download the Fynora AP & AR ap"', async ({ page }) => {
await page.goto('/product/mobile-app/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Download the Fynora AP & AR app' || t.startsWith('Download the Fynora AP & AR app'))).toBeTruthy();
});
test('product_mobile_app: h2 "Handle AP in a snap"', async ({ page }) => {
await page.goto('/product/mobile-app/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Handle AP in a snap' || t.startsWith('Handle AP in a snap'))).toBeTruthy();
});
test('product_mobile_app: h2 "Handle AR and get paid faster"', async ({ page }) => {
await page.goto('/product/mobile-app/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Handle AR and get paid faster' || t.startsWith('Handle AR and get paid faster'))).toBeTruthy();
});
test('product_mobile_app: h2 "Teams always on the move love "', async ({ page }) => {
await page.goto('/product/mobile-app/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Teams always on the move love the Fynora app' || t.startsWith('Teams always on the move love the Fynora app'))).toBeTruthy();
});
test('product_mobile_app: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/mobile-app/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_mobile_app: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/mobile-app/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_mobile_app: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/mobile-app/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_mobile_app: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/mobile-app/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_network_payments', () => {
test('product_network_payments: title matches GT', async ({ page }) => {
await page.goto('/product/network-payments/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('network payments');
});
test('product_network_payments: h1 "Put the Fynora network to work"', async ({ page }) => {
await page.goto('/product/network-payments/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Put the Fynora network to work for your payments' || t.startsWith('Put the Fynora network to work for your payments'))).toBeTruthy();
});
test('product_network_payments: h2 "Reach millions of connected ve"', async ({ page }) => {
await page.goto('/product/network-payments/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Reach millions of connected vendors for fast, effortless payments' || t.startsWith('Reach millions of connected vendors for fast, effortless payments'))).toBeTruthy();
});
test('product_network_payments: h2 "Value for you and your vendors"', async ({ page }) => {
await page.goto('/product/network-payments/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Value for you and your vendors' || t.startsWith('Value for you and your vendors'))).toBeTruthy();
});
test('product_network_payments: h2 "Your suppliers are waiting on "', async ({ page }) => {
await page.goto('/product/network-payments/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Your suppliers are waiting on you' || t.startsWith('Your suppliers are waiting on you'))).toBeTruthy();
});
test('product_network_payments: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/network-payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_network_payments: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/network-payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_network_payments: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/network-payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_network_payments: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/network-payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_overview_video', () => {
test('product_overview_video: title matches GT', async ({ page }) => {
await page.goto('/product/overview-video/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('spend and expense video overview');
});
test('product_overview_video: h1 "Watch this overview of the Fyn"', async ({ page }) => {
await page.goto('/product/overview-video/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Watch this overview of the Fynora spend and expense platform' || t.startsWith('Watch this overview of the Fynora spend and expense platform'))).toBeTruthy();
});
test('product_overview_video: h2 "You might also find value in t"', async ({ page }) => {
await page.goto('/product/overview-video/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'You might also find value in these related resources' || t.startsWith('You might also find value in these related resources'))).toBeTruthy();
});
test('product_overview_video: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/overview-video/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_overview_video: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/overview-video/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_overview_video: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/overview-video/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_overview_video: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/overview-video/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_pay_by_card', () => {
test('product_pay_by_card: title matches GT', async ({ page }) => {
await page.goto('/product/pay-by-card/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('pay by card');
});
test('product_pay_by_card: h1 "Pay any vendor with a credit c"', async ({ page }) => {
await page.goto('/product/pay-by-card/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pay any vendor with a credit card' || t.startsWith('Pay any vendor with a credit card'))).toBeTruthy();
});
test('product_pay_by_card: h2 "Why settle vendor bills with a"', async ({ page }) => {
await page.goto('/product/pay-by-card/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why settle vendor bills with a card?' || t.startsWith('Why settle vendor bills with a card?'))).toBeTruthy();
});
test('product_pay_by_card: h2 "How paying by card works"', async ({ page }) => {
await page.goto('/product/pay-by-card/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How paying by card works' || t.startsWith('How paying by card works'))).toBeTruthy();
});
test('product_pay_by_card: h2 "Savings calculator"', async ({ page }) => {
await page.goto('/product/pay-by-card/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Savings calculator' || t.startsWith('Savings calculator'))).toBeTruthy();
});
test('product_pay_by_card: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/pay-by-card/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_pay_by_card: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/pay-by-card/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_pay_by_card: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/pay-by-card/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_pay_by_card: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/pay-by-card/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_payment_approvals', () => {
test('product_payment_approvals: title matches GT', async ({ page }) => {
await page.goto('/product/payment-approvals/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('effortless, automated payment approvals');
});
test('product_payment_approvals: h1 "Streamline, speed up, and gove"', async ({ page }) => {
await page.goto('/product/payment-approvals/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Streamline, speed up, and govern your payment approval workflow' || t.startsWith('Streamline, speed up, and govern your payment approval workflow'))).toBeTruthy();
});
test('product_payment_approvals: h2 "Deeper visibility and firmer c"', async ({ page }) => {
await page.goto('/product/payment-approvals/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Deeper visibility and firmer control over your AP process' || t.startsWith('Deeper visibility and firmer control over your AP process'))).toBeTruthy();
});
test('product_payment_approvals: h2 "Approvals cleared 2-3x sooner"', async ({ page }) => {
await page.goto('/product/payment-approvals/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Approvals cleared 2-3x sooner' || t.startsWith('Approvals cleared 2-3x sooner'))).toBeTruthy();
});
test('product_payment_approvals: h2 "Approval rules shaped around h"', async ({ page }) => {
await page.goto('/product/payment-approvals/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Approval rules shaped around how you operate' || t.startsWith('Approval rules shaped around how you operate'))).toBeTruthy();
});
test('product_payment_approvals: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/payment-approvals/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_payment_approvals: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/payment-approvals/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_payment_approvals: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/payment-approvals/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_payment_approvals: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/payment-approvals/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_payments', () => {
test('product_payments: title matches GT', async ({ page }) => {
await page.goto('/product/payments/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('b2b payments');
});
test('product_payments: h1 "Fast. Simple. Secure. That\'s p"', async ({ page }) => {
await page.goto('/product/payments/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fast. Simple. Secure. That\'s payments with Fynora.' || t.startsWith('Fast. Simple. Secure. That\'s payments with Fynora.'))).toBeTruthy();
});
test('product_payments: h2 "Move money faster"', async ({ page }) => {
await page.goto('/product/payments/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Move money faster' || t.startsWith('Move money faster'))).toBeTruthy();
});
test('product_payments: h2 "Every payment method you need,"', async ({ page }) => {
await page.goto('/product/payments/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Every payment method you need, right when you need it' || t.startsWith('Every payment method you need, right when you need it'))).toBeTruthy();
});
test('product_payments: h2 "Payments kept in control"', async ({ page }) => {
await page.goto('/product/payments/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Payments kept in control' || t.startsWith('Payments kept in control'))).toBeTruthy();
});
test('product_payments: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_payments: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_payments: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_payments: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/payments/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_payments_services', () => {
test('product_payments_services: title matches GT', async ({ page }) => {
await page.goto('/product/payments-services/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('payments services');
});
test('product_payments_services: h1 "Meet the new Payments Services"', async ({ page }) => {
await page.goto('/product/payments-services/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Meet the new Payments Services' || t.startsWith('Meet the new Payments Services'))).toBeTruthy();
});
test('product_payments_services: h2 "Request a live demo"', async ({ page }) => {
await page.goto('/product/payments-services/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Request a live demo' || t.startsWith('Request a live demo'))).toBeTruthy();
});
test('product_payments_services: h2 "Schedule a live demo"', async ({ page }) => {
await page.goto('/product/payments-services/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Schedule a live demo' || t.startsWith('Schedule a live demo'))).toBeTruthy();
});
test('product_payments_services: h2 "Book your live demo"', async ({ page }) => {
await page.goto('/product/payments-services/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Book your live demo' || t.startsWith('Book your live demo'))).toBeTruthy();
});
test('product_payments_services: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/payments-services/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_payments_services: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/payments-services/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_payments_services: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/payments-services/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_payments_services: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/payments-services/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - product_pricing', () => {
test('product_pricing: title matches GT', async ({ page }) => {
await page.goto('/product/pricing/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('plans & pricing');
});
test('product_pricing: h1 "Our pricing plans"', async ({ page }) => {
await page.goto('/product/pricing/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Our pricing plans' || t.startsWith('Our pricing plans'))).toBeTruthy();
});
test('product_pricing: h2 "Chat and phone support include"', async ({ page }) => {
await page.goto('/product/pricing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Chat and phone support included on every plan' || t.startsWith('Chat and phone support included on every plan'))).toBeTruthy();
});
test('product_pricing: h2 "Questions we hear most often"', async ({ page }) => {
await page.goto('/product/pricing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Questions we hear most often' || t.startsWith('Questions we hear most often'))).toBeTruthy();
});
test('product_pricing: h2 "Live chat and phone support on"', async ({ page }) => {
await page.goto('/product/pricing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Live chat and phone support on every plan' || t.startsWith('Live chat and phone support on every plan'))).toBeTruthy();
});
test('product_pricing: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/product/pricing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('product_pricing: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/product/pricing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('product_pricing: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/product/pricing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('product_pricing: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/product/pricing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - solutions_construction', () => {
test('solutions_construction: title matches GT', async ({ page }) => {
await page.goto('/solutions/construction/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('construction spend management');
});
test('solutions_construction: h1 "Smarter money workflows built "', async ({ page }) => {
await page.goto('/solutions/construction/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Smarter money workflows built for builders' || t.startsWith('Smarter money workflows built for builders'))).toBeTruthy();
});
test('solutions_construction: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => {
await page.goto('/solutions/construction/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy();
});
test('solutions_construction: h2 "Fynora Spend & Expense"', async ({ page }) => {
await page.goto('/solutions/construction/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy();
});
test('solutions_construction: h2 "Automated spend controls for p"', async ({ page }) => {
await page.goto('/solutions/construction/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Automated spend controls for plumbing & HVAC teams' || t.startsWith('Automated spend controls for plumbing & HVAC teams'))).toBeTruthy();
});
test('solutions_construction: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/solutions/construction/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('solutions_construction: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/solutions/construction/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('solutions_construction: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/solutions/construction/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('solutions_construction: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/solutions/construction/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - solutions_education', () => {
test('solutions_education: title matches GT', async ({ page }) => {
await page.goto('/solutions/education/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora for schools and educational organ');
});
test('solutions_education: h1 "Smart financial operations bui"', async ({ page }) => {
await page.goto('/solutions/education/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Smart financial operations built for educators' || t.startsWith('Smart financial operations built for educators'))).toBeTruthy();
});
test('solutions_education: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => {
await page.goto('/solutions/education/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy();
});
test('solutions_education: h2 "Fynora Spend & Expense"', async ({ page }) => {
await page.goto('/solutions/education/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy();
});
test('solutions_education: h2 "What our customers are saying"', async ({ page }) => {
await page.goto('/solutions/education/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What our customers are saying' || t.startsWith('What our customers are saying'))).toBeTruthy();
});
test('solutions_education: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/solutions/education/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('solutions_education: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/solutions/education/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('solutions_education: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/solutions/education/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('solutions_education: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/solutions/education/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - solutions_healthcare', () => {
test('solutions_healthcare: title matches GT', async ({ page }) => {
await page.goto('/solutions/healthcare/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora for healthcare organizations');
});
test('solutions_healthcare: h1 "Smart financial operations bui"', async ({ page }) => {
await page.goto('/solutions/healthcare/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Smart financial operations built for healthcare teams' || t.startsWith('Smart financial operations built for healthcare teams'))).toBeTruthy();
});
test('solutions_healthcare: h2 "Relied on by 500k+ businesses"', async ({ page }) => {
await page.goto('/solutions/healthcare/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Relied on by 500k+ businesses' || t.startsWith('Relied on by 500k+ businesses'))).toBeTruthy();
});
test('solutions_healthcare: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => {
await page.goto('/solutions/healthcare/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy();
});
test('solutions_healthcare: h2 "Fynora Spend & Expense"', async ({ page }) => {
await page.goto('/solutions/healthcare/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy();
});
test('solutions_healthcare: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/solutions/healthcare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('solutions_healthcare: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/solutions/healthcare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('solutions_healthcare: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/solutions/healthcare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('solutions_healthcare: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/solutions/healthcare/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - solutions_hospitality', () => {
test('solutions_hospitality: title matches GT', async ({ page }) => {
await page.goto('/solutions/hospitality/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora for hospitality companies');
});
test('solutions_hospitality: h1 "Finance automation made for ho"', async ({ page }) => {
await page.goto('/solutions/hospitality/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Finance automation made for hospitality brands' || t.startsWith('Finance automation made for hospitality brands'))).toBeTruthy();
});
test('solutions_hospitality: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => {
await page.goto('/solutions/hospitality/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy();
});
test('solutions_hospitality: h2 "Fynora Spend & Expense"', async ({ page }) => {
await page.goto('/solutions/hospitality/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy();
});
test('solutions_hospitality: h2 "What our clients are saying"', async ({ page }) => {
await page.goto('/solutions/hospitality/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What our clients are saying' || t.startsWith('What our clients are saying'))).toBeTruthy();
});
test('solutions_hospitality: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/solutions/hospitality/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('solutions_hospitality: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/solutions/hospitality/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('solutions_hospitality: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/solutions/hospitality/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('solutions_hospitality: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/solutions/hospitality/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - solutions_manufacturing', () => {
test('solutions_manufacturing: title matches GT', async ({ page }) => {
await page.goto('/solutions/manufacturing/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora for manufacturing');
});
test('solutions_manufacturing: h1 "Automate financial operations "', async ({ page }) => {
await page.goto('/solutions/manufacturing/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Automate financial operations for manufacturing teams' || t.startsWith('Automate financial operations for manufacturing teams'))).toBeTruthy();
});
test('solutions_manufacturing: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => {
await page.goto('/solutions/manufacturing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy();
});
test('solutions_manufacturing: h2 "Fynora Spend & Expense"', async ({ page }) => {
await page.goto('/solutions/manufacturing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy();
});
test('solutions_manufacturing: h2 "What our customers tell us"', async ({ page }) => {
await page.goto('/solutions/manufacturing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'What our customers tell us' || t.startsWith('What our customers tell us'))).toBeTruthy();
});
test('solutions_manufacturing: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/solutions/manufacturing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('solutions_manufacturing: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/solutions/manufacturing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('solutions_manufacturing: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/solutions/manufacturing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('solutions_manufacturing: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/solutions/manufacturing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - solutions_mid_sized_companies', () => {
test('solutions_mid_sized_companies: title matches GT', async ({ page }) => {
await page.goto('/solutions/mid-sized-companies/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('for mid');
});
test('solutions_mid_sized_companies: h1 "Fuel expansion with smarter fi"', async ({ page }) => {
await page.goto('/solutions/mid-sized-companies/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fuel expansion with smarter financial operations' || t.startsWith('Fuel expansion with smarter financial operations'))).toBeTruthy();
});
test('solutions_mid_sized_companies: h2 "Fynora connects effortlessly w"', async ({ page }) => {
await page.goto('/solutions/mid-sized-companies/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora connects effortlessly with your accounting tools' || t.startsWith('Fynora connects effortlessly with your accounting tools'))).toBeTruthy();
});
test('solutions_mid_sized_companies: h2 "Scalable AP and AR automation "', async ({ page }) => {
await page.goto('/solutions/mid-sized-companies/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Scalable AP and AR automation built for growing, midsize teams' || t.startsWith('Scalable AP and AR automation built for growing, midsize teams'))).toBeTruthy();
});
test('solutions_mid_sized_companies: h2 "Heading goes here"', async ({ page }) => {
await page.goto('/solutions/mid-sized-companies/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Heading goes here' || t.startsWith('Heading goes here'))).toBeTruthy();
});
test('solutions_mid_sized_companies: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/solutions/mid-sized-companies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('solutions_mid_sized_companies: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/solutions/mid-sized-companies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('solutions_mid_sized_companies: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/solutions/mid-sized-companies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('solutions_mid_sized_companies: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/solutions/mid-sized-companies/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - solutions_nonprofits', () => {
test('solutions_nonprofits: title matches GT', async ({ page }) => {
await page.goto('/solutions/nonprofits/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('fynora for nonprofits');
});
test('solutions_nonprofits: h1 "Smart finance made for mission"', async ({ page }) => {
await page.goto('/solutions/nonprofits/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Smart finance made for mission teams' || t.startsWith('Smart finance made for mission teams'))).toBeTruthy();
});
test('solutions_nonprofits: h2 "Fynora Accounts Payable and Fy"', async ({ page }) => {
await page.goto('/solutions/nonprofits/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Accounts Payable and Fynora Accounts Receivable' || t.startsWith('Fynora Accounts Payable and Fynora Accounts Receivable'))).toBeTruthy();
});
test('solutions_nonprofits: h2 "Fynora Spend & Expense"', async ({ page }) => {
await page.goto('/solutions/nonprofits/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fynora Spend & Expense' || t.startsWith('Fynora Spend & Expense'))).toBeTruthy();
});
test('solutions_nonprofits: h2 "Built for faith communities th"', async ({ page }) => {
await page.goto('/solutions/nonprofits/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Built for faith communities that need audit-ready books' || t.startsWith('Built for faith communities that need audit-ready books'))).toBeTruthy();
});
test('solutions_nonprofits: nav link "Accounts Payable"', async ({ page }) => {
await page.goto('/solutions/nonprofits/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Payable' || t.startsWith('Accounts Payable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-payable')), 'href fragment present').toBeTruthy();
});
test('solutions_nonprofits: nav link "Accounts Receivable"', async ({ page }) => {
await page.goto('/solutions/nonprofits/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Accounts Receivable' || t.startsWith('Accounts Receivable')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('accounts-receivable')), 'href fragment present').toBeTruthy();
});
test('solutions_nonprofits: nav link "Cash Flow Forecasting"', async ({ page }) => {
await page.goto('/solutions/nonprofits/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Cash Flow Forecasting' || t.startsWith('Cash Flow Forecasting')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('cash-flow-forecasting')), 'href fragment present').toBeTruthy();
});
test('solutions_nonprofits: nav link "Integrations Overview"', async ({ page }) => {
await page.goto('/solutions/nonprofits/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Integrations Overview' || t.startsWith('Integrations Overview')), 'link text in nav').toBeTruthy();
const hrefs = await links.evaluateAll(els => els.map(e => (e.getAttribute('href') || '').toLowerCase()));
expect(hrefs.some(h => h.includes('integrations')), 'href fragment present').toBeTruthy();
});
});
test.describe('Functional - Routing', () => {
test('navigate to product_accounts_payable via "Accounts Payable"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="accounts-payable"]').first();
expect(await link.count(), 'nav link to product_accounts_payable exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('accounts-payable');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Accelerate accounts payable with Fynora');
});
test('navigate to product_accounts_receivable via "Accounts Receivable"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="accounts-receivable"]').first();
expect(await link.count(), 'nav link to product_accounts_receivable exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('accounts-receivable');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Sign up and send your very first invoice in minutes');
});
test('navigate to integrations via "Integrations"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="integrations"]').first();
expect(await link.count(), 'nav link to integrations exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('integrations');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Integrations built to keep your business moving');
});
});
|