-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd5fca5
commit 7a9d417
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/gauge.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import expect from '@kbn/expect'; | ||
import { FtrProviderContext } from '../../../../../ftr_provider_context'; | ||
|
||
export default function ({ getPageObjects, getService }: FtrProviderContext) { | ||
const { visualize, lens, timePicker } = getPageObjects(['visualize', 'lens', 'timePicker']); | ||
|
||
const testSubjects = getService('testSubjects'); | ||
|
||
describe('Gauge', function describeIndexTests() { | ||
const isNewChartsLibraryEnabled = true; | ||
|
||
before(async () => { | ||
await visualize.initTests(isNewChartsLibraryEnabled); | ||
}); | ||
|
||
beforeEach(async () => { | ||
await visualize.navigateToNewAggBasedVisualization(); | ||
await visualize.clickGauge(); | ||
await visualize.clickNewSearch(); | ||
await timePicker.setDefaultAbsoluteRange(); | ||
}); | ||
|
||
it('should show the "Edit Visualization in Lens" menu item', async () => { | ||
const button = await testSubjects.exists('visualizeEditInLensButton'); | ||
expect(button).to.eql(true); | ||
}); | ||
|
||
it('should convert to Lens', async () => { | ||
const button = await testSubjects.find('visualizeEditInLensButton'); | ||
await button.click(); | ||
await lens.waitForVisualization('gaugeChart'); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters