diff --git a/packages/kbn-pm/src/utils/projects.test.ts b/packages/kbn-pm/src/utils/projects.test.ts
index f127bfd3700121..1b839440b94499 100644
--- a/packages/kbn-pm/src/utils/projects.test.ts
+++ b/packages/kbn-pm/src/utils/projects.test.ts
@@ -224,7 +224,7 @@ describe('#topologicallyBatchProjects', () => {
expect(expectedBatches).toMatchSnapshot();
});
- describe('batchByWorkspace = true', async () => {
+ describe('batchByWorkspace = true', () => {
test('batches projects topologically based on their project dependencies and workspaces', async () => {
const batches = topologicallyBatchProjects(projects, graph, { batchByWorkspace: true });
diff --git a/src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts b/src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts
index 3e264760a148bb..5f894cc8d8a9e9 100644
--- a/src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts
+++ b/src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts
@@ -219,7 +219,7 @@ describe('filter_manager', () => {
});
});
- describe('add filters', async () => {
+ describe('add filters', () => {
test('app state should accept a single filter', async function() {
updateSubscription = filterManager.getUpdates$().subscribe(updateListener);
const f1 = getFilter(FilterStateStore.APP_STATE, false, false, 'age', 34);
@@ -535,7 +535,7 @@ describe('filter_manager', () => {
});
});
- describe('remove filters', async () => {
+ describe('remove filters', () => {
test('remove on empty should do nothing and not fire events', async () => {
updateSubscription = filterManager.getUpdates$().subscribe(updateListener);
await filterManager.removeAll();
diff --git a/src/legacy/ui/public/courier/fetch/request/serialize_fetch_params/serialize_fetch_params.test.js b/src/legacy/ui/public/courier/fetch/request/serialize_fetch_params/serialize_fetch_params.test.js
index 56a2eb93e04166..bca5d05e765571 100644
--- a/src/legacy/ui/public/courier/fetch/request/serialize_fetch_params/serialize_fetch_params.test.js
+++ b/src/legacy/ui/public/courier/fetch/request/serialize_fetch_params/serialize_fetch_params.test.js
@@ -81,7 +81,7 @@ describe('headers', () => {
return JSON.parse(requestParts[0]);
};
- describe('search request preference', async () => {
+ describe('search request preference', () => {
test('should be set to sessionId when courier:setRequestPreference is "sessionId"', async () => {
const config = {
get: () => {
diff --git a/src/legacy/ui/public/kfetch/kfetch.test.ts b/src/legacy/ui/public/kfetch/kfetch.test.ts
index 3452892a4b23a2..259acc2753a43e 100644
--- a/src/legacy/ui/public/kfetch/kfetch.test.ts
+++ b/src/legacy/ui/public/kfetch/kfetch.test.ts
@@ -133,7 +133,7 @@ describe('kfetch', () => {
}
});
- describe('when throwing response error (KFetchError)', async () => {
+ describe('when throwing response error (KFetchError)', () => {
let error: KFetchError;
beforeEach(async () => {
fetchMock.get('*', { status: 404, body: { foo: 'bar' } });
@@ -348,7 +348,7 @@ describe('kfetch', () => {
});
});
- describe('when interceptors return synchronously', async () => {
+ describe('when interceptors return synchronously', () => {
let resp: any;
beforeEach(async () => {
fetchMock.get('*', { foo: 'bar' });
@@ -381,7 +381,7 @@ describe('kfetch', () => {
});
});
- describe('when interceptors return promise', async () => {
+ describe('when interceptors return promise', () => {
let resp: any;
beforeEach(async () => {
fetchMock.get('*', { foo: 'bar' });
diff --git a/test/api_integration/apis/management/saved_objects/relationships.js b/test/api_integration/apis/management/saved_objects/relationships.js
index ee369e5c8827ab..8e5152f0f64633 100644
--- a/test/api_integration/apis/management/saved_objects/relationships.js
+++ b/test/api_integration/apis/management/saved_objects/relationships.js
@@ -52,7 +52,7 @@ export default function ({ getService }) {
const getSavedObjectTypesQuery = types => coerceToArray(types).map(type => `savedObjectTypes=${type}`).join('&');
const defaultQuery = getSavedObjectTypesQuery(['visualization', 'index-pattern', 'search', 'dashboard']);
- describe('searches', async () => {
+ describe('searches', () => {
it('should validate search response schema', async () => {
await supertest
.get(`${baseApiUrl}/search/960372e0-3224-11e8-a572-ffca06da1357?${defaultQuery}`)
@@ -145,7 +145,7 @@ export default function ({ getService }) {
});
});
- describe('dashboards', async () => {
+ describe('dashboards', () => {
it('should validate dashboard response schema', async () => {
await supertest
.get(`${baseApiUrl}/dashboard/b70c7ae0-3224-11e8-a572-ffca06da1357?${defaultQuery}`)
@@ -240,7 +240,7 @@ export default function ({ getService }) {
});
});
- describe('visualizations', async () => {
+ describe('visualizations', () => {
it('should validate visualization response schema', async () => {
await supertest
.get(`${baseApiUrl}/visualization/a42c0580-3224-11e8-a572-ffca06da1357?${defaultQuery}`)
@@ -320,7 +320,7 @@ export default function ({ getService }) {
});
});
- describe('index patterns', async () => {
+ describe('index patterns', () => {
it('should validate visualization response schema', async () => {
await supertest
.get(`${baseApiUrl}/index-pattern/8963ca30-3224-11e8-a572-ffca06da1357?${defaultQuery}`)
diff --git a/test/functional/apps/dashboard/create_and_add_embeddables.js b/test/functional/apps/dashboard/create_and_add_embeddables.js
index 78486d24b4fca5..8f83dc173b7216 100644
--- a/test/functional/apps/dashboard/create_and_add_embeddables.js
+++ b/test/functional/apps/dashboard/create_and_add_embeddables.js
@@ -29,7 +29,7 @@ export default function ({ getService, getPageObjects }) {
const browser = getService('browser');
const dashboardAddPanel = getService('dashboardAddPanel');
- describe('create and add embeddables', async () => {
+ describe('create and add embeddables', () => {
before(async () => {
await PageObjects.dashboard.loadSavedDashboard('few panels');
});
diff --git a/test/functional/apps/dashboard/dashboard_filter_bar.js b/test/functional/apps/dashboard/dashboard_filter_bar.js
index 2c1ee7e6043680..7b85c55e17ef28 100644
--- a/test/functional/apps/dashboard/dashboard_filter_bar.js
+++ b/test/functional/apps/dashboard/dashboard_filter_bar.js
@@ -27,12 +27,12 @@ export default function ({ getService, getPageObjects }) {
const pieChart = getService('pieChart');
const PageObjects = getPageObjects(['dashboard', 'header', 'visualize']);
- describe('dashboard filter bar', async () => {
+ describe('dashboard filter bar', () => {
before(async () => {
await PageObjects.dashboard.gotoDashboardLandingPage();
});
- describe('Add a filter bar', async function () {
+ describe('Add a filter bar', function () {
before(async () => {
await PageObjects.dashboard.gotoDashboardLandingPage();
});
@@ -50,7 +50,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('filter editor field list', async function () {
+ describe('filter editor field list', function () {
this.tags(['skipFirefox']);
before(async () => {
@@ -80,7 +80,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('filter pills', async function () {
+ describe('filter pills', function () {
before(async () => {
await filterBar.ensureFieldEditorModalIsClosed();
await PageObjects.dashboard.gotoDashboardLandingPage();
diff --git a/test/functional/apps/dashboard/dashboard_filtering.js b/test/functional/apps/dashboard/dashboard_filtering.js
index 9c8076afa21265..af865226465681 100644
--- a/test/functional/apps/dashboard/dashboard_filtering.js
+++ b/test/functional/apps/dashboard/dashboard_filtering.js
@@ -34,13 +34,13 @@ export default function ({ getService, getPageObjects }) {
const dashboardPanelActions = getService('dashboardPanelActions');
const PageObjects = getPageObjects(['dashboard', 'header', 'visualize']);
- describe('dashboard filtering', async function () {
+ describe('dashboard filtering', function () {
this.tags('smoke');
before(async () => {
await PageObjects.dashboard.gotoDashboardLandingPage();
});
- describe('adding a filter that excludes all data', async () => {
+ describe('adding a filter that excludes all data', () => {
before(async () => {
await PageObjects.dashboard.clickNewDashboard();
await PageObjects.dashboard.setTimepickerInDataRange();
@@ -107,7 +107,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('using a pinned filter that excludes all data', async () => {
+ describe('using a pinned filter that excludes all data', () => {
before(async () => {
await filterBar.toggleFilterPinned('bytes');
await PageObjects.header.waitUntilLoadingHasFinished();
@@ -169,7 +169,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('disabling a filter unfilters the data on', async () => {
+ describe('disabling a filter unfilters the data on', () => {
before(async () => {
await filterBar.toggleFilterEnabled('bytes');
await PageObjects.header.waitUntilLoadingHasFinished();
@@ -227,7 +227,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('nested filtering', async () => {
+ describe('nested filtering', () => {
before(async () => {
await PageObjects.dashboard.gotoDashboardLandingPage();
});
diff --git a/test/functional/apps/dashboard/dashboard_listing.js b/test/functional/apps/dashboard/dashboard_listing.js
index 84ab47ae592e26..466a7abd4ce085 100644
--- a/test/functional/apps/dashboard/dashboard_listing.js
+++ b/test/functional/apps/dashboard/dashboard_listing.js
@@ -30,7 +30,7 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.dashboard.initTests();
});
- describe('create prompt', async () => {
+ describe('create prompt', () => {
it('appears when there are no dashboards', async function () {
const promptExists = await PageObjects.dashboard.getCreateDashboardPromptExists();
expect(promptExists).to.be(true);
@@ -59,7 +59,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('delete', async function () {
+ describe('delete', function () {
it('default confirm action is cancel', async function () {
await PageObjects.dashboard.searchForDashboardWithName(dashboardName);
await PageObjects.dashboard.checkDashboardListingSelectAllCheckbox();
diff --git a/test/functional/apps/dashboard/dashboard_options.js b/test/functional/apps/dashboard/dashboard_options.js
index db1c7091a78f52..4ef015efe78127 100644
--- a/test/functional/apps/dashboard/dashboard_options.js
+++ b/test/functional/apps/dashboard/dashboard_options.js
@@ -23,7 +23,7 @@ export default function ({ getService, getPageObjects }) {
const retry = getService('retry');
const PageObjects = getPageObjects(['dashboard']);
- describe('dashboard data-shared attributes', async () => {
+ describe('dashboard data-shared attributes', () => {
let originalTitles = [];
before(async () => {
diff --git a/test/functional/apps/dashboard/dashboard_query_bar.js b/test/functional/apps/dashboard/dashboard_query_bar.js
index f6f3b8a8945181..990f2c83d95612 100644
--- a/test/functional/apps/dashboard/dashboard_query_bar.js
+++ b/test/functional/apps/dashboard/dashboard_query_bar.js
@@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }) {
const queryBar = getService('queryBar');
const PageObjects = getPageObjects(['dashboard', 'discover']);
- describe('dashboard query bar', async () => {
+ describe('dashboard query bar', () => {
before(async () => {
await PageObjects.dashboard.loadSavedDashboard('dashboard with filter');
});
diff --git a/test/functional/apps/dashboard/dashboard_time.js b/test/functional/apps/dashboard/dashboard_time.js
index 8ce77f7ee46f52..917157e54eee05 100644
--- a/test/functional/apps/dashboard/dashboard_time.js
+++ b/test/functional/apps/dashboard/dashboard_time.js
@@ -56,7 +56,7 @@ export default function ({ getPageObjects, getService }) {
});
});
- describe('dashboard with stored timed', async function () {
+ describe('dashboard with stored timed', function () {
it('is saved with time', async function () {
await PageObjects.dashboard.switchToEditMode();
await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime);
diff --git a/test/functional/apps/dashboard/embed_mode.js b/test/functional/apps/dashboard/embed_mode.js
index f5b99bf30ca953..4263abc3acdd88 100644
--- a/test/functional/apps/dashboard/embed_mode.js
+++ b/test/functional/apps/dashboard/embed_mode.js
@@ -24,7 +24,7 @@ export default function ({ getService, getPageObjects }) {
const PageObjects = getPageObjects(['dashboard', 'common']);
const browser = getService('browser');
- describe('embed mode', async () => {
+ describe('embed mode', () => {
before(async () => {
await PageObjects.dashboard.loadSavedDashboard('few panels');
});
diff --git a/test/functional/apps/dashboard/empty_dashboard.js b/test/functional/apps/dashboard/empty_dashboard.js
index 26745ed61910ac..2a7772a32093ba 100644
--- a/test/functional/apps/dashboard/empty_dashboard.js
+++ b/test/functional/apps/dashboard/empty_dashboard.js
@@ -24,7 +24,7 @@ export default function ({ getService, getPageObjects }) {
const dashboardAddPanel = getService('dashboardAddPanel');
const PageObjects = getPageObjects(['dashboard']);
- describe('empty dashboard', async () => {
+ describe('empty dashboard', () => {
before(async () => {
await PageObjects.dashboard.clickNewDashboard();
});
diff --git a/test/functional/apps/dashboard/full_screen_mode.js b/test/functional/apps/dashboard/full_screen_mode.js
index 0475c40eff0c47..3c5ced7339df38 100644
--- a/test/functional/apps/dashboard/full_screen_mode.js
+++ b/test/functional/apps/dashboard/full_screen_mode.js
@@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }) {
const dashboardPanelActions = getService('dashboardPanelActions');
const PageObjects = getPageObjects(['dashboard', 'common']);
- describe('full screen mode', async () => {
+ describe('full screen mode', () => {
before(async () => {
await PageObjects.dashboard.loadSavedDashboard('few panels');
});
diff --git a/test/functional/apps/dashboard/view_edit.js b/test/functional/apps/dashboard/view_edit.js
index f19066c9d0939b..ae16f32232a0b4 100644
--- a/test/functional/apps/dashboard/view_edit.js
+++ b/test/functional/apps/dashboard/view_edit.js
@@ -53,7 +53,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('shows lose changes warning', async function () {
+ describe('shows lose changes warning', function () {
describe('and loses changes on confirmation', function () {
beforeEach(async function () {
await PageObjects.dashboard.gotoDashboardEditMode(dashboardName);
@@ -195,7 +195,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('Does not show lose changes warning', async function () {
+ describe('Does not show lose changes warning', function () {
it('when time changed is not stored with dashboard', async function () {
await PageObjects.dashboard.gotoDashboardEditMode(dashboardName);
await PageObjects.dashboard.saveDashboard(dashboardName, { storeTimeWithDashboard: false });
diff --git a/test/functional/apps/discover/_discover.js b/test/functional/apps/discover/_discover.js
index 891fed8c1caa26..94eac40fa25416 100644
--- a/test/functional/apps/discover/_discover.js
+++ b/test/functional/apps/discover/_discover.js
@@ -381,7 +381,7 @@ export default function ({ getService, getPageObjects }) {
}
});
- describe('query #2, which has an empty time range', async () => {
+ describe('query #2, which has an empty time range', () => {
const fromTime = '1999-06-11 09:22:11.000';
const toTime = '1999-06-12 11:21:04.000';
@@ -402,7 +402,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('filter editor', async function () {
+ describe('filter editor', function () {
it('should add a phrases filter', async function () {
await filterBar.addFilter('extension.raw', 'is one of', 'jpg');
expect(await filterBar.hasFilter('extension.raw', 'jpg')).to.be(true);
diff --git a/test/functional/apps/visualize/_markdown_vis.js b/test/functional/apps/visualize/_markdown_vis.js
index 4fca691153b362..f50641407fc295 100644
--- a/test/functional/apps/visualize/_markdown_vis.js
+++ b/test/functional/apps/visualize/_markdown_vis.js
@@ -29,7 +29,7 @@ export default function ({ getPageObjects, getService }) {
Inline HTML that should not be rendered as html
`;
- describe('visualize app', async () => {
+ describe('visualize app', () => {
before(async function () {
await PageObjects.visualize.navigateToNewVisualization();
await PageObjects.visualize.clickMarkdownWidget();
@@ -37,7 +37,7 @@ export default function ({ getPageObjects, getService }) {
await PageObjects.visualize.clickGo();
});
- describe('markdown vis', async () => {
+ describe('markdown vis', () => {
it('should not have inspector enabled', async function () {
await inspector.expectIsNotEnabled();
diff --git a/test/functional/apps/visualize/_pie_chart.js b/test/functional/apps/visualize/_pie_chart.js
index 40f0e76d82613a..b9c10aaf578bfa 100644
--- a/test/functional/apps/visualize/_pie_chart.js
+++ b/test/functional/apps/visualize/_pie_chart.js
@@ -28,7 +28,7 @@ export default function ({ getService, getPageObjects }) {
const fromTime = '2015-09-19 06:31:44.000';
const toTime = '2015-09-23 18:31:44.000';
- describe('pie chart', async function () {
+ describe('pie chart', function () {
const vizName1 = 'Visualization PieChart';
before(async function () {
log.debug('navigateToApp visualize');
diff --git a/test/functional/apps/visualize/_point_series_options.js b/test/functional/apps/visualize/_point_series_options.js
index 671f77b3e54259..61ea45cdc2e02c 100644
--- a/test/functional/apps/visualize/_point_series_options.js
+++ b/test/functional/apps/visualize/_point_series_options.js
@@ -184,7 +184,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('timezones', async function () {
+ describe('timezones', function () {
const expectedLabels = [
'2015-09-20 00:00',
'2015-09-21 00:00',
diff --git a/test/functional/apps/visualize/_tile_map.js b/test/functional/apps/visualize/_tile_map.js
index a4ce3f14420949..7719ecca56a651 100644
--- a/test/functional/apps/visualize/_tile_map.js
+++ b/test/functional/apps/visualize/_tile_map.js
@@ -209,7 +209,7 @@ export default function ({ getService, getPageObjects }) {
});
- describe('Only request data around extent of map option', async () => {
+ describe('Only request data around extent of map option', () => {
it('when checked adds filters to aggregation', async () => {
const vizName1 = 'Visualization TileMap';
diff --git a/test/functional/apps/visualize/_visualize_listing.js b/test/functional/apps/visualize/_visualize_listing.js
index 51f6497f63e8ec..df4812ab3f1474 100644
--- a/test/functional/apps/visualize/_visualize_listing.js
+++ b/test/functional/apps/visualize/_visualize_listing.js
@@ -25,7 +25,7 @@ export default function ({ getPageObjects }) {
describe('visualize listing page', function describeIndexTests() {
const vizName = 'Visualize Listing Test';
- describe('create and delete', async function () {
+ describe('create and delete', function () {
before(async function () {
await PageObjects.visualize.gotoVisualizationLandingPage();
diff --git a/x-pack/legacy/plugins/canvas/server/routes/workpad.test.js b/x-pack/legacy/plugins/canvas/server/routes/workpad.test.js
index 0c8da43267569c..fcfe87f460b197 100644
--- a/x-pack/legacy/plugins/canvas/server/routes/workpad.test.js
+++ b/x-pack/legacy/plugins/canvas/server/routes/workpad.test.js
@@ -252,7 +252,7 @@ Array [
});
});
- describe(`GET ${routePrefix}/find`, async () => {
+ it(`GET ${routePrefix}/find`, async () => {
const request = {
method: 'GET',
url: `${routePrefix}/find?name=abc&page=2&perPage=10`,
diff --git a/x-pack/legacy/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js b/x-pack/legacy/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js
index 5458dfa9599aa8..bcefb21167499b 100644
--- a/x-pack/legacy/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js
+++ b/x-pack/legacy/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js
@@ -45,7 +45,7 @@ describe('license_pre_routing_factory', () => {
});
});
- describe('isAvailable is true', async () => {
+ describe('isAvailable is true', () => {
beforeEach(() => {
mockLicenseCheckResults = {
isAvailable: true
diff --git a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch_settings/__tests__/find_reason.js b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch_settings/__tests__/find_reason.js
index b3515c4c0c0a07..bf3652d8aaa0f4 100644
--- a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch_settings/__tests__/find_reason.js
+++ b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch_settings/__tests__/find_reason.js
@@ -129,7 +129,7 @@ describe('Elasticsearch Settings Find Reason for No Data', () => {
expect(result).to.eql({ found: false });
});
- describe('exporters', async () => {
+ describe('exporters', () => {
it('should warn if all exporters are disabled', async () => {
const input = {
exporters: {
diff --git a/x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js b/x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js
index fb82cb45ee62ff..0ffc19efba2987 100644
--- a/x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js
+++ b/x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js
@@ -296,7 +296,7 @@ describe('CSV Execute Job', function () {
});
});
- describe('Cells with formula values', async () => {
+ describe('Cells with formula values', () => {
it('returns `csv_contains_formulas` when cells contain formulas', async function () {
mockServer.config().get.withArgs('xpack.reporting.csv.checkForFormulas').returns(true);
callWithRequestStub.onFirstCall().returns({
diff --git a/x-pack/test/api_integration/apis/management/index_lifecycle_management/nodes.js b/x-pack/test/api_integration/apis/management/index_lifecycle_management/nodes.js
index 27c575e7265b93..5ce1d7d956d671 100644
--- a/x-pack/test/api_integration/apis/management/index_lifecycle_management/nodes.js
+++ b/x-pack/test/api_integration/apis/management/index_lifecycle_management/nodes.js
@@ -33,7 +33,7 @@ export default function ({ getService }) {
});
});
- describe('detail', async () => {
+ describe('detail', () => {
it('should return the node stats when providing a custom node attribute', async () => {
// Load the stats from ES js client
const nodeStats = await getNodesStats();
diff --git a/x-pack/test/api_integration/apis/security/roles.js b/x-pack/test/api_integration/apis/security/roles.js
index f5a6631afb32ee..d1d4c3c7b7af88 100644
--- a/x-pack/test/api_integration/apis/security/roles.js
+++ b/x-pack/test/api_integration/apis/security/roles.js
@@ -88,7 +88,7 @@ export default function ({ getService }) {
});
});
- it(`should ${basic ? 'not' : ''} create a role with kibana and FLS/DLS elasticsearch
+ it(`should ${basic ? 'not' : ''} create a role with kibana and FLS/DLS elasticsearch
privileges on ${basic ? 'basic' : 'trial'} licenses`, async () => {
await supertest.put('/api/security/role/role_with_privileges_dls_fls')
.set('kbn-xsrf', 'xxx')
@@ -219,7 +219,7 @@ export default function ({ getService }) {
});
});
- it(`should ${basic ? 'not' : ''} update a role adding DLS and TLS priviledges
+ it(`should ${basic ? 'not' : ''} update a role adding DLS and TLS priviledges
when using ${basic ? 'basic' : 'trial'} license`, async () => {
await es.shield.putRole({
@@ -267,7 +267,7 @@ export default function ({ getService }) {
});
});
- describe('Get Role', async () => {
+ describe('Get Role', () => {
it('should get roles', async () => {
await es.shield.putRole({
name: 'role_to_get',
diff --git a/x-pack/test/functional/apps/canvas/smoke_test.js b/x-pack/test/functional/apps/canvas/smoke_test.js
index 5042ef2ebf35ff..2a3dfbf669e4ee 100644
--- a/x-pack/test/functional/apps/canvas/smoke_test.js
+++ b/x-pack/test/functional/apps/canvas/smoke_test.js
@@ -14,7 +14,7 @@ export default function canvasSmokeTest({ getService, getPageObjects }) {
const retry = getService('retry');
const PageObjects = getPageObjects(['common']);
- describe('smoke test', async function () {
+ describe('smoke test', function () {
this.tags('smoke');
const workpadListSelector = 'canvasWorkpadLoaderTable canvasWorkpadLoaderWorkpad';
const testWorkpadId = 'workpad-1705f884-6224-47de-ba49-ca224fe6ec31';
diff --git a/x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts b/x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts
index 32c90c65c4a923..341e87c453c298 100644
--- a/x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts
+++ b/x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts
@@ -117,7 +117,7 @@ export default function({ getPageObjects, getService }: KibanaFunctionalTestDefa
});
});
- describe('space with Visualize disabled', async () => {
+ describe('space with Visualize disabled', () => {
before(async () => {
// we need to load the following in every situation as deleting
// a space deletes all of the associated saved objects
@@ -144,7 +144,7 @@ export default function({ getPageObjects, getService }: KibanaFunctionalTestDefa
});
});
- describe('space with index pattern management disabled', async () => {
+ describe('space with index pattern management disabled', () => {
before(async () => {
await spacesService.create({
id: 'custom_space',
diff --git a/x-pack/test/functional/apps/maps/documents_source/top_hits.js b/x-pack/test/functional/apps/maps/documents_source/top_hits.js
index 517d0b682be187..3b09bd9d4b35a3 100644
--- a/x-pack/test/functional/apps/maps/documents_source/top_hits.js
+++ b/x-pack/test/functional/apps/maps/documents_source/top_hits.js
@@ -31,7 +31,7 @@ export default function ({ getPageObjects, getService }) {
expect(mapboxStyle.sources[VECTOR_SOURCE_ID].data.features.length).to.equal(10);
});
- describe('configuration', async () => {
+ describe('configuration', () => {
before(async () => {
await PageObjects.maps.openLayerPanel('logstash');
// Can not use testSubjects because data-test-subj is placed range input and number input
@@ -52,7 +52,7 @@ export default function ({ getPageObjects, getService }) {
});
});
- describe('query', async () => {
+ describe('query', () => {
before(async () => {
await PageObjects.maps.setAndSubmitQuery('machine.os.raw : "win 8"');
});
diff --git a/x-pack/test/functional/apps/maps/es_geo_grid_source.js b/x-pack/test/functional/apps/maps/es_geo_grid_source.js
index 1ee034d07689c7..f24029dae8d5f4 100644
--- a/x-pack/test/functional/apps/maps/es_geo_grid_source.js
+++ b/x-pack/test/functional/apps/maps/es_geo_grid_source.js
@@ -30,7 +30,7 @@ export default function ({ getPageObjects, getService }) {
function makeRequestTestsForGeoPrecision(LAYER_ID) {
- describe('geoprecision - requests', async () => {
+ describe('geoprecision - requests', () => {
let beforeTimestamp;
beforeEach(async () => {
await PageObjects.maps.setView(DATA_CENTER_LAT, DATA_CENTER_LON, 1);
@@ -58,7 +58,7 @@ export default function ({ getPageObjects, getService }) {
});
});
- describe('geotile grid precision - data', async ()=> {
+ describe('geotile grid precision - data', ()=> {
beforeEach(async () => {
await PageObjects.maps.setView(DATA_CENTER_LAT, DATA_CENTER_LON, 1);
diff --git a/x-pack/test/functional/apps/maps/layer_errors.js b/x-pack/test/functional/apps/maps/layer_errors.js
index 1fe9778a44db36..142ea7c4bf0252 100644
--- a/x-pack/test/functional/apps/maps/layer_errors.js
+++ b/x-pack/test/functional/apps/maps/layer_errors.js
@@ -16,7 +16,7 @@ export default function ({ getPageObjects }) {
await PageObjects.maps.loadSavedMap('layer with errors');
});
- describe('ESSearchSource with missing index pattern id', async () => {
+ describe('ESSearchSource with missing index pattern id', () => {
const MISSING_INDEX_ID = 'idThatDoesNotExitForESSearchSource';
const LAYER_NAME = MISSING_INDEX_ID;
@@ -33,7 +33,7 @@ export default function ({ getPageObjects }) {
});
});
- describe('ESGeoGridSource with missing index pattern id', async () => {
+ describe('ESGeoGridSource with missing index pattern id', () => {
const MISSING_INDEX_ID = 'idThatDoesNotExitForESGeoGridSource';
const LAYER_NAME = MISSING_INDEX_ID;
@@ -49,7 +49,7 @@ export default function ({ getPageObjects }) {
});
});
- describe('ESJoinSource with missing index pattern id', async () => {
+ describe('ESJoinSource with missing index pattern id', () => {
const MISSING_INDEX_ID = 'idThatDoesNotExitForESJoinSource';
const LAYER_NAME = 'geo_shapes*';
@@ -65,7 +65,7 @@ export default function ({ getPageObjects }) {
});
});
- describe('EMSFileSource with missing EMS id', async () => {
+ describe('EMSFileSource with missing EMS id', () => {
const MISSING_EMS_ID = 'idThatDoesNotExitForEMSFileSource';
const LAYER_NAME = 'EMS_vector_shapes';
@@ -81,7 +81,7 @@ export default function ({ getPageObjects }) {
});
});
- describe('EMSTMSSource with missing EMS id', async () => {
+ describe('EMSTMSSource with missing EMS id', () => {
const MISSING_EMS_ID = 'idThatDoesNotExitForEMSTile';
const LAYER_NAME = 'EMS_tiles';
@@ -97,7 +97,7 @@ export default function ({ getPageObjects }) {
});
});
- describe('KibanaRegionmapSource with missing region map configuration', async () => {
+ describe('KibanaRegionmapSource with missing region map configuration', () => {
const MISSING_REGION_NAME = 'nameThatDoesNotExitForKibanaRegionmapSource';
const LAYER_NAME = 'Custom_vector_shapes';
@@ -113,7 +113,7 @@ export default function ({ getPageObjects }) {
});
});
- describe('KibanaTilemapSource with missing map.tilemap.url configuration', async () => {
+ describe('KibanaTilemapSource with missing map.tilemap.url configuration', () => {
const LAYER_NAME = 'Custom_TMS';
it('should diplay error message in layer panel', async () => {
diff --git a/x-pack/test/functional/apps/monitoring/cluster/alerts.js b/x-pack/test/functional/apps/monitoring/cluster/alerts.js
index 0a2ffb90c536d2..e20fde98064bfc 100644
--- a/x-pack/test/functional/apps/monitoring/cluster/alerts.js
+++ b/x-pack/test/functional/apps/monitoring/cluster/alerts.js
@@ -161,7 +161,7 @@ export default function ({ getService, getPageObjects }) {
});
});
- describe('alert actions take you to the elasticsearch indices listing', async () => {
+ describe('alert actions take you to the elasticsearch indices listing', () => {
const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects);
before(async () => {
diff --git a/x-pack/test/functional/apps/rollup_job/rollup_jobs.js b/x-pack/test/functional/apps/rollup_job/rollup_jobs.js
index 0d878208746622..85acc047be396b 100644
--- a/x-pack/test/functional/apps/rollup_job/rollup_jobs.js
+++ b/x-pack/test/functional/apps/rollup_job/rollup_jobs.js
@@ -12,7 +12,7 @@ export default function ({ getService, getPageObjects }) {
const log = getService('log');
const PageObjects = getPageObjects(['security', 'rollup', 'common', 'header']);
- describe('rollup job', async function () {
+ describe('rollup job', function () {
this.tags('smoke');
before(async () => {
// init data
diff --git a/x-pack/test/functional/apps/security/management.js b/x-pack/test/functional/apps/security/management.js
index e2f2316cc1a20c..8ff682311e47e6 100644
--- a/x-pack/test/functional/apps/security/management.js
+++ b/x-pack/test/functional/apps/security/management.js
@@ -41,8 +41,8 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.settings.navigateTo();
});
- describe('Security', async () => {
- describe('navigation', async () => {
+ describe('Security', () => {
+ describe('navigation', () => {
it('Can navigate to create user section', async () => {
await PageObjects.security.clickElasticsearchUsers();
await PageObjects.security.clickCreateNewUser();
diff --git a/x-pack/test/functional/apps/security/rbac_phase1.js b/x-pack/test/functional/apps/security/rbac_phase1.js
index fbe2f8b66c59b3..9b8be614c9f5bf 100644
--- a/x-pack/test/functional/apps/security/rbac_phase1.js
+++ b/x-pack/test/functional/apps/security/rbac_phase1.js
@@ -14,7 +14,7 @@ export default function ({ getService, getPageObjects }) {
const browser = getService('browser');
const kibanaServer = getService('kibanaServer');
- describe('rbac ', async function () {
+ describe('rbac ', function () {
before(async () => {
await browser.setWindowSize(1600, 1000);
log.debug('users');
diff --git a/x-pack/test/functional/apps/spaces/spaces_selection.ts b/x-pack/test/functional/apps/spaces/spaces_selection.ts
index 49f0d0f8d73a25..e7a265589f25cd 100644
--- a/x-pack/test/functional/apps/spaces/spaces_selection.ts
+++ b/x-pack/test/functional/apps/spaces/spaces_selection.ts
@@ -92,7 +92,7 @@ export default function spaceSelectorFunctonalTests({
await esArchiver.unload('spaces/selector');
});
- describe('displays separate data for each space', async () => {
+ describe('displays separate data for each space', () => {
it('in the default space', async () => {
await PageObjects.common.navigateToApp('dashboard');
await expectDashboardRenders('[Logs] Web Traffic');
diff --git a/x-pack/test/functional/apps/uptime/monitor.ts b/x-pack/test/functional/apps/uptime/monitor.ts
index e209cfd54c239e..def84b57f06f72 100644
--- a/x-pack/test/functional/apps/uptime/monitor.ts
+++ b/x-pack/test/functional/apps/uptime/monitor.ts
@@ -12,7 +12,7 @@ export default ({ getPageObjects, getService }: KibanaFunctionalTestDefaultProvi
const pageObjects = getPageObjects(['uptime']);
const archive = 'uptime/full_heartbeat';
- describe('monitor page', async function() {
+ describe('monitor page', function() {
this.tags(['skipFirefox']);
before(async () => {
await esArchiver.load(archive);
diff --git a/x-pack/test/reporting/api/bwc_existing_indexes.js b/x-pack/test/reporting/api/bwc_existing_indexes.js
index 7743e99c03de42..b7a3ed51f6fe90 100644
--- a/x-pack/test/reporting/api/bwc_existing_indexes.js
+++ b/x-pack/test/reporting/api/bwc_existing_indexes.js
@@ -20,7 +20,7 @@ export default function ({ getService }) {
const reportingAPI = getService('reportingAPI');
const usageAPI = getService('usageAPI');
- describe('BWC report generation into existing indexes', async () => {
+ describe('BWC report generation into existing indexes', () => {
let expectedCompletedReportCount;
let cleanupIndexAlias;
diff --git a/x-pack/test/spaces_api_integration/common/suites/delete.ts b/x-pack/test/spaces_api_integration/common/suites/delete.ts
index 2cf2d9388665aa..9ec01980015115 100644
--- a/x-pack/test/spaces_api_integration/common/suites/delete.ts
+++ b/x-pack/test/spaces_api_integration/common/suites/delete.ts
@@ -164,7 +164,7 @@ export function deleteTestSuiteFactory(es: any, esArchiver: any, supertest: Supe
.then(tests.exists.response);
});
- describe(`when the space is reserved`, async () => {
+ describe(`when the space is reserved`, () => {
it(`should return ${tests.reservedSpace.statusCode}`, async () => {
return supertest
.delete(`${getUrlPrefix(spaceId)}/api/spaces/space/default`)