1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 async function test(context, commands) {
6 let rootUrl = "https://2019.jsconf.eu/";
8 await commands.navigate(rootUrl);
10 // Wait for browser to settle
11 await commands.wait.byTime(10000);
13 // Click on the link and wait a few seconds
14 await commands.click.byLinkTextAndWait("Artists");
15 await commands.wait.byTime(3000);
18 await commands.click.byLinkTextAndWait("About");
19 await commands.wait.byTime(3000);
21 // Start the measurement
22 await commands.measure.start("pageload");
23 await commands.click.byLinkTextAndWait("Artists");
25 // Stop and collect the measurement
26 await commands.measure.stop();
31 owner: "Performance Team",
32 name: "JSConf (warm)",
33 description: "Measures time to load JSConf page (warm)",