mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fix search_profiler ally test (#128084)
* search_profiler * review comments * addressed review comments
This commit is contained in:
parent
9449f1dcdd
commit
22e481af6b
1 changed files with 12 additions and 19 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue