restful-booker-platform
restful-booker-platform copied to clipboard
Contact form not accepting valid submissions
Submitting valid input on the home page's contact form throws ambiguous errors. This happens both on the live site as well as local builds.
Repro below fails in both Chrome and FF. Haven't tried others.
[Fact] public void ErrorMessage_AppearsOnValidSubmission() { IWebDriver driver = new FirefoxDriver(Path.GetFullPath(@"../../../"));
driver.Url = "https://automationintesting.online/";
driver.FindElement(By.Id("name")).SendKeys("Jim Holmes");
driver.FindElement(By.Id("email")).SendKeys("[email protected]");
driver.FindElement(By.Id("phone")).SendKeys("012345678901");
driver.FindElement(By.Id("subject")).SendKeys("blah blah");
driver.FindElement(By.Id("description")).SendKeys("moo goo gaipan");
driver.FindElement(By.Id("submitContact")).Click();
Assert.True(
driver.FindElement(By.CssSelector("div[class*='alert-danger']")).Displayed
);
driver.Close();
}