Give a bit more time for machines on CI

This commit is contained in:
Jean-Louis Leysens 2020-01-30 15:56:07 +01:00
parent fcf9f4b1e3
commit d11228d618
No known key found for this signature in database
GPG key ID: 7AE214E8B113FC9A

View file

@ -18,10 +18,7 @@ export default function({ getService, getPageObjects }) {
const esSupertest = getService('esSupertest');
const PageObjects = getPageObjects(['security', 'common', 'header', 'settings', 'watcher']);
// Still flaky test :c
// https://github.com/elastic/kibana/pull/56361
// https://github.com/elastic/kibana/pull/56304
describe.skip('watcher_test', function() {
describe('watcher_test', function() {
before('initialize tests', async () => {
// There may be system watches if monitoring was previously enabled
// These cannot be deleted via the UI, so we need to delete via the API
@ -38,12 +35,15 @@ export default function({ getService, getPageObjects }) {
await browser.setWindowSize(1600, 1000);
// TODO: Remove the retry.try wrapper once https://github.com/elastic/kibana/issues/55985 is resolved
retry.try(async () => {
// Try to give the license time to come through.
await PageObjects.common.sleep(2000);
await PageObjects.common.navigateToApp('watcher');
await testSubjects.find('createWatchButton');
});
});
it('create and save a new watch', async () => {
await PageObjects.common.sleep(500);
await PageObjects.watcher.createWatch(watchID, watchName);
const watch = await PageObjects.watcher.getWatch(watchID);
expect(watch.id).to.be(watchID);