From 4b7f8070f7b6e88c1370b41b649ddbf45ecc58ce Mon Sep 17 00:00:00 2001 From: James Pogran Date: Mon, 16 Dec 2024 10:35:18 -0500 Subject: [PATCH] Fix flaky test by increasing sleep time This test was failing on macOS because the sleep time was too short. Increasing it to 500ms should be enough to make the test pass. --- src/test/e2e/specs/views/hcp.e2e.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/e2e/specs/views/hcp.e2e.ts b/src/test/e2e/specs/views/hcp.e2e.ts index 734acb1b1..b660fda55 100644 --- a/src/test/e2e/specs/views/hcp.e2e.ts +++ b/src/test/e2e/specs/views/hcp.e2e.ts @@ -108,7 +108,7 @@ describe('HCP tree view tests', () => { expect(await runTree?.isDisplayed()).is.true; // wait for the run to load otherwise the test will fail - await VSBrowser.instance.driver.sleep(100); + await VSBrowser.instance.driver.sleep(500); const runItem = await runTree.findItem('Run 1'); expect(runItem).not.undefined;