Ejemplo n.º 1
0
 //Check if you see characters error
 public static void AssertYouSeeCharactersError(this CreatePage page)
 {
     Assert.AreEqual("The field Title must be a string with a maximum length of 50.", page.CharactersErrorMessage.Text);
 }
Ejemplo n.º 2
0
 //Check if you are on article list page
 public static void AssertYouAreOnArticleListPage(this CreatePage page)
 {
     Assert.AreEqual("http://localhost:60634/Article/List", page.URL);
 }
Ejemplo n.º 3
0
 //Check if you see content error
 public static void AssertYouSeeContentError(this CreatePage page)
 {
     Assert.AreEqual("The Content field is required.", page.ContentErrorMessage.Text);
 }
Ejemplo n.º 4
0
 //Check if you see title error
 public static void AssertYouSeeTitleError(this CreatePage page)
 {
     Assert.AreEqual("The Title field is required.", page.TitleErrorMessage.Text);
 }
Ejemplo n.º 5
0
 //Check if you see created article
 public static void AssertYouSeeArticle(this CreatePage page)
 {
     Assert.AreEqual("TestArticle12345", page.Article.Text);
 }
Ejemplo n.º 6
0
 //Check if you see Password text
 public static void AssertYouSeePassword(this CreatePage page)
 {
     Assert.AreEqual("Manage", page.ManageText.Text);
 }
Ejemplo n.º 7
0
 //Check if you see Log in button
 public static void AssertYouSeeLogInButton(this CreatePage page)
 {
     Assert.AreEqual("Log in", page.LoginButton.Text);
 }