示例#1
0
 public void ContactForm_NonAlphaChar_LastName()
 {
     ContactUsPage.FillContactUsForm("Jack", "Broughton123!$%^", "*****@*****.**", "Test Message");
     ContactUsPage.Submit();
     Assert.AreEqual(nonAlphaErrorMessage, ContactUsPage.LastNameError());
     Assert.AreEqual(generalErrorMessage, ContactUsPage.GeneralError());
 }
示例#2
0
 public void ContactForm_OverMaxChar_LastName()
 {
     ContactUsPage.FillContactUsForm("Broughton", "JackJackJackJackJackJackJackJackJackJackJackJackJack",
                                     "*****@*****.**", "Test Message");
     ContactUsPage.Submit();
     Assert.AreEqual(generalErrorMessage, ContactUsPage.GeneralError());
     Assert.AreEqual(over50CharsErrorMessage, ContactUsPage.LastNameError());
 }
示例#3
0
 public void ContactForm_Only_Message()
 {
     ContactUsPage.FillContactUsForm("", "", "", "This is a message!");
     ContactUsPage.Submit();
     Assert.AreEqual(requiredMessage, ContactUsPage.FirstNameError());
     Assert.AreEqual(requiredMessage, ContactUsPage.LastNameError());
     Assert.AreEqual(requiredMessage, ContactUsPage.EmailError());
     Assert.AreEqual(generalErrorMessage, ContactUsPage.GeneralError());
 }
示例#4
0
 public void ContactForm_Only_Email()
 {
     ContactUsPage.FillContactUsForm("", "", "*****@*****.**", "");
     ContactUsPage.Submit();
     Assert.AreEqual(requiredMessage, ContactUsPage.FirstNameError());
     Assert.AreEqual(requiredMessage, ContactUsPage.LastNameError());
     Assert.AreEqual(requiredMessage, ContactUsPage.MessageError());
     Assert.AreEqual(generalErrorMessage, (ContactUsPage.GeneralError()));
 }
示例#5
0
 public void ContactForm_AllBlank()
 {
     ContactUsPage.Submit();
     Assert.AreEqual(requiredMessage, ContactUsPage.FirstNameError());
     Assert.AreEqual(requiredMessage, ContactUsPage.LastNameError());
     Assert.AreEqual(requiredMessage, ContactUsPage.EmailError());
     Assert.AreEqual(requiredMessage, ContactUsPage.MessageError());
     Assert.AreEqual(generalErrorMessage, ContactUsPage.GeneralError());
 }