mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
don't load 1 minute of data twice (#138005)
This commit is contained in:
parent
73745fedf9
commit
e9609aff0c
2 changed files with 8 additions and 5 deletions
|
@ -14,7 +14,6 @@ import { FtrProviderContext } from '../../ftr_provider_context';
|
|||
|
||||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const log = getService('log');
|
||||
const esArchiver = getService('esArchiver');
|
||||
const retry = getService('retry');
|
||||
const security = getService('security');
|
||||
const browser = getService('browser');
|
||||
|
@ -47,9 +46,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await security.testUser.setRoles(['kibana_admin', 'test_shakespeare_reader']);
|
||||
await kibanaServer.savedObjects.cleanStandardList();
|
||||
log.debug('Load shakespeare data');
|
||||
await esArchiver.loadIfNeeded(
|
||||
'test/functional/fixtures/es_archiver/getting_started/shakespeare'
|
||||
);
|
||||
|
||||
if (!isNewChartsLibraryEnabled) {
|
||||
await kibanaServer.uiSettings.update({
|
||||
|
@ -61,7 +57,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
after(async () => {
|
||||
await security.testUser.restoreDefaults();
|
||||
await esArchiver.unload('test/functional/fixtures/es_archiver/getting_started/shakespeare');
|
||||
kibanaServer.savedObjects.cleanStandardList();
|
||||
await kibanaServer.uiSettings.replace({});
|
||||
});
|
||||
|
|
|
@ -11,10 +11,18 @@ import { FtrProviderContext } from '../../ftr_provider_context';
|
|||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const browser = getService('browser');
|
||||
const kibanaServer = getService('kibanaServer');
|
||||
const esArchiver = getService('esArchiver');
|
||||
|
||||
describe('Getting Started ', function () {
|
||||
before(async function () {
|
||||
await browser.setWindowSize(1200, 800);
|
||||
await esArchiver.loadIfNeeded(
|
||||
'test/functional/fixtures/es_archiver/getting_started/shakespeare'
|
||||
);
|
||||
});
|
||||
|
||||
after(async function () {
|
||||
await esArchiver.unload('test/functional/fixtures/es_archiver/getting_started/shakespeare');
|
||||
});
|
||||
|
||||
// TODO: Remove when vislib is removed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue