Fix search_profiler ally test (#128084)

* search_profiler

* review comments

* addressed review comments
This commit is contained in:
Rashmi Kulkarni 2022-03-22 12:25:36 -07:00 committed by GitHub
parent 9449f1dcdd
commit 22e481af6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,16 +13,20 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
const aceEditor = getService('aceEditor');
const a11y = getService('a11y');
const flyout = getService('flyout');
const esArchiver = getService('esArchiver');
// FLAKY: https://github.com/elastic/kibana/issues/91939
describe.skip('Accessibility Search Profiler Editor', () => {
describe('Accessibility Search Profiler Editor', () => {
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
await PageObjects.common.navigateToApp('searchProfiler');
await a11y.testAppSnapshot();
expect(await testSubjects.exists('searchProfilerEditor')).to.be(true);
});
after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional');
});
it('input the JSON in the aceeditor', async () => {
const input = {
query: {
@ -65,14 +69,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await a11y.testAppSnapshot();
});
it('click on the open-close shard details link', async () => {
const openShardDetailslink = await testSubjects.findAll('openCloseShardDetails');
await openShardDetailslink[0].click();
it('close the flyout', async () => {
await testSubjects.click('euiFlyoutCloseButton');
await a11y.testAppSnapshot();
});
it('close the fly out', async () => {
await flyout.ensureAllClosed();
it('click on the open-close shard details link', async () => {
const openShardDetailslink = await testSubjects.findAll('openCloseShardDetails');
await openShardDetailslink[0].click();
await a11y.testAppSnapshot();
});
@ -80,16 +84,5 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await testSubjects.click('aggregationProfileTab');
await a11y.testAppSnapshot();
});
it('click on the view details link', async () => {
const viewShardDetailslink = await testSubjects.findAll('viewShardDetails');
await viewShardDetailslink[0].click();
await a11y.testAppSnapshot();
});
it('close the fly out', async () => {
await flyout.ensureAllClosed();
await a11y.testAppSnapshot();
});
});
}