public void Inputs_GET_Renders() { TestForAllStylers(async http => { await http.GetAsync(ExamplesActions.Inputs()); }); }
public void Scroll_POST() { Test(async http => { var response = await http.GetAsync(ExamplesActions.Scroll()); await response.Form <object>().Submit(r => r.SetExpectedResponse(HttpStatusCode.OK)); }); }
public void ScrollIsMaintained() { App.GoTo(ExamplesActions.Scroll()); Func <long> getScrollPosition = () => (long)App.Exec("return $('#scrollDiv').scrollTop();"); getScrollPosition().Should().Be(0L); App.Exec("$('#postSubmit')[0].scrollIntoView()"); getScrollPosition().Should().BeGreaterThan(0L); App.Submit("Submit"); getScrollPosition().Should().BeGreaterThan(0L); }