mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Update map visual test (#108593)
* Update map visual test * Up to latest
This commit is contained in:
parent
e33cdc29c6
commit
78e7e40b77
1 changed files with 33 additions and 3 deletions
|
@ -9,21 +9,51 @@ export default function ({ loadTestFile, getService }) {
|
|||
const kibanaServer = getService('kibanaServer');
|
||||
const esArchiver = getService('esArchiver');
|
||||
const browser = getService('browser');
|
||||
const log = getService('log');
|
||||
const supertest = getService('supertest');
|
||||
|
||||
describe('maps app visual regression', function () {
|
||||
before(async () => {
|
||||
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
|
||||
await kibanaServer.importExport.load(
|
||||
'x-pack/test/functional/fixtures/kbn_archiver/maps.json'
|
||||
);
|
||||
// Functional tests verify behavior when referenced index pattern saved objects can not be found.
|
||||
// However, saved object import fails when reference saved objects can not be found.
|
||||
// To prevent import errors, index pattern saved object references exist during import
|
||||
// but are then deleted afterwards to enable testing of missing reference index pattern saved objects.
|
||||
|
||||
log.info('Delete index pattern');
|
||||
log.debug('id: ' + 'idThatDoesNotExitForESGeoGridSource');
|
||||
log.debug('id: ' + 'idThatDoesNotExitForESSearchSource');
|
||||
log.debug('id: ' + 'idThatDoesNotExitForESJoinSource');
|
||||
await supertest
|
||||
.delete('/api/index_patterns/index_pattern/' + 'idThatDoesNotExitForESGeoGridSource')
|
||||
.set('kbn-xsrf', 'true')
|
||||
.expect(200);
|
||||
|
||||
await supertest
|
||||
.delete('/api/index_patterns/index_pattern/' + 'idThatDoesNotExitForESSearchSource')
|
||||
.set('kbn-xsrf', 'true')
|
||||
.expect(200);
|
||||
|
||||
await supertest
|
||||
.delete('/api/index_patterns/index_pattern/' + 'idThatDoesNotExitForESJoinSource')
|
||||
.set('kbn-xsrf', 'true')
|
||||
.expect(200);
|
||||
|
||||
await esArchiver.load('x-pack/test/functional/es_archives/maps/data');
|
||||
await esArchiver.load('x-pack/test/functional/es_archives/maps/kibana');
|
||||
await kibanaServer.uiSettings.replace({
|
||||
defaultIndex: 'logstash-*',
|
||||
defaultIndex: 'c698b940-e149-11e8-a35a-370a8516603a',
|
||||
});
|
||||
await browser.setWindowSize(1600, 1000);
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/maps/data');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/maps/kibana');
|
||||
await kibanaServer.importExport.unload(
|
||||
'x-pack/test/functional/fixtures/kbn_archiver/maps.json'
|
||||
);
|
||||
});
|
||||
|
||||
this.tags('ciGroup10');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue