Skip to content

Commit

Permalink
[Snapshot Restore] Increase sleep time in snapshot restore test (elas…
Browse files Browse the repository at this point in the history
…tic#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
  • Loading branch information
ElenaStoeva authored Nov 15, 2023
1 parent ab7ebab commit 27bc658
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 27bc658

Please sign in to comment.