예제 #1
0
 //Check if you are on Home Page
 public static void AssertYouAreOnHomePage(this ArticleDetailsPage page, string text)
 {
     Assert.AreEqual(text, page.Logo.Text);
 }
예제 #2
0
 //Check if you see Error 403
 public static void AssertYouHaveNoPermissions(this ArticleDetailsPage page)
 {
     Assert.AreEqual("HTTP Error 403.0 - Forbidden", page.Forbidden.Text);
 }
예제 #3
0
 //Check if Manage button is working on Home Page
 public static void AssertCreateButtonIsMissing(this ArticleDetailsPage page)
 {
     Assert.AreEqual("Register", page.RegistrationButton.Text);
 }
예제 #4
0
 //Check if you are on Manage page
 public static void AssertYouAreOnManagePage(this ArticleDetailsPage page)
 {
     Assert.AreEqual("Manage", page.ManageText.Text);
 }
예제 #5
0
 //Check if you are logged off
 public static void AssertYouAreNotLogged(this ArticleDetailsPage page)
 {
     Assert.AreEqual("Log in", page.LoginButton.Text);
 }
예제 #6
0
 //Check if you see Log in button
 public static void AssertYouAreOnCreatePage(this ArticleDetailsPage page)
 {
     Assert.AreEqual("Create Article", page.CreateArticleText.Text);
 }
예제 #7
0
 //Check if you are on article list page
 public static void AssertYouAreOnListPage(this ArticleDetailsPage page)
 {
     Assert.AreEqual("http://localhost:60634/Article/List", page.URL);
 }
예제 #8
0
 //Check if you see Log in button
 public static void AssertYouAreOnEditPage(this ArticleDetailsPage page)
 {
     Assert.AreEqual("Edit Article", page.EditArticleText.Text);
 }