mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 09:34:19 +08:00
chore(snapshot): print out URL at the end so you can open it
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user