Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
force failures for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Sep 13, 2019
1 parent f1d1bd2 commit 3ddd924
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/dev/__tests__/node_versions_must_match.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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');
});
});
});
Expand Down

0 comments on commit 3ddd924

Please sign in to comment.