File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,23 @@ test('has title', async ({ page }) => {
55 await expect ( page ) . toHaveTitle ( / y F i l e s P r o c e s s M i n i n g C o m p o n e n t E x a m p l e s / )
66} )
77
8+ const ignoredConsoleLogs = [
9+ '[vite]' ,
10+ 'React DevTools' ,
11+ 'running in development mode' ,
12+ // favicon.ico - we should also check failing network requests
13+ '404' ,
14+ 'Automatic fallback to software WebGL has been deprecated.' ,
15+ 'GL Driver Message'
16+ ]
17+
818test ( 'examples' , async ( { page } ) => {
19+ page . on ( 'console' , msg => {
20+ const text = msg . text ( )
21+ if ( ! ignoredConsoleLogs . some ( ignored => text . includes ( ignored ) ) ) {
22+ expect . soft ( text , `Unexpected console output` ) . toBeUndefined ( )
23+ }
24+ } )
925 await page . goto ( '.' )
1026
1127 const gcLocator = page . locator ( 'css=.yfiles-canvascomponent:not(.graph-overview-component)' )
You can’t perform that action at this time.
0 commit comments