public void TestCanLoadJqueryInstallScript() { var sut = new ScriptLoader(); string result = sut.GetJQueryInstallScript(); Assert.IsTrue(result.Length > 100); }
public void matches_class_in_middle_of_string(string browserType) { UseBrowser(browserType); ScriptLoader loader = new ScriptLoader(); GoToResource("CssClassConstraintTest.htm"); Browser.Element(Find.ById("second").And(new CssClassConstraint("marker"))).WaitUntilExists(5); }
public void TestGetCssMarkRemovalScript() { string cssSelector = Some.String(); string markerClass = Some.String(); var sut = new ScriptLoader(); var result = sut.GetCssMarkRemovalScript(cssSelector, markerClass); Assert.IsTrue(result.Length > 10); }
public void doesnt_match_other(string browserType) { UseBrowser(browserType); ScriptLoader loader = new ScriptLoader(); GoToResource("CssClassConstraintTest.htm"); Thread.Sleep(TimeSpan.FromSeconds(5).Milliseconds); Browser.Element(Find.ById("notmatch_1").And(new CssClassConstraint("marker").Not())).WaitUntilExists(5); Browser.Element(Find.ById("notmatch_2").And(new CssClassConstraint("marker").Not())).WaitUntilExists(5); Browser.Element(Find.ById("notmatch_3").And(new CssClassConstraint("marker").Not())).WaitUntilExists(5); }