Skip to content

Commit

Permalink
Navigate to getting started page so we can opt out of it
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed May 15, 2017
1 parent f77e0a0 commit 6982dfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/apps/console/_console.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default function ({ getService, getPageObjects }) {
describe('console app', function describeIndexTests() {
before(async function () {
log.debug('navigateTo console');
await PageObjects.common.navigateToUrl('settings', 'kibana/getting_started');
await PageObjects.gettingStarted.clickOptOutLink();
return PageObjects.common.navigateToApp('console');
});
Expand Down
4 changes: 4 additions & 0 deletions test/functional/page_objects/common_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export function CommonPageProvider({ getService, getPageObjects }) {
return getUrl.baseUrl(config.get('servers.elasticsearch'));
}

/**
* @param {string} appName As defined in the apps objects in test/server_config.js
* @param {string} subUrl The route after the hash (#)
*/
navigateToUrl(appName, subUrl) {
const appConfig = Object.assign({}, config.get(['apps', appName]), {
// Overwrite the default hash with the URL we really want.
Expand Down

0 comments on commit 6982dfb

Please sign in to comment.