public void ADD_NEW_USER() { var signinPage = new Pages.SigninPage(this); signinPage.Open(); signinPage.Signin("adm@localhost", "box"); var page = new Pages.UsersPage(this); page.Open(); // press the ADD BUTTON should show the edit form I.Assert.Not.Exists(page.EditForm); I.Click(page.AddNewButton); I.Assert.Exists(page.EditForm); // try to save without filling the form I.Click(page.ApplyButton); I.Assert.Exists(page.RequiredEmailAlert); // try to use an invalid e-mail I.Enter("teste").In(page.UserEmail); I.Assert.Exists(page.RequiredEmailAlert); // try to use an valid e-mail I.Enter("*****@*****.**").In(page.UserEmail); I.Assert.Not.Visible(page.RequiredEmailAlert); }
public void VALID_SIGN() { var page = new Pages.SigninPage(this); page.Open(); page.Signin("adm@localhost", "box"); I.Assert.Url(new Pages.HomePage(this).Url); }
public void INVALID_SIGN() { var page = new Pages.SigninPage(this); page.Open(); I.Assert.Not.Visible(page.InvalidUserAlert); page.Signin("xxx@xxxxx", "xxxxx"); I.Assert.Visible(page.InvalidUserAlert); }