[APM] Fix apm journey flakiness (#162879)

## Summary

Closes https://github.com/elastic/kibana/issues/162813

Fix APM journey flakiness

Tested against Flaky Test runner - [Passed
50/50](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2760)
This commit is contained in:
Achyut Jhunjhunwala 2023-08-01 14:05:56 +02:00 committed by GitHub
parent b95241f9ff
commit 9eec3aea39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,8 +25,8 @@ export const journey = new Journey({
// Setup Synthtrace Client
await synthClient.initialiseEsClient();
// Generate data using Synthtrace
const start = Date.now() - 1000;
const end = Date.now();
const start = Date.now() - 1000 * 60 * 15;
const end = Date.now() + 1000 * 60 * 15;
await synthClient.index(
generateData({
from: new Date(start).getTime(),
@ -35,7 +35,6 @@ export const journey = new Journey({
);
},
ftrConfigPath: 'x-pack/performance/configs/apm_config.ts',
skipped: true,
})
.step('Navigate to Service Inventory Page', async ({ page, kbnUrl }) => {
await page.goto(kbnUrl.get(`app/apm/services`));