mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
8159718eee
commit
f75c10f30e
1 changed files with 4 additions and 3 deletions
|
@ -256,12 +256,13 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
})
|
||||
)
|
||||
.forEach(alertInstanceDuration => {
|
||||
// make sure the duration is within a 2 second range
|
||||
// make sure the duration is within a 10 second range which is
|
||||
// good enough as the alert interval is 1m, so we know it is a fresh value
|
||||
expect(alertInstanceDuration.as('milliseconds')).to.greaterThan(
|
||||
durationFromInstanceTillPageLoad.subtract(1000 * 2).as('milliseconds')
|
||||
durationFromInstanceTillPageLoad.subtract(1000 * 10).as('milliseconds')
|
||||
);
|
||||
expect(alertInstanceDuration.as('milliseconds')).to.lessThan(
|
||||
durationFromInstanceTillPageLoad.add(1000 * 2).as('milliseconds')
|
||||
durationFromInstanceTillPageLoad.add(1000 * 10).as('milliseconds')
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue