Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba committed Oct 9, 2024
1 parent 5b2ab2a commit 605ef41
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const testQuery = {
export default function ({ getPageObjects, getService }: FtrProviderContext) {
const PageObjects = getPageObjects(['svlCommonPage', 'common', 'searchProfiler']);
const retry = getService('retry');
const es = getService('es');

describe('Search Profiler Editor', () => {
before(async () => {
Expand Down Expand Up @@ -71,6 +72,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});

describe('With a test index', () => {
before(async () => {
await es.indices.create({ index: indexName });
});

after(async () => {
await es.indices.delete({ index: indexName });
});

it('profiles a simple query', async () => {
await PageObjects.searchProfiler.setIndexName(indexName);
await PageObjects.searchProfiler.setQuery(testQuery);
Expand Down

0 comments on commit 605ef41

Please sign in to comment.