gecko-dev/testing/performance/perftest_bbc_link.js
Tarek Ziadé 2da872c93f Bug 1627623 - [mozperftest] Implement Andrew's tests r=acreskey
Implements https://github.com/acreskeyMoz/browsertime_on_android_scripts
changes to mach perftest and prototype

Differential Revision: https://phabricator.services.mozilla.com/D69801

--HG--
extra : moz-landing-system : lando
2020-04-14 07:46:51 +00:00

18 lines
486 B
JavaScript

module.exports = async function(context, commands) {
let rootUrl = "https://www.bbc.com/";
await commands.navigate(rootUrl);
// Wait for browser to settle
await commands.wait.byTime(10000);
// Start the measurement
await commands.measure.start("pageload");
// Click on the link and wait for page complete check to finish.
await commands.click.byClassNameAndWait("block-link__overlay-link");
// Stop and collect the measurement
await commands.measure.stop();
};