1- import { type TestsCase , runTestCases } from './util' ;
1+ import { type TestsCase , runTestCases , waitForCookiesDialog } from './util' ;
22
33/** A list of test cases to run on the customers' docs sites. */
44const testCases : TestsCase [ ] = [
55 {
66 name : 'Snyk' ,
77 contentBaseURL : 'https://docs.snyk.io' ,
88 tests : [
9- { name : 'Home' , url : '/' } ,
10- { name : 'OpenAPI' , url : '/snyk-api/reference/apps' } ,
9+ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ,
10+ { name : 'OpenAPI' , url : '/snyk-api/reference/apps' , run : waitForCookiesDialog } ,
1111 ] ,
1212 } ,
1313 {
1414 name : 'Nexthink' ,
1515 contentBaseURL : 'https://docs.nexthink.com' ,
16- tests : [ { name : 'Home' , url : '/' , screenshot : { waitForTOCScrolling : false } } ] ,
16+ tests : [
17+ {
18+ name : 'Home' ,
19+ url : '/' ,
20+ screenshot : { waitForTOCScrolling : false } ,
21+ run : waitForCookiesDialog ,
22+ } ,
23+ ] ,
1724 } ,
1825 {
1926 name : 'asiksupport-stg.dto.kemkes.go.id' ,
@@ -33,7 +40,7 @@ const testCases: TestsCase[] = [
3340 {
3441 name : 'docs.dify.ai' ,
3542 contentBaseURL : 'https://docs.dify.ai' ,
36- tests : [ { name : 'Home' , url : '/' } ] ,
43+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
3744 } ,
3845 {
3946 name : 'seeddao.gitbook.io' ,
@@ -63,27 +70,27 @@ const testCases: TestsCase[] = [
6370 {
6471 name : 'docs.portainer.io' ,
6572 contentBaseURL : 'https://docs.portainer.io' ,
66- tests : [ { name : 'Home' , url : '/' } ] ,
73+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
6774 } ,
6875 {
6976 name : 'docs.chirptoken.io' ,
7077 contentBaseURL : 'https://docs.chirptoken.io' ,
71- tests : [ { name : 'Home' , url : '/' } ] ,
78+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
7279 } ,
7380 {
7481 name : 'docs.dexscreener.com' ,
7582 contentBaseURL : 'https://docs.dexscreener.com' ,
76- tests : [ { name : 'Home' , url : '/' } ] ,
83+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
7784 } ,
7885 {
7986 name : 'docs.pancakeswap.finance' ,
8087 contentBaseURL : 'https://docs.pancakeswap.finance' ,
81- tests : [ { name : 'Home' , url : '/' } ] ,
88+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
8289 } ,
8390 {
8491 name : 'book.character.ai' ,
8592 contentBaseURL : 'https://book.character.ai' ,
86- tests : [ { name : 'Home' , url : '/' } ] ,
93+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
8794 } ,
8895 {
8996 name : 'docs.tradeonnova.io' ,
@@ -103,7 +110,7 @@ const testCases: TestsCase[] = [
103110 {
104111 name : 'docs.keeper.io' ,
105112 contentBaseURL : 'https://docs.keeper.io' ,
106- tests : [ { name : 'Home' , url : '/' } ] ,
113+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
107114 } ,
108115 {
109116 name : 'adiblar.gitbook.io' ,
@@ -138,12 +145,12 @@ const testCases: TestsCase[] = [
138145 {
139146 name : 'meshnet.nordvpn.com' ,
140147 contentBaseURL : 'https://meshnet.nordvpn.com' ,
141- tests : [ { name : 'Home' , url : '/' } ] ,
148+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
142149 } ,
143150 {
144151 name : 'manual.bubble.io' ,
145152 contentBaseURL : 'https://manual.bubble.io' ,
146- tests : [ { name : 'Home' , url : '/' } ] ,
153+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
147154 } ,
148155 {
149156 name : 'docs.tickettool.xyz' ,
@@ -158,12 +165,12 @@ const testCases: TestsCase[] = [
158165 {
159166 name : 'docs.cherry-ai.com' ,
160167 contentBaseURL : 'https://docs.cherry-ai.com' ,
161- tests : [ { name : 'Home' , url : '/' } ] ,
168+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
162169 } ,
163170 {
164171 name : 'docs.snyk.io' ,
165172 contentBaseURL : 'https://docs.snyk.io' ,
166- tests : [ { name : 'Home' , url : '/' } ] ,
173+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
167174 } ,
168175 {
169176 name : 'docs.realapp.link' ,
@@ -188,7 +195,14 @@ const testCases: TestsCase[] = [
188195 {
189196 name : 'docs.umbraco.com' ,
190197 contentBaseURL : 'https://docs.umbraco.com' ,
191- tests : [ { name : 'Home' , url : '/welcome' , screenshot : { waitForTOCScrolling : false } } ] ,
198+ tests : [
199+ {
200+ name : 'Home' ,
201+ url : '/welcome' ,
202+ run : waitForCookiesDialog ,
203+ screenshot : { waitForTOCScrolling : false } ,
204+ } ,
205+ ] ,
192206 } ,
193207 {
194208 name : 'sosovalue-white-paper.gitbook.io' ,
@@ -198,12 +212,12 @@ const testCases: TestsCase[] = [
198212 {
199213 name : 'docs.revrobotics.com' ,
200214 contentBaseURL : 'https://docs.revrobotics.com' ,
201- tests : [ { name : 'Home' , url : '/' } ] ,
215+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
202216 } ,
203217 {
204218 name : 'chartschool.stockcharts.com' ,
205219 contentBaseURL : 'https://chartschool.stockcharts.com' ,
206- tests : [ { name : 'Home' , url : '/' } ] ,
220+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
207221 } ,
208222 {
209223 name : 'docs.soniclabs.com' ,
@@ -218,7 +232,7 @@ const testCases: TestsCase[] = [
218232 {
219233 name : 'docs.thousandeyes.com' ,
220234 contentBaseURL : 'https://docs.thousandeyes.com' ,
221- tests : [ { name : 'Home' , url : '/' } ] ,
235+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
222236 } ,
223237 {
224238 name : 'docs.raydium.io' ,
@@ -228,7 +242,7 @@ const testCases: TestsCase[] = [
228242 {
229243 name : 'docs.fluentbit.io' ,
230244 contentBaseURL : 'https://docs.fluentbit.io' ,
231- tests : [ { name : 'Home' , url : '/' } ] ,
245+ tests : [ { name : 'Home' , url : '/' , run : waitForCookiesDialog } ] ,
232246 } ,
233247] ;
234248
0 commit comments