From 4e702716bdec45d327d51b06ab9a2dc144bd7179 Mon Sep 17 00:00:00 2001 From: Steve Faulkner Date: Mon, 8 Mar 2021 14:41:12 -0600 Subject: [PATCH] More Flaky Test Improvements (#498) --- test/mongo/mongoIndexPolicy.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/mongo/mongoIndexPolicy.spec.ts b/test/mongo/mongoIndexPolicy.spec.ts index 0eef4f2e8..340973327 100644 --- a/test/mongo/mongoIndexPolicy.spec.ts +++ b/test/mongo/mongoIndexPolicy.spec.ts @@ -4,7 +4,7 @@ import { createDatabase, onClickSaveButton } from "../utils/shared"; import { generateUniqueName } from "../utils/shared"; import { ApiKind } from "../../src/Contracts/DataModels"; -const LOADING_STATE_DELAY = 3000; +const LOADING_STATE_DELAY = 5000; jest.setTimeout(300000); describe("MongoDB Index policy tests", () => { @@ -74,6 +74,7 @@ describe("MongoDB Index policy tests", () => { let singleFieldIndexInserted = false, wildCardIndexInserted = false; await frame.waitFor("div[data-automationid='DetailsRowCell'] > span"), { visible: true }; + await frame.waitFor(20000); const elements = await frame.$$("div[data-automationid='DetailsRowCell'] > span"); for (let i = 0; i < elements.length; i++) {