mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[visualize/_tsvb_chart] assert tab is loaded
This commit is contained in:
parent
1023db4fb9
commit
8b199ce90f
1 changed files with 5 additions and 4 deletions
|
@ -17,6 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { FtrProviderContext } from '../ftr_provider_context.d';
|
||||
|
||||
export function VisualBuilderPageProvider({ getService, getPageObjects }: FtrProviderContext) {
|
||||
|
@ -40,19 +41,19 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }: FtrPro
|
|||
}
|
||||
|
||||
public async checkVisualBuilderIsPresent() {
|
||||
await testSubjects.exists('tvbEditor', { timeout: 5000 });
|
||||
expect(await testSubjects.exists('tvbEditor', { timeout: 5000 })).to.be(true);
|
||||
}
|
||||
|
||||
public async checkMetricTabIsPresent() {
|
||||
await testSubjects.exists('tsvbMetricValue', { timeout: 5000 });
|
||||
expect(await testSubjects.exists('tsvbMetricValue', { timeout: 5000 })).to.be(true);
|
||||
}
|
||||
|
||||
public async checkGaugeTabIsPresent() {
|
||||
await testSubjects.exists('tvbVisGaugeContainer', { timeout: 5000 });
|
||||
expect(await testSubjects.exists('tvbVisGaugeContainer', { timeout: 5000 })).to.be(true);
|
||||
}
|
||||
|
||||
public async checkTopNTabIsPresent() {
|
||||
await testSubjects.exists('tvbVisTopNTable', { timeout: 5000 });
|
||||
expect(await testSubjects.exists('tvbVisTopNTable', { timeout: 5000 })).to.be(true);
|
||||
}
|
||||
|
||||
public async clickMetric() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue