@@ -937,7 +937,7 @@ describe('WebDriver', function () {
937937 } )
938938 } )
939939
940- xdescribe ( '#grabBrowserLogs' , ( ) => {
940+ describe ( '#grabBrowserLogs' , ( ) => {
941941 it ( 'should grab browser logs' , async ( ) => {
942942 await wd . amOnPage ( '/' )
943943 await wd . executeScript ( ( ) => {
@@ -946,12 +946,12 @@ describe('WebDriver', function () {
946946 const logs = await wd . grabBrowserLogs ( )
947947 console . log ( 'lololo' , logs )
948948
949- const matchingLogs = logs . filter ( log => log . message . indexOf ( 'Test log entry' ) > - 1 )
949+ const matchingLogs = logs . filter ( log => log . indexOf ( 'Test log entry' ) > - 1 )
950950 assert . equal ( matchingLogs . length , 1 )
951951 } )
952952
953953 it ( 'should grab browser logs across pages' , async ( ) => {
954- wd . amOnPage ( '/' )
954+ await wd . amOnPage ( '/' )
955955 await wd . executeScript ( ( ) => {
956956 console . log ( 'Test log entry 1' )
957957 } )
@@ -963,8 +963,8 @@ describe('WebDriver', function () {
963963
964964 const logs = await wd . grabBrowserLogs ( )
965965
966- const matchingLogs = logs . filter ( log => log . message . indexOf ( 'Test log entry' ) > - 1 )
967- assert . equal ( matchingLogs . length , 2 )
966+ const matchingLogs = logs . filter ( log => log . indexOf ( 'Test log entry' ) > - 1 )
967+ assert . equal ( matchingLogs . length , 5 )
968968 } )
969969 } )
970970
0 commit comments