예제 #1
0
        public void Assert_That_Page_Paths_Are_Correct()
        {
            VerifyThat.IsTrue(ContactsPage.IsAt, "Contact page path is not the expected one");

            ContactsPage.OpenFirstContact();
            VerifyThat.IsTrue(ContactViewPage.IsAt, "Contact view page path is not the expected one");

            EditContactPage.GoTo();
            VerifyThat.IsTrue(EditContactPage.IsAt, "Edit contact page path is not the expected one");

            EditContactPage.ClickSaveContactButton();
            VerifyThat.IsTrue(ContactViewPage.IsAt, "Contact view page path is not the expected one");

            LeftSideMenu.GoToContacts();
            NewContactPage.GoTo();
            VerifyThat.IsTrue(NewContactPage.IsAt, "New contact page path is not the expected one");

            ContactCreator.CreateSimpleContact();
            OrganizationsPage.FindOrganization().WithOrganizationName(ContactCreator.FirstContact.OrganizationName).Open();
            OrganizationViewPage.FindContactFromOrganizationContactList().WithFirstName(ContactCreator.FirstContact.FirstName).AndLastName(ContactCreator.FirstContact.LastName).Open();
            VerifyThat.IsTrue(ContactViewPage.IsAtFromWithinOrganizationViewPage, "Contact view page path from within organization view page is not the expected one");

            EditContactPage.GoTo();
            VerifyThat.IsTrue(EditContactPage.IsAtFromWithinOrganizationViewPage, "Edit contact page path from within organization view page is not the expected one");

            EditContactPage.ClickSaveContactButton();
            VerifyThat.IsTrue(ContactViewPage.IsAtFromWithinOrganizationViewPage, "Contact view page path from within organization view page is not the expected one");

            OrganizationsPage.FindOrganization().WithOrganizationName(ContactCreator.FirstContact.OrganizationName).Open();
            OrganizationViewPage.CreateContact();
            VerifyThat.IsTrue(NewContactPage.IsAtFromWithinOrganizationViewPage, "Contact view page path from within organization view page is not the expected one");
        }
예제 #2
0
 public void Duplicate_Contact_Indicator()
 {
     ContactCreator.CreateSimpleContact();
     LeftSideMenu.GoToContacts();
     NewContactPage.GoTo();
     NewContactPage.SetFirstName(ContactCreator.FirstContact.FirstName);
     NewContactPage.SetLastName(ContactCreator.FirstContact.LastName);
     AssertThat.IsTrue(NewContactPage.IsPossibleDuplicateAlertShown,
                       "There should be an alert at the top of the page that informs for the possibility of a duplicate contact");
 }
예제 #3
0
        public void Assert_Contact_Comment_Field_Character_Limit_Indicator_Works_Correctly()
        {
            NewContactPage.GoTo();
            NewContactPage.SetComments(" " + DummyData.SimpleText);
            VerifyThat.AreEqual(500 - NewContactPage.CommentsTextLength, NewContactPage.CommentsLimitIndicator,
                                $"Comments text length is {500 - NewContactPage.CommentsTextLength} the value indicator is displaying is {NewContactPage.CommentsLimitIndicator}");

            NewContactPage.SetComments(DummyData.SimpleText);
            VerifyThat.AreEqual(500 - NewContactPage.CommentsTextLength, NewContactPage.CommentsLimitIndicator,
                                $"Comments text length is {500 - NewContactPage.CommentsTextLength} the value indicator is displaying is {NewContactPage.CommentsLimitIndicator}");
        }
예제 #4
0
 public void Assert_That_Country_Combo_List_Is_Sorted_Alphabetically()
 {
     NewContactPage.GoTo();
     AssertThat.IsTrue(NewContactPage.AreCountryComboListsSorted, "Country combo list is not sorted alphabetically");
 }
예제 #5
0
 public void Assert_That_Department_Combo_List_Is_Sorted_Alphabetically()
 {
     NewContactPage.GoTo();
     AssertThat.IsTrue(NewContactPage.IsDepartmentComboListSorted, "Department combo list is not sorted alphabetically");
 }