Bug 1434849 - Track HAR export in DAMP; r=ochameau
MozReview-Commit-ID: BuSNVV3etf2
--- a/testing/talos/talos/tests/devtools/addon/content/damp.js
+++ b/testing/talos/talos/tests/devtools/addon/content/damp.js
@@ -701,16 +701,25 @@ async _consoleOpenWithCachedMessagesTest
await this.reloadPage(onReload);
test.done();
test = this.runTest(name + ".reload.settle.DAMP");
await this.waitForPendingPaints(toolbox);
test.done();
},
+ async exportHar(label, toolbox) {
+ let test = this.runTest(label + ".exportHar");
+
+ // Export HAR from the Network panel.
+ await toolbox.getHARFromNetMonitor();
+
+ test.done();
+ },
+
async _coldInspectorOpen() {
await this.testSetup(SIMPLE_URL);
await this.openToolboxAndLog("cold.inspector", "inspector");
await this.closeToolbox();
await this.testTeardown();
},
async _panelsInBackgroundReload() {
@@ -929,16 +938,17 @@ async _consoleOpenWithCachedMessagesTest
},
async netmonitor() {
await this.testSetup(url);
const toolbox = await this.openToolboxAndLog(label + ".netmonitor", "netmonitor");
const requestsDone = this.waitForNetworkRequests(label + ".netmonitor", toolbox, expectedRequests);
await this.reloadPageAndLog(label + ".netmonitor", toolbox);
await requestsDone;
+ await this.exportHar(label + ".netmonitor", toolbox);
await this.closeToolboxAndLog(label + ".netmonitor", toolbox);
await this.testTeardown();
},
async saveAndReadHeapSnapshot() {
await this.testSetup(url);
const toolbox = await this.openToolboxAndLog(label + ".memory", "memory");
await this.reloadPageAndLog(label + ".memory", toolbox);