From dc1e31d0afefcdfd60a89b74ee36849c6147a688 Mon Sep 17 00:00:00 2001 From: Tim Kadlec Date: Wed, 14 Apr 2021 10:23:15 -0500 Subject: [PATCH] Changing default location and adjusting README --- README.md | 4 ++-- index.js | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f4d0127..1d4118f 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,8 @@ By default, WebPageTest's GitHub Action will run tests whenever the event (pull_ The tests will be run with the following WebPageTest settings: - Location: Dulles, VA -- Browser: Chrome on a Motorola G4 -- Connection Type: 3G connection +- Browser: Chrome on an emulated Moto G4 +- Connection Type: 4G connection - Number of test run per URL: 3 - First view only (no repeat views tested) - The test results will be checked every **5** seconds, up to a limit of **240s**. If no results are returned by then, the test will timeout and fail. diff --git a/index.js b/index.js index eca9ab8..eb7264c 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ const runTest = (wpt, url, options) => { let tempOptions = JSON.parse(JSON.stringify(options)); return new Promise((resolve, reject) => { - core.info(`Submitting test for ${url}...`); + core.info(`Submitting test for ${url} ...`); wpt.runTest(url, tempOptions, async(err, result) => { try { if (result) { @@ -101,10 +101,11 @@ async function run() { let options = { "firstViewOnly": true, "runs": 3, - "location": 'Dulles_MotoG4', + "location": 'Dulles:Chrome', "connectivity": '4G', "pollResults": 5, - "timeout": 240 + "timeout": 240, + "emulateMobile": true } if (WPT_OPTIONS) { let settings = require(`${DIRECTORY}/${WPT_OPTIONS}`);