From 3ddd9240fe2afacf1920cb2130f0127def418b3a Mon Sep 17 00:00:00 2001 From: spalger Date: Thu, 12 Sep 2019 17:03:56 -0700 Subject: [PATCH] force failures for testing --- src/dev/__tests__/node_versions_must_match.js | 4 ++-- .../feature_controls/advanced_settings_security.ts | 11 ++--------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/dev/__tests__/node_versions_must_match.js b/src/dev/__tests__/node_versions_must_match.js index 99f2e255f47ea..37c43a8468878 100644 --- a/src/dev/__tests__/node_versions_must_match.js +++ b/src/dev/__tests__/node_versions_must_match.js @@ -33,10 +33,10 @@ describe('All configs should use a single version of Node', () => { expect(nodeVersion.trim()).to.be(nvmrc.trim()); }); - it('should compare .node-version and engines.node from package.json', async () => { + it('FORCE FAILURE should compare .node-version and engines.node from package.json', async () => { const nodeVersion = await readFile('./.node-version', { encoding: 'utf-8', }); - expect(nodeVersion.trim()).to.be(engines.node); + expect(nodeVersion.trim()).to.be(engines.node + ' FORCE FAILURE'); }); }); diff --git a/x-pack/test/functional/apps/advanced_settings/feature_controls/advanced_settings_security.ts b/x-pack/test/functional/apps/advanced_settings/feature_controls/advanced_settings_security.ts index 0834ff11ced58..63634eb5a59d0 100644 --- a/x-pack/test/functional/apps/advanced_settings/feature_controls/advanced_settings_security.ts +++ b/x-pack/test/functional/apps/advanced_settings/feature_controls/advanced_settings_security.ts @@ -12,7 +12,6 @@ export default function({ getPageObjects, getService }: FtrProviderContext) { const security = getService('security'); const PageObjects = getPageObjects(['common', 'settings', 'security', 'spaceSelector']); const appsMenu = getService('appsMenu'); - const testSubjects = getService('testSubjects'); const globalNav = getService('globalNav'); describe('security feature controls', () => { @@ -186,14 +185,8 @@ export default function({ getPageObjects, getService }: FtrProviderContext) { expect(navLinks).to.eql(['Discover', 'Management']); }); - it(`does not allow navigation to advanced settings; redirects to Kibana home`, async () => { - await PageObjects.common.navigateToActualUrl('kibana', 'management/kibana/settings', { - ensureCurrentUrl: false, - shouldLoginIfPrompted: false, - }); - await testSubjects.existOrFail('homeApp', { - timeout: 10000, - }); + it(`FORCED FAILURE does not allow navigation to advanced settings; redirects to Kibana home`, async () => { + throw new Error('FORCED FAILURE'); }); }); });