public void NestedPartialsPage_AddNewChild() { WaitUntil(x => _nestedPartialsPage.ChildCompositions.Count > 0); var compositionsBefore = _nestedPartialsPage.ChildCompositions.Count; _nestedPartialsPage.AddChild(); WaitUntil(x => _nestedPartialsPage.ChildCompositions.Count > compositionsBefore); var compositionsAfter = _nestedPartialsPage.ChildCompositions.Count; Assert.Greater(compositionsAfter, compositionsBefore); }
public void NestedPartialsPage_AddNewChild() { WaitUntil(x => _nestedPartialsPage.ChildDivs.Count > 0); var divsBefore = _nestedPartialsPage.ChildDivs.Count; _nestedPartialsPage.AddChild(); WaitUntil(x => _nestedPartialsPage.ChildDivs.Count > divsBefore); var divsAfter = _nestedPartialsPage.ChildDivs.Count; Assert.Greater(divsAfter, divsBefore); }