diff --git a/src/legacy/core_plugins/kbn_vislib_vis_types/public/components/options/metrics_axes/value_axis_options.tsx b/src/legacy/core_plugins/kbn_vislib_vis_types/public/components/options/metrics_axes/value_axis_options.tsx index 243950b762390..4e394a53ed699 100644 --- a/src/legacy/core_plugins/kbn_vislib_vis_types/public/components/options/metrics_axes/value_axis_options.tsx +++ b/src/legacy/core_plugins/kbn_vislib_vis_types/public/components/options/metrics_axes/value_axis_options.tsx @@ -141,6 +141,7 @@ function ValueAxisOptions(props: ValueAxisOptionsParams) { { + describe('switch between Y axis scale types', () => { before(initBarChart); const axisId = 'ValueAxis-1'; @@ -162,7 +163,7 @@ export default function ({ getService, getPageObjects }) { await PageObjects.visualize.clickMetricsAndAxes(); await PageObjects.visualize.clickYAxisOptions(axisId); await PageObjects.visualize.selectYAxisScaleType(axisId, 'log'); - await PageObjects.visualize.clickYAxisAdvancedOptions(axisId); + await PageObjects.visualize.clickYAxisOptions(axisId); await PageObjects.visualize.changeYAxisFilterLabelsCheckbox(axisId, false); await PageObjects.visualize.clickGo(); const labels = await PageObjects.visualize.getYAxisLabels(); diff --git a/test/functional/page_objects/visualize_page.js b/test/functional/page_objects/visualize_page.js index c1d9446febf9f..29ba692630f8f 100644 --- a/test/functional/page_objects/visualize_page.js +++ b/test/functional/page_objects/visualize_page.js @@ -675,9 +675,7 @@ export function VisualizePageProvider({ getService, getPageObjects, updateBaseli } async selectYAxisScaleType(axisId, scaleType) { - const selectElement = await testSubjects.find(`scaleSelectYAxis-${axisId}`); - const selector = await selectElement.findByCssSelector(`option[value="${scaleType}"]`); - await selector.click(); + await find.selectValue(`select#scaleSelectYAxis-${axisId}`, scaleType); } async selectYAxisMode(mode) {