Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Sep 7, 2023
1 parent 588f27b commit 11a7973
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 5 additions & 3 deletions x-pack/test/disable_ems/config.ts
Expand Up @@ -5,15 +5,14 @@
* 2.0.
*/

import { resolve } from 'path';
import { FtrConfigProviderContext } from '@kbn/test';
import { services, pageObjects } from './ftr_provider_context';

export default async function ({ readConfigFile }: FtrConfigProviderContext) {
const kibanaFunctionalConfig = await readConfigFile(
require.resolve('../functional/config.base.js')
);

return {
...kibanaFunctionalConfig.getAll(),
testFiles: [require.resolve('./tests')],
Expand All @@ -24,7 +23,10 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
},
kbnTestServer: {
...kibanaFunctionalConfig.get('kbnTestServer'),
serverArgs: [...kibanaFunctionalConfig.get('kbnTestServer.serverArgs'), `--map.includeElasticMapsService=false`],
serverArgs: [
...kibanaFunctionalConfig.get('kbnTestServer.serverArgs'),
`--map.includeElasticMapsService=false`,
],
},
};
}
2 changes: 1 addition & 1 deletion x-pack/test/disable_ems/tests/fonts.ts
Expand Up @@ -30,4 +30,4 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
});
});
}
}
8 changes: 2 additions & 6 deletions x-pack/test/disable_ems/tests/index.ts
Expand Up @@ -15,17 +15,13 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) {
describe('disable Elastic Maps Service', () => {
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
await kibanaServer.importExport.load(
'x-pack/test/disable_ems/kbn_archive.json'
);
await kibanaServer.importExport.load('x-pack/test/disable_ems/kbn_archive.json');
await browser.setWindowSize(1600, 1000);
});

after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/maps/data');
await kibanaServer.importExport.unload(
'x-pack/test/disable_ems/kbn_archive.json'
);
await kibanaServer.importExport.unload('x-pack/test/disable_ems/kbn_archive.json');
});

loadTestFile(require.resolve('./fonts'));
Expand Down

0 comments on commit 11a7973

Please sign in to comment.