Index: dashboard/dashboard/elements/report-page.html |
diff --git a/dashboard/dashboard/elements/report-page.html b/dashboard/dashboard/elements/report-page.html |
index f32edfa3898133768889b357fd82eb4e7fdb635f..f9cbdcef0b468e3d14751277942d4fe83230099c 100644 |
--- a/dashboard/dashboard/elements/report-page.html |
+++ b/dashboard/dashboard/elements/report-page.html |
@@ -41,8 +41,12 @@ found in the LICENSE file. |
<script> |
'use strict'; |
Polymer({ |
- |
is: 'report-page', |
+ |
+ listeners: { |
+ populateTestPicker: 'populateTestPicker_', |
+ }, |
+ |
properties: { |
charts: { |
type: Array, |
@@ -121,6 +125,11 @@ found in the LICENSE file. |
this.uriController.load(); |
}, |
+ async populateTestPicker_(event) { |
+ this.testPicker.scrollIntoViewIfNeeded(); |
+ await this.testPicker.setCurrentSelectedPath(event.detail.testPath); |
+ }, |
+ |
/** |
* On 'uriload' event, adds charts from the current query parameters. |
* @param {Object} event Event object. |