@@ -1018,6 +1018,90 @@ const testCases: TestsCase[] = [
10181018 } ,
10191019 ] ,
10201020 } ,
1021+ {
1022+ name : 'Tables' ,
1023+ baseUrl : 'https://gitbook.gitbook.io/test-gitbook-open/' ,
1024+ tests : [
1025+ {
1026+ name : 'Default table' ,
1027+ url : 'blocks/tables' ,
1028+ run : waitForCookiesDialog ,
1029+ fullPage : true ,
1030+ } ,
1031+ {
1032+ name : 'Table with straight corners' ,
1033+ url :
1034+ 'blocks/tables' +
1035+ getCustomizationURL ( {
1036+ styling : {
1037+ corners : CustomizationCorners . Straight ,
1038+ } ,
1039+ } ) ,
1040+ run : waitForCookiesDialog ,
1041+ fullPage : true ,
1042+ } ,
1043+ {
1044+ name : 'Table with primary color' ,
1045+ url :
1046+ 'blocks/tables' +
1047+ getCustomizationURL ( {
1048+ styling : {
1049+ tint : { color : { light : '#346DDB' , dark : '#346DDB' } } ,
1050+ } ,
1051+ } ) ,
1052+ run : waitForCookiesDialog ,
1053+ fullPage : true ,
1054+ } ,
1055+ // Test dark mode for each variant
1056+ ...allThemeModes . flatMap ( ( theme ) => [
1057+ {
1058+ name : `Table in ${ theme } mode` ,
1059+ url :
1060+ 'blocks/tables' +
1061+ getCustomizationURL ( {
1062+ themes : {
1063+ default : theme ,
1064+ toggeable : false ,
1065+ } ,
1066+ } ) ,
1067+ run : waitForCookiesDialog ,
1068+ fullPage : true ,
1069+ } ,
1070+ {
1071+ name : `Table with straight corners in ${ theme } mode` ,
1072+ url :
1073+ 'blocks/tables' +
1074+ getCustomizationURL ( {
1075+ styling : {
1076+ corners : CustomizationCorners . Straight ,
1077+ } ,
1078+ themes : {
1079+ default : theme ,
1080+ toggeable : false ,
1081+ } ,
1082+ } ) ,
1083+ run : waitForCookiesDialog ,
1084+ fullPage : true ,
1085+ } ,
1086+ {
1087+ name : `Table with primary color in ${ theme } mode` ,
1088+ url :
1089+ 'blocks/tables' +
1090+ getCustomizationURL ( {
1091+ styling : {
1092+ tint : { color : { light : '#346DDB' , dark : '#346DDB' } } ,
1093+ } ,
1094+ themes : {
1095+ default : theme ,
1096+ toggeable : false ,
1097+ } ,
1098+ } ) ,
1099+ run : waitForCookiesDialog ,
1100+ fullPage : true ,
1101+ } ,
1102+ ] ) ,
1103+ ] ,
1104+ } ,
10211105] ;
10221106
10231107for ( const testCase of testCases ) {
0 commit comments