* restore the banners ui settings * fix banner init logic * fix unit tests * update telemetry schema * add basic server-side plugin tests * add FTR tests for banners plugin * use keyword for sensitive setting * update snapshots * setting name consistency with configuration properties * fix setting names in telemetry files * open banner links in new tab * add config.disableSpaceBanners property * fix types * add descriptions to banner settings * change label and value header->top * finishing header->top replacement * doc nits * add banners section to advanced options doc * feedback on advanced options doc * adapt deprecation to new format
23 lines
832 B
TypeScript
23 lines
832 B
TypeScript
/*
|
|
* 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; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import expect from '@kbn/expect';
|
|
import { FtrProviderContext } from '../ftr_provider_context';
|
|
|
|
export default function ({ getPageObjects }: FtrProviderContext) {
|
|
const PageObjects = getPageObjects(['common', 'security', 'banners']);
|
|
|
|
describe('global pages', () => {
|
|
it('displays the global banner on the login page', async () => {
|
|
await PageObjects.common.navigateToApp('login');
|
|
|
|
expect(await PageObjects.banners.isTopBannerVisible()).to.eql(true);
|
|
expect(await PageObjects.banners.getTopBannerText()).to.eql('global banner text');
|
|
});
|
|
});
|
|
}
|