Skip to content

Commit

Permalink
breaking functional
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Dec 7, 2021
1 parent 7949d0f commit d702bb9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions x-pack/test/functional/apps/lens/gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const elasticChart = getService('elasticChart');
const testSubjects = getService('testSubjects');
const find = getService('find');
const retry = getService('retry');

describe('lens gauge', () => {
before(async () => {
Expand Down Expand Up @@ -50,10 +51,17 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

it('should reflect edits for gauge', async () => {
await PageObjects.lens.openVisualOptions();
await testSubjects.setValue('lnsToolbarGaugeLabelMajor', 'custom title');
await testSubjects.setValue('lnsToolbarGaugeLabelMinor-select', 'custom');
await testSubjects.setValue('lnsToolbarGaugeLabelMinor', 'custom subtitle');
await retry.try(async () => {
await testSubjects.setValue('lnsToolbarGaugeLabelMajor', 'custom title');
});
await retry.try(async () => {
await testSubjects.setValue('lnsToolbarGaugeLabelMinor-select', 'custom');
});
await retry.try(async () => {
await testSubjects.setValue('lnsToolbarGaugeLabelMinor', 'custom subtitle');
});

await PageObjects.lens.waitForVisualization();
await PageObjects.lens.configureDimension({
dimension: 'lnsGauge_metricDimensionPanel > lns-dimensionTrigger',
operation: 'count',
Expand Down

0 comments on commit d702bb9

Please sign in to comment.