public void ThereAreAtLeastCasesCreated(int cases) { FlowUtilities.WaitUntil(() => { if (!(mainCasesPage.ReadPageLabel() > cases)) { this.GivenICreateANewCaseWithoutProblemReport(); } return(mainCasesPage.ReadPageLabel() > cases); }, TimeSpan.FromSeconds(10), TimeSpan.FromMilliseconds(100)); }