Skip to content

Commit

Permalink
use sensible timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 21, 2020
1 parent 5ad4c3d commit a5a10e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/functional/services/saved_query_management_component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function SavedQueryManagementComponentProvider({ getService }: FtrProvide
const testSubjects = getService('testSubjects');
const queryBar = getService('queryBar');
const retry = getService('retry');
const config = getService('config');

class SavedQueryManagementComponent {
public async getCurrentlyLoadedQueryID() {
Expand Down Expand Up @@ -177,7 +178,9 @@ export function SavedQueryManagementComponentProvider({ getService }: FtrProvide

await retry.try(async () => {
await testSubjects.click('saved-query-management-save-button');
await testSubjects.existOrFail('saveQueryForm');
await testSubjects.existOrFail('saveQueryForm', {
timeout: config.get('timeouts.waitForExists'),
});
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default function({ getPageObjects, getService }: FtrProviderContext) {
await PageObjects.timePicker.setDefaultAbsoluteRange();
}

// FLAKY: https://github.com/elastic/kibana/issues/45348
describe.skip('security', () => {
// eslint-disable-next-line ban/ban
describe.only('security', () => {
before(async () => {
await esArchiver.load('discover/feature_controls/security');
await esArchiver.loadIfNeeded('logstash_functional');
Expand Down

0 comments on commit a5a10e7

Please sign in to comment.