Beispiel #1
0
 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.");
 }
Beispiel #2
0
 public void Organization_Name_Navigates_To_Organization_View()
 {
     ContactCreator.CreateSimpleContact();
     ContactViewPage.ClickOrganizationName();
     AssertThat.AreEqual(ContactCreator.FirstContact.OrganizationName, OrganizationViewPage.OrganizationName,
                         $"Browser should navigate to '{ContactCreator.FirstContact.OrganizationName}' organization view but, it did not");
 }
Beispiel #3
0
        public void Make_A_Contact_Favorite()
        {
            ContactCreator.CreateSimpleContact();
            ContactViewPage.SetContactFavorite(false);
            AssertThat.IsFalse(ContactViewPage.IsContactFavorite, "Contact should have been set as un-favorite, but it is still favorite");

            LeftSideMenu.GoToContacts();
            ContactsPage.FindContact().WithFirstName(ContactCreator.FirstContact.FirstName).AndLastName(ContactCreator.FirstContact.LastName).CheckFavorite();
            ContactsPage.FindContact().WithFirstName(ContactCreator.FirstContact.FirstName).AndLastName(ContactCreator.FirstContact.LastName).Open();

            AssertThat.IsTrue(ContactViewPage.IsContactFavorite, "Contact should have been set as favorite, but it is still un-favorite");

            ContactViewPage.SetContactFavorite(false);

            LeftSideMenu.GoToContacts();
            ContactsPage.FindContact().WithFirstName(ContactCreator.FirstContact.FirstName).AndLastName(ContactCreator.FirstContact.LastName).Open();
            AssertThat.IsFalse(ContactViewPage.IsContactFavorite, "Contact should have been set as favorite, but it is still un-favorite");
        }
Beispiel #4
0
 public void Check_Contact_Is_Shareable_With_Valid_Email()
 {
     ContactsPage.OpenFirstContact();
     AssertThat.IsTrue(ContactViewPage.IsContactShareableTo(DummyData.EmailValue), "Though email inserted is of valid syntax, Share button is not enabled.");
 }