From aa45ff1c341ec1b1b64b60b83e6b500daebff25c Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 17 Jan 2018 17:27:10 -0500 Subject: [PATCH] chore(snapshot): print out URL at the end so you can open it --- packages/core/scripts/e2e/snapshot.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/core/scripts/e2e/snapshot.js b/packages/core/scripts/e2e/snapshot.js index 089fe19c9a..9810d37cd7 100644 --- a/packages/core/scripts/e2e/snapshot.js +++ b/packages/core/scripts/e2e/snapshot.js @@ -21,7 +21,11 @@ class Snapshot { this.height = (options && options.platformDefaults && options.platformDefaults.params && options.platformDefaults.params.height) || -1; - this.start(options && options.testId); + this.testId = (options && options.testId); + this.queue = []; + this.highestMismatch = 0; + this.mismatches = []; + this.results = {}; } async finish() { @@ -30,14 +34,7 @@ class Snapshot { console.log(`done processing ${this.queue.length} screenshots`); console.log(`${this.mismatches.length} snapshots had significant mismatches`); console.log(`Test Id: ${this.testId}`); - } - - start(testId) { - this.testId = testId; - this.queue = []; - this.highestMismatch = 0; - this.mismatches = []; - this.results = {}; + console.log(`URL: ${this.domain}/${this.groupId}/${this.appId}/${this.testId}`); } async takeScreenshot(driver, options) {