Skip to content

Commit

Permalink
Stabilize discover security tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Apr 18, 2022
1 parent 93a2184 commit 0599d9d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'security',
'share',
'spaceSelector',
'header',
]);
const testSubjects = getService('testSubjects');
const appsMenu = getService('appsMenu');
Expand Down Expand Up @@ -152,13 +153,17 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('allow saving currently loaded query as a copy', async () => {
await savedQueryManagementComponent.loadSavedQuery('OKJpgs');
await queryBar.setQuery('response:404');
await savedQueryManagementComponent.saveCurrentlyLoadedAsNewQuery(
'ok2',
'description',
true,
false
);
await PageObjects.header.waitUntilLoadingHasFinished();
await savedQueryManagementComponent.savedQueryExistOrFail('ok2');
await savedQueryManagementComponent.closeSavedQueryManagementComponent();
await testSubjects.click('showQueryBarMenu');
await savedQueryManagementComponent.deleteSavedQuery('ok2');
});
});
Expand Down

0 comments on commit 0599d9d

Please sign in to comment.