From 27bc658fd01f131157b66eb8e999043e773f1a3c Mon Sep 17 00:00:00 2001 From: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:24:32 +0000 Subject: [PATCH] [Snapshot Restore] Increase sleep time in snapshot restore test (#171218) ## Summary While running the Snapshot restore test locally, I noticed that sometimes it fails because the created test snapshot is still loading at the time when the web driver tries to click the "Restore" button, so I'm increasing the sleep time a bit to make sure we allow enough time for the snapshot to be ready and to future-proof the test against flakiness. Flaky test runner build: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3982 --- .../test/functional/apps/snapshot_restore/snapshot_restore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/functional/apps/snapshot_restore/snapshot_restore.ts b/x-pack/test/functional/apps/snapshot_restore/snapshot_restore.ts index a1a6bfe6276f5..279babade39ff 100644 --- a/x-pack/test/functional/apps/snapshot_restore/snapshot_restore.ts +++ b/x-pack/test/functional/apps/snapshot_restore/snapshot_restore.ts @@ -38,7 +38,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { }); // Wait for snapshot to be ready - await pageObjects.common.sleep(1000); + await pageObjects.common.sleep(2000); // Refresh page so that the snapshot shows up in the snapshots table await browser.refresh();