kibana/x-pack/test/functional/page_objects/logstash_page.ts
Spencer bdafd27e19
[ts] migrate x-pack/test to composite ts project (#101441)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-08 12:54:05 -04:00

25 lines
868 B
TypeScript

/*
* 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 { FtrService } from '../ftr_provider_context';
export class LogstashPageObject extends FtrService {
private readonly common = this.ctx.getPageObject('common');
private readonly pipelineList = this.ctx.getService('pipelineList');
private readonly pipelineEditor = this.ctx.getService('pipelineEditor');
async gotoPipelineList() {
await this.common.navigateToApp('logstashPipelines');
await this.pipelineList.assertExists();
}
async gotoNewPipelineEditor() {
await this.gotoPipelineList();
await this.pipelineList.clickAdd();
await this.pipelineEditor.assertExists();
}
}