Skip to content

Commit

Permalink
[Endpoint] Fix alert list functional test error (#59357)
Browse files Browse the repository at this point in the history
* fix the functional test error

* fix linting

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
marshallmain and elasticmachine authored Mar 5, 2020
1 parent 944be80 commit d5497d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x-pack/test/functional/apps/endpoint/alert_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import { FtrProviderContext } from '../../ftr_provider_context';
export default function({ getPageObjects, getService }: FtrProviderContext) {
const pageObjects = getPageObjects(['common', 'endpoint']);
const testSubjects = getService('testSubjects');
const esArchiver = getService('esArchiver');

describe('Endpoint Alert List', function() {
this.tags(['ciGroup7']);
before(async () => {
await esArchiver.load('endpoint/alerts/api_feature');
await pageObjects.common.navigateToUrlWithBrowserHistory('endpoint', '/alerts');
});

Expand All @@ -21,5 +23,9 @@ export default function({ getPageObjects, getService }: FtrProviderContext) {
it('includes Alert list data grid', async () => {
await testSubjects.existOrFail('alertListGrid');
});

after(async () => {
await esArchiver.unload('endpoint/alerts/api_feature');
});
});
}

0 comments on commit d5497d9

Please sign in to comment.