use latest alpha of Browsertime
This commit is contained in:
parent
7e6ad35116
commit
7d1b1520de
|
|
@ -678,9 +678,9 @@
|
|||
"integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8="
|
||||
},
|
||||
"browsertime": {
|
||||
"version": "4.0.0-alpha.10",
|
||||
"resolved": "https://registry.npmjs.org/browsertime/-/browsertime-4.0.0-alpha.10.tgz",
|
||||
"integrity": "sha512-aX7jPHcu4Z5w6RAyw+r2SaJxOqmgXQvTZZL1+U455dyMYl5ADlxp8bgcF9meaTlKnKHm383PtFLxyubKdtaIIg==",
|
||||
"version": "4.0.0-alpha.13",
|
||||
"resolved": "https://registry.npmjs.org/browsertime/-/browsertime-4.0.0-alpha.13.tgz",
|
||||
"integrity": "sha512-8yVZVUq8bkTYpc8/lL109acm8/v2YmNSLgngX17m+Gi5Bj6isF7XH3I+FBcgxfdb12yACYD7RQLYcLxJpZfXEA==",
|
||||
"requires": {
|
||||
"@cypress/xvfb": "1.2.4",
|
||||
"@sitespeed.io/chromedriver": "2.44.1",
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
"main": "./lib/sitespeed.js",
|
||||
"dependencies": {
|
||||
"aws-sdk": "2.361.0",
|
||||
"browsertime": "4.0.0-alpha.10",
|
||||
"browsertime": "4.0.0-alpha.13",
|
||||
"cli-color": "1.4.0",
|
||||
"concurrent-queue": "7.0.2",
|
||||
"dayjs-ext": "2.2.0",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
module.exports = async function(context) {
|
||||
await context.h.measure('https://www.sitespeed.io');
|
||||
await context.h.measure('https://www.sitespeed.io/examples/');
|
||||
return context.h.measure('https://www.sitespeed.io/documentation/');
|
||||
module.exports = async function(context, commands) {
|
||||
await commands.measure.startAndNavigate('https://www.sitespeed.io');
|
||||
await commands.measure.startAndNavigate('https://www.sitespeed.io/examples/');
|
||||
return commands.measure.startAndNavigate(
|
||||
'https://www.sitespeed.io/documentation/'
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
module.exports = async function(context) {
|
||||
module.exports = async function(context, commands) {
|
||||
context.log.info('In pretask!!!');
|
||||
await context.h.navigate('https://www.sitespeed.io/');
|
||||
await commands.navigate('https://www.sitespeed.io/');
|
||||
context.taskData.loadedSitespeed = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue