mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* Replace <span> with a <label for=''> used as a label for a dropdown <select> * Change CSS selector for functional test
This commit is contained in:
parent
72bde68ad2
commit
fe4b0b9856
2 changed files with 5 additions and 3 deletions
|
@ -129,16 +129,18 @@
|
||||||
>
|
>
|
||||||
<header class="dscTimechart__header">
|
<header class="dscTimechart__header">
|
||||||
<div class="small">
|
<div class="small">
|
||||||
<span
|
<label
|
||||||
|
for="dscResultsIntervalSelector"
|
||||||
tooltip="{{::'kbn.discover.howToChangeTheTimeTooltip' | i18n: {defaultMessage: 'To change the time, click the clock icon in the navigation bar'} }}"
|
tooltip="{{::'kbn.discover.howToChangeTheTimeTooltip' | i18n: {defaultMessage: 'To change the time, click the clock icon in the navigation bar'} }}"
|
||||||
>
|
>
|
||||||
{{toMoment(timeRange.from)}} - {{toMoment(timeRange.to)}}
|
{{toMoment(timeRange.from)}} - {{toMoment(timeRange.to)}}
|
||||||
</span>
|
</label>
|
||||||
|
|
||||||
—
|
—
|
||||||
|
|
||||||
<span class="form-inline">
|
<span class="form-inline">
|
||||||
<select
|
<select
|
||||||
|
id="dscResultsIntervalSelector"
|
||||||
class="dscResults__interval form-control"
|
class="dscResults__interval form-control"
|
||||||
ng-model="state.interval"
|
ng-model="state.interval"
|
||||||
ng-options="interval.val as interval.display for interval in intervalOptions | filter: intervalEnabled"
|
ng-options="interval.val as interval.display for interval in intervalOptions | filter: intervalEnabled"
|
||||||
|
|
|
@ -41,7 +41,7 @@ export function DiscoverPageProvider({ getService, getPageObjects }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async getChartTimespan() {
|
async getChartTimespan() {
|
||||||
const el = await find.byCssSelector('.small > span:nth-child(1)');
|
const el = await find.byCssSelector('.small > label[for="dscResultsIntervalSelector"]');
|
||||||
return await el.getVisibleText();
|
return await el.getVisibleText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue