public void ContactForm_NonAlphaChar_FirstName() { ContactUsPage.FillContactUsForm("$Jack#£££", "Broughton", "*****@*****.**", "Test Message"); ContactUsPage.Submit(); Assert.AreEqual(nonAlphaErrorMessage, ContactUsPage.FirstNameError()); Assert.AreEqual(generalErrorMessage, ContactUsPage.GeneralError()); }
public void ContactForm_OverMaxChar_FirstName() { ContactUsPage.FillContactUsForm("JackJackJackJackJackJackJackJackJackJackJackJackJack", "Broughton", "*****@*****.**", "Test Message"); ContactUsPage.Submit(); Assert.AreEqual(generalErrorMessage, ContactUsPage.GeneralError()); Assert.AreEqual(over50CharsErrorMessage, ContactUsPage.FirstNameError()); }
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()); }
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())); }
public void ContactForm_Only_LastName() { ContactUsPage.FillContactUsForm("", "Broughton", "", ""); ContactUsPage.Submit(); Assert.AreEqual(requiredMessage, ContactUsPage.FirstNameError()); Assert.AreEqual(requiredMessage, ContactUsPage.EmailError()); Assert.AreEqual(requiredMessage, ContactUsPage.MessageError()); Assert.AreEqual(generalErrorMessage, ContactUsPage.GeneralError()); }
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()); }