Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Dec 30, 2019
1 parent 9c29b1c commit 9cd2915
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/functional/apps/visualize/_metric_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default function({ getService, getPageObjects }) {
let filterCount = 0;
await retry.try(async function tryingForTime() {
// click first metric bucket
await PageObjects.visualize.clickMetricByIndex(0);
await PageObjects.visEditor.clickMetricByIndex(0);
filterCount = await filterBar.getFilterCount();
});
expect(filterCount).to.equal(0);
Expand All @@ -207,7 +207,7 @@ export default function({ getService, getPageObjects }) {
let filterCount = 0;
await retry.try(async function tryingForTime() {
// click first metric bucket
await PageObjects.visualize.clickMetricByIndex(0);
await PageObjects.visEditor.clickMetricByIndex(0);
filterCount = await filterBar.getFilterCount();
});
await filterBar.removeAllFilters();
Expand Down
2 changes: 1 addition & 1 deletion test/functional/apps/visualize/_tag_cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function({ getService, getPageObjects }) {
});

it('should show the tags and relative size', function() {
return PageObjects.visualize.getTextSizes().then(function(results) {
return PageObjects.tagCloud.getTextSizes().then(function(results) {
log.debug('results here ' + results);
expect(results).to.eql(['72px', '63px', '25px', '32px', '18px']);
});
Expand Down
3 changes: 0 additions & 3 deletions test/functional/page_objects/visualize_editor_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ export function VisualizeEditorPageProvider({ getService, getPageObjects }: FtrP
}

public async setInterval(newValue: string) {
log.debug(`Visualize.setInterval(${newValue})`);
await comboBox.set('visEditorInterval', newValue);
}

Expand All @@ -406,7 +405,6 @@ export function VisualizeEditorPageProvider({ getService, getPageObjects }: FtrP
}

public async setCustomInterval(newValue: string) {
log.debug(`Visualize.setCustomInterval(${newValue})`);
await comboBox.setCustom('visEditorInterval', newValue);
}

Expand All @@ -427,7 +425,6 @@ export function VisualizeEditorPageProvider({ getService, getPageObjects }: FtrP
}

public async clickMetricByIndex(index: number) {
log.debug(`clickMetricByIndex(${index})`);
const metrics = await find.allByCssSelector(
'[data-test-subj="visualizationLoader"] .mtrVis .mtrVis__container'
);
Expand Down
2 changes: 1 addition & 1 deletion test/functional/services/dashboard/visualizations.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function DashboardVisualizationProvider({ getService, getPageObjects }) {
}
await this.ensureNewVisualizationDialogIsShowing();
await PageObjects.visualize.clickMarkdownWidget();
await PageObjects.visualize.setMarkdownTxt(markdown);
await PageObjects.visEditor.setMarkdownTxt(markdown);
await PageObjects.visEditor.clickGo();
await PageObjects.visualize.saveVisualizationExpectSuccess(name);
}
Expand Down

0 comments on commit 9cd2915

Please sign in to comment.