Exemple #1
0
 public void TableChainTest()
 {
     PerformancePage.Open();
     PerformancePage.CheckOpened();
     PerformancePage.UsersTable.AssertThat()
     .Size(400)
     .Size(Is.GreaterThan(399))
     .Size(Is.LessThanOrEqualTo(400))
     .Size(Is.GreaterThanOrEqualTo(400))
     .Size(Is.LessThan(401))
     .HasRowWithValues(
         HasValue("Brian Meyer", InColumn("Name")),
         HasValue("*****@*****.**", InColumn("Email")))
     .NotEmpty()
     .RowsWithValues(3, ContainsValue("Baker", InColumn(1)))
     .HasColumn("Email")
     .HasColumns(new[] { "Name", "City" })
     .Columns(Is.SubsequenceOf(new[] { "Name", "City", "Phone", "Email", "Address" }))
     .Tag(ContainsString("table"))
     .Displayed()
     .Enabled()
     .Attr("id", ContainsString("users-table"))
     .CssClass(ContainsString("uui-table"))
     .Css("color", ContainsString("rgba(102, 102, 102, 1)"))
     .Text(ContainsString("Name"))
     .HasClass("stripe");
 }
Exemple #2
0
 public void IsValidationTest()
 {
     TestSite.Html5Page.Progress.AssertThat().MaxValue(Is.EqualTo(100))
     .Value(Is.EqualTo(70));
     TestSite.Html5Page.Progress.Is().Value(Is.GreaterThanOrEqualTo(10))
     .Value(Is.LessThanOrEqualTo(100))
     .Enabled();
 }
Exemple #3
0
 public void IsValidationTest()
 {
     TestSite.Html5Page.Volume.Is().Enabled();
     TestSite.Html5Page.Volume.AssertThat().MinValue(Is.EqualTo(10))
     .MaxValue(Is.EqualTo(100))
     .Step((Is.EqualTo(5)));
     TestSite.Html5Page.Volume.Is().Value(Is.GreaterThanOrEqualTo(10))
     .Value(Is.LessThanOrEqualTo(100))
     .Value(Is.EqualTo(90));
 }
 public void IsValidationTest()
 {
     _height.AssertThat().MinValue(Is.EqualTo(0.3))
     .MaxValue(Is.EqualTo(2.5))
     .StepValue((Is.EqualTo(0.2)));
     _height.Is().Placeholder(ContainsStringMatcher.ContainsString("20 cm increments"))
     .Number(Is.GreaterThanOrEqualTo(0.3))
     .Number(Is.LessThanOrEqualTo(2.5));
     _height.AssertThat().Number(Is.EqualTo(2.1));
     _height.Is().Enabled();
 }