Skip to content

Commit d5497d9

Browse files
[Endpoint] Fix alert list functional test error (#59357)
* fix the functional test error * fix linting Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 944be80 commit d5497d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

x-pack/test/functional/apps/endpoint/alert_list.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ import { FtrProviderContext } from '../../ftr_provider_context';
88
export default function({ getPageObjects, getService }: FtrProviderContext) {
99
const pageObjects = getPageObjects(['common', 'endpoint']);
1010
const testSubjects = getService('testSubjects');
11+
const esArchiver = getService('esArchiver');
1112

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

@@ -21,5 +23,9 @@ export default function({ getPageObjects, getService }: FtrProviderContext) {
2123
it('includes Alert list data grid', async () => {
2224
await testSubjects.existOrFail('alertListGrid');
2325
});
26+
27+
after(async () => {
28+
await esArchiver.unload('endpoint/alerts/api_feature');
29+
});
2430
});
2531
}

0 commit comments

Comments
 (0)