diff --git a/test/commandtests/chromeTest.js b/test/commandtests/chromeTest.js index b3094ac40..0b1f8d97b 100644 --- a/test/commandtests/chromeTest.js +++ b/test/commandtests/chromeTest.js @@ -25,7 +25,12 @@ after.always('Stop the HTTP server', () => { serial.beforeEach('Start the browser', async t => { t.timeout(timeout); - engine = getEngine({ browser: 'chrome' }); + engine = getEngine({ + browser: 'chrome', + chrome: { + timelineRecordingType: 'custom' + } + }); return engine.start(); }); diff --git a/test/data/commandscripts/chrome.cjs b/test/data/commandscripts/chrome.cjs index 2d701695a..0633e935b 100644 --- a/test/data/commandscripts/chrome.cjs +++ b/test/data/commandscripts/chrome.cjs @@ -5,5 +5,10 @@ module.exports = async function (context, commands) { }); await commands.measure.start('http://127.0.0.1:3000/simple/'); await commands.cdp.send('Network.clearBrowserCookies'); + + await commands.chromeTrace.start(); + await commands.measure.start('http://127.0.0.1:3000/dimple/'); + await commands.chromeTrace.stop(); + return commands.cdp.sendAndGet('Memory.getDOMCounters'); };