-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '7.x' into backport/7.x/pr-55068
- Loading branch information
Showing
7 changed files
with
68 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...nitoring/public/components/alerts/configuration/__snapshots__/configuration.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ugins/monitoring/public/components/alerts/configuration/__snapshots__/step1.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...ns/siem/public/pages/detection_engine/components/signals_histogram_panel/helpers.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { showInitialLoadingSpinner } from './helpers'; | ||
|
||
describe('helpers', () => { | ||
describe('showInitialLoadingSpinner', () => { | ||
test('it should (only) show the spinner during initial loading, while we are fetching data', () => { | ||
expect(showInitialLoadingSpinner({ isInitialLoading: true, isLoadingSignals: true })).toBe( | ||
true | ||
); | ||
}); | ||
|
||
test('it should STOP showing the spinner (during initial loading) when the first data fetch completes', () => { | ||
expect(showInitialLoadingSpinner({ isInitialLoading: true, isLoadingSignals: false })).toBe( | ||
false | ||
); | ||
}); | ||
|
||
test('it should NOT show the spinner after initial loading has completed, even if the user requests more data (e.g. by clicking Refresh)', () => { | ||
expect(showInitialLoadingSpinner({ isInitialLoading: false, isLoadingSignals: true })).toBe( | ||
false | ||
); | ||
}); | ||
|
||
test('it should NOT show the spinner after initial loading has completed', () => { | ||
expect(showInitialLoadingSpinner({ isInitialLoading: false, isLoadingSignals: false })).toBe( | ||
false | ||
); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters