File tree Expand file tree Collapse file tree 7 files changed +28
-7
lines changed Expand file tree Collapse file tree 7 files changed +28
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { getText } from '../helper'
55 beforeAll ( async ( ) => {
66 page . on ( 'console' , msg => {
77 if ( msg . type ( ) === 'warning' ) {
8- warnings . push ( msg . text ( ) )
8+ const text = msg . text ( )
9+ if ( ! text . match ( / ^ \[ i n t l i f y \] L e g a c y A P I m o d e h a s b e e n / ) ) {
10+ warnings . push ( msg . text ( ) )
11+ }
912 }
1013 } )
1114 await page . goto (
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { getText } from '../helper'
55 beforeAll ( async ( ) => {
66 page . on ( 'console' , msg => {
77 if ( msg . type ( ) === 'warning' ) {
8- warnings . push ( msg . text ( ) )
8+ const text = msg . text ( )
9+ if ( ! text . match ( / ^ \[ i n t l i f y \] L e g a c y A P I m o d e h a s b e e n / ) ) {
10+ warnings . push ( msg . text ( ) )
11+ }
912 }
1013 } )
1114 await page . goto (
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { getText } from '../helper'
55 beforeAll ( async ( ) => {
66 page . on ( 'console' , msg => {
77 if ( msg . type ( ) === 'warning' ) {
8- warnings . push ( msg . text ( ) )
8+ const text = msg . text ( )
9+ if ( ! text . match ( / ^ \[ i n t l i f y \] L e g a c y A P I m o d e h a s b e e n / ) ) {
10+ warnings . push ( msg . text ( ) )
11+ }
912 }
1013 } )
1114 await page . goto (
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { getText } from '../helper'
55 beforeAll ( async ( ) => {
66 page . on ( 'console' , msg => {
77 if ( msg . type ( ) === 'warning' ) {
8- warnings . push ( msg . text ( ) )
8+ const text = msg . text ( )
9+ if ( ! text . match ( / ^ \[ i n t l i f y \] L e g a c y A P I m o d e h a s b e e n / ) ) {
10+ warnings . push ( msg . text ( ) )
11+ }
912 }
1013 } )
1114 await page . goto (
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { getText } from '../helper'
55 beforeAll ( async ( ) => {
66 page . on ( 'console' , msg => {
77 if ( msg . type ( ) === 'warning' ) {
8- warnings . push ( msg . text ( ) )
8+ const text = msg . text ( )
9+ if ( ! text . match ( / ^ \[ i n t l i f y \] L e g a c y A P I m o d e h a s b e e n / ) ) {
10+ warnings . push ( msg . text ( ) )
11+ }
912 }
1013 } )
1114 await page . goto (
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { getText } from '../helper'
55 beforeAll ( async ( ) => {
66 page . on ( 'console' , msg => {
77 if ( msg . type ( ) === 'warning' ) {
8- warnings . push ( msg . text ( ) )
8+ const text = msg . text ( )
9+ if ( ! text . match ( / ^ \[ i n t l i f y \] L e g a c y A P I m o d e h a s b e e n / ) ) {
10+ warnings . push ( msg . text ( ) )
11+ }
912 }
1013 } )
1114 await page . goto (
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { getText } from '../helper'
55 beforeAll ( async ( ) => {
66 page . on ( 'console' , msg => {
77 if ( msg . type ( ) === 'warning' ) {
8- warnings . push ( msg . text ( ) )
8+ const text = msg . text ( )
9+ if ( ! text . match ( / ^ \[ i n t l i f y \] L e g a c y A P I m o d e h a s b e e n / ) ) {
10+ warnings . push ( msg . text ( ) )
11+ }
912 }
1013 } )
1114 await page . goto (
You can’t perform that action at this time.
0 commit comments