mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
force failures for testing
This commit is contained in:
parent
f1d1bd2c97
commit
3ddd9240fe
2 changed files with 4 additions and 11 deletions
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue