@@ -18,7 +18,7 @@ import {WP_BASE_URL} from '../../../config/wp.config';
1818import scenarioUrls from "./../../../config/scenarioUrls.json" ;
1919import { compareReference , isTagPresent , getScenarioTag , batchUpdateVRTestUrl , openMobileMenu } from "../../../utils/helpers" ;
2020import type { Section } from "../../../utils/types" ;
21- import { Page } from '@playwright/test' ;
21+ import { Page , ConsoleMessage } from '@playwright/test' ;
2222import {
2323 deactivatePlugin , installRemotePlugin
2424} from "../../../utils/commands" ;
@@ -479,7 +479,7 @@ Then('no error in the console different than nowprocket page {string}', async fu
479479const getConsoleMsg = async ( page : Page , url : string ) : Promise < Array < string > > => {
480480 const consoleMsg : string [ ] = [ ] ;
481481
482- const consoleHandler = ( msg ) : void => {
482+ const consoleHandler = ( msg : ConsoleMessage ) : void => {
483483 consoleMsg . push ( msg . text ( ) ) ;
484484 } ;
485485
@@ -548,7 +548,7 @@ const getConsoleMsg = async (page: Page, url: string): Promise<Array<string>> =>
548548const getConsoleMsgWithMenuExpansion = async ( page : Page , url : string ) : Promise < Array < string > > => {
549549 const consoleMsg : string [ ] = [ ] ;
550550
551- const consoleHandler = ( msg ) : void => {
551+ const consoleHandler = ( msg : ConsoleMessage ) : void => {
552552 consoleMsg . push ( msg . text ( ) ) ;
553553 } ;
554554
0 commit comments