public void Check_Share_Contact_Email_Input_Filter() { ContactsPage.OpenFirstContact(); VerifyThat.IsFalse(ContactViewPage.IsContactShareableTo(DummyData.NonsenseValue), "Email field input does not follows email syntaxt but, it was accepted by the filter."); VerifyThat.IsFalse(ContactViewPage.IsContactShareableTo("[email protected]"), "Email field input does not follows email syntaxt but, it was accepted by the filter."); VerifyThat.IsFalse(ContactViewPage.IsContactShareableTo(DummyData.SimpleWord), "Email field input does not follows email syntaxt but, it was accepted by the filter."); }
public void Check_Share_Organization_Email_Input_Filter() { OrganizationsPage.OpenFirstOrganization(); VerifyThat.IsFalse(OrganizationViewPage.IsOrganizationShareableTo(DummyData.NonsenseValue), "Email field input does not follows email syntaxt but, it was accepted by the filter."); VerifyThat.IsFalse(OrganizationViewPage.IsOrganizationShareableTo("[email protected]"), "Email field input does not follows email syntaxt but, it was accepted by the filter."); VerifyThat.IsFalse(OrganizationViewPage.IsOrganizationShareableTo(DummyData.SimpleWord), "Email field input does not follows email syntaxt but, it was accepted by the filter."); }
public void Delete_Organization_Along_With_Its_Linked_Contacts() { ContactCreator.CreateSimpleOrphanContact(); ContactCreator.CreateSimpleOrphanContact(); ContactCreator.CreateSimpleOrphanContact(); OrganizationCreator.CreateSimpleOrganization(); OrganizationViewPage.AddContactsToContactList() .WithFirstName(ContactCreator.FirstContact.FirstName) .AndLastName(ContactCreator.FirstContact.LastName) .Add(); OrganizationViewPage.AddContactsToContactList() .WithFirstName(ContactCreator.SecondContact.FirstName) .AndLastName(ContactCreator.SecondContact.LastName) .Add(); OrganizationViewPage.AddContactsToContactList() .WithFirstName(ContactCreator.ThirdContact.FirstName) .AndLastName(ContactCreator.ThirdContact.LastName) .Add(); OrganizationViewPage.DeleteOrganization().WithContacts(); VerifyThat.IsFalse( OrganizationsPage.FindOrganization().WithOrganizationName(OrganizationCreator.FirstOrganization.OrganizationName).Find(), $"Organization with name {OrganizationCreator.FirstOrganization.OrganizationName} should be deleted but, it still exists" ); VerifyThat.IsFalse( ContactsPage.FindContact().ContainingKeyword(ContactCreator.FirstContact.FullName).Find(), $"Contact with name {ContactCreator.FirstContact.FullName} should be deleted along with its organization but, it still exists" ); VerifyThat.IsFalse( ContactsPage.FindContact().ContainingKeyword(ContactCreator.SecondContact.FullName).Find(), $"Contact with name {ContactCreator.FirstContact.FullName} should be deleted along with its organization but, it still exists" ); VerifyThat.IsFalse( ContactsPage.FindContact().ContainingKeyword(ContactCreator.ThirdContact.FullName).Find(), $"Contact with name {ContactCreator.FirstContact.FullName} should be deleted along with its organization but, it still exists" ); }
public void Signup_With_Email_Of_Invalid_Form() { LandingPage.SignupWithEmail("test"); VerifyThat.IsFalse(LandingPage.IsEmailValid, "There should be a message informing that a user with the given email, is already registered."); }