* Remove kibana.defaultAppId setting * Fix typings * Remove plugin dependency * Use proper navigation method to get to home * Default route for home * Address discover new routing code * Make non existing /kibana URLs working * Fix space awareness * Remove documentation * Remove the setting from docker file * Make defaultRoute forward work properly * Add forward_url tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
36 lines
1.4 KiB
JavaScript
36 lines
1.4 KiB
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import expect from '@kbn/expect';
|
|
|
|
export default function ({ getService, getPageObjects }) {
|
|
const browser = getService('browser');
|
|
const globalNav = getService('globalNav');
|
|
const testSubjects = getService('testSubjects');
|
|
const PageObjects = getPageObjects(['common', 'header', 'home']);
|
|
|
|
describe('Kibana takes you home', function describeIndexTests() {
|
|
this.tags('includeFirefox');
|
|
|
|
it('clicking on kibana logo should take you to home page', async () => {
|
|
await PageObjects.common.navigateToApp('settings');
|
|
await globalNav.clickLogo();
|
|
await PageObjects.header.waitUntilLoadingHasFinished();
|
|
const url = await browser.getCurrentUrl();
|
|
expect(url.includes('/app/home')).to.be(true);
|
|
});
|
|
|
|
it('clicking on console on homepage should take you to console app', async () => {
|
|
await PageObjects.common.navigateToApp('home');
|
|
await testSubjects.click('homeDevTools');
|
|
const url = await browser.getCurrentUrl();
|
|
expect(url.includes('/app/dev_tools#/console')).to.be(true);
|
|
});
|
|
});
|
|
}
|