diff --git a/test/functional/apps/console/_vector_tile.ts b/test/functional/apps/console/_vector_tile.ts index 9a211a9767a8d..77b186227ed28 100644 --- a/test/functional/apps/console/_vector_tile.ts +++ b/test/functional/apps/console/_vector_tile.ts @@ -28,10 +28,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.console.clearTextArea(); }); - after(async () => { - await security.testUser.restoreDefaults(); - }); - it('should validate response', async () => { await PageObjects.console.enterText(`GET kibana_sample_data_logs/_mvt/geo.coordinates/0/0/0`); await PageObjects.console.clickPlay(); @@ -47,6 +43,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); await PageObjects.header.waitUntilLoadingHasFinished(); await PageObjects.home.removeSampleDataSet('logs'); + await security.testUser.restoreDefaults(); }); }); }