[Osquery] [Fix] - Set snapshot as default result type (#144786)

This commit is contained in:
Tomasz Ciecierski 2022-11-08 12:09:20 +01:00 committed by GitHub
parent 7b02bba8df
commit bfff9747da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -23,4 +23,13 @@ describe('ALL - Saved queries', () => {
});
getSavedQueriesComplexTest(SAVED_QUERY_ID, SAVED_QUERY_DESCRIPTION);
it('checks default values on new saved query', () => {
cy.contains('Saved queries').click();
cy.contains('Add saved query').click();
// ADD MORE FIELDS HERE
cy.getBySel('resultsTypeField').within(() => {
cy.contains('Snapshot');
});
});
});

View file

@ -96,6 +96,7 @@ export const useSavedQueryForm = ({ defaultValue }: UseSavedQueryFormProps) => {
query: '',
interval: 3600,
ecs_mapping: {},
snapshot: true,
},
}),
};