Esempio n. 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");
        }
 public void Organization_Address_Links_Navigate_To_Google_Maps()
 {
     OrganizationCreator.CreateOrganizationWithAllValues();
     VerifyThat.IsTrue(OrganizationViewPage.IsBillingAddressLinkActive, "Billing address link does not navigate to google maps");
     VerifyThat.IsTrue(OrganizationViewPage.IsOtherAddressLinkActive, "Shipping address link does not navigate to google maps");
     VerifyThat.IsTrue(OrganizationViewPage.IsShippingAddressLinkActive, "Other address link does not navigate to google maps");
 }
Esempio n. 3
0
 public void Contact_Address_Links_Navigate_To_Google_Maps()
 {
     ContactCreator.CreateContactWithAllValues();
     VerifyThat.IsTrue(ContactViewPage.IsHomeAddressLinkActive, "Work address link does not navigate to google maps");
     VerifyThat.IsTrue(ContactViewPage.IsOtherAddressLinkActive, "Work address link does not navigate to google maps");
     VerifyThat.IsTrue(ContactViewPage.IsWorkAddressLinkActive, "Work address link does not navigate to google maps");
 }
Esempio n. 4
0
 public void Contact_Emails_Are_Emailable()
 {
     ContactCreator.CreateContactWithAllValues();
     VerifyThat.IsTrue(ContactViewPage.IsWorkEmailEmailable, "Work email link is not active but it should");
     VerifyThat.IsTrue(ContactViewPage.IsPersonalEmailEmailable, "Personal email link is not active but it should");
     VerifyThat.IsTrue(ContactViewPage.IsOtherEmailEmailable, "Other email link is not active but it should");
 }
Esempio n. 5
0
 public void Contact_Emails_Are_Emailable()
 {
     LeftSideMenu.GoToCoworkers();
     CoworkersPage.OpenFirstCoworker();
     VerifyThat.IsTrue(CoworkerViewPage.IsWorkEmailEmailable, "Work email link is not active but it should");
     VerifyThat.IsTrue(CoworkerViewPage.IsPersonalEmailEmailable, "Personal email link is not active but it should");
 }
Esempio n. 6
0
 public void Coworker_Telephone_Numbers_Are_Callable()
 {
     CoworkersPage.OpenFirstCoworker();
     VerifyThat.IsTrue(CoworkerViewPage.IsWorkPhoneCallable, "Coworker work phone is not callable but it should");
     VerifyThat.IsTrue(CoworkerViewPage.IsWorkPhone2Callable, "Coworker work phone 2 is not callable but it should");
     VerifyThat.IsTrue(CoworkerViewPage.IsHomePhoneCallable, "Coworker home phone is not callable but it should");
     VerifyThat.IsTrue(CoworkerViewPage.IsMobilePhoneCallable, "Coworker mobile phone is not callable but it should");
 }
Esempio n. 7
0
        public void Assert_That_Page_Paths_Are_Correct()
        {
            LeftSideMenu.GoToCoworkers();

            VerifyThat.IsTrue(CoworkersPage.IsAt, "Coworker page path is not the expected one");

            CoworkersPage.OpenFirstCoworker();
            VerifyThat.IsTrue(CoworkerViewPage.IsAt, "Contact view page path is not the expected one");
        }
Esempio n. 8
0
        public void Navigate_To_Record_Lists_Through_See_All_Results()
        {
            UpperToolBar.UseGeneralSearch().WithKeyword("Παπ").AndSeeResultsForContacts();
            VerifyThat.IsTrue(ContactsPage.IsAt, "Browser should have navigate at contact list page");

            UpperToolBar.UseGeneralSearch().WithKeyword("Kno").AndSeeResultsForOrganizations();
            VerifyThat.IsTrue(OrganizationsPage.IsAt, "Browser should have navigate at organization list page");

            UpperToolBar.UseGeneralSearch().WithKeyword("Κοκ").AndSeeResultsForCoworkers();
            VerifyThat.IsTrue(CoworkersPage.IsAt, "Browser should have navigate at coworker list page");
        }
Esempio n. 9
0
        public void Individual_Record_Selection_From_General_Search_Navigates_To_Record_View()
        {
            UpperToolBar.UseGeneralSearch().ToFindContact("Mattia Pelloni").Open();
            VerifyThat.IsTrue(ContactViewPage.IsAt, "Contact view page should be displayed but is not.");

            UpperToolBar.UseGeneralSearch().ToFindOrganization("Kolonaki Center").Open();
            VerifyThat.IsTrue(OrganizationViewPage.IsAt, "Organization view page should be displayed but is not.");

            UpperToolBar.UseGeneralSearch().ToFindCoworker("Γεράσιμος Λυμπεράτος").Open();
            VerifyThat.IsTrue(CoworkerViewPage.IsAt, "Coworker view page should be displayed but is not.");
        }
Esempio n. 10
0
 public void Contact_Telephone_Numbers_Are_Callable()
 {
     ContactCreator.CreateContactWithAllValues();
     VerifyThat.IsTrue(ContactViewPage.IsMobilePhoneCallable, "Contact mobile phone is not callable but it should");
     VerifyThat.IsTrue(ContactViewPage.IsMobilePhone2Callable, "Contact mobile phone 2 is not callable but it should");
     VerifyThat.IsTrue(ContactViewPage.IsWorkPhoneCallable, "Contact work phone is not callable but it should");
     VerifyThat.IsTrue(ContactViewPage.IsWorkPhone2Callable, "Contact work phone 2 is not callable but it should");
     VerifyThat.IsTrue(ContactViewPage.IsHomePhoneCallable, "Contact home phone is not callable but it should");
     VerifyThat.IsTrue(ContactViewPage.IsHomePhone2Callable, "Contact home phone is not callable but it should");
     VerifyThat.IsTrue(ContactViewPage.IsOtherPhoneCallable, "Contact other phone is not callable but it should");
 }
Esempio n. 11
0
        public void Sort_Coworkers_Using_Sort_By()
        {
            CoworkersPage.SortBy().LastName().Ascending().Sort();
            VerifyThat.IsTrue(CoworkersPage.IsCoworkerListSortedByLastNameAscending, "Coworker list was expected to be sorted by last name ascending but, is not");

            CoworkersPage.SortBy().FirstName().Descending().Sort();
            VerifyThat.IsTrue(CoworkersPage.IsCoworkerListSortedByFirstNameDescending, "Coworker list was expected to be sorted by first name descending but, is not");

            CoworkersPage.SortBy().FirstName().Ascending().Sort();
            VerifyThat.IsTrue(CoworkersPage.IsCoworkerListSortedByFirstNameAscending, "Coworker list was expected to be sorted by first name ascending but, is not");

            CoworkersPage.SortBy().LastName().Descending().Sort();
            VerifyThat.IsTrue(CoworkersPage.IsCoworkerListSortedByLastNameDescending, "Coworker list was expected to be sorted by last name descending but, is not");
        }
        public void Assert_That_Page_Paths_Are_Correct()
        {
            LeftSideMenu.GoToOrganizations();
            VerifyThat.IsTrue(OrganizationsPage.IsAt, "Organization page path is not the expected one");

            OrganizationsPage.OpenFirstOrganization();
            VerifyThat.IsTrue(OrganizationViewPage.IsAt, "Organization view page path is not the expected one");

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

            EditOrganizationPage.ClickSaveOrganizationButton();
            VerifyThat.IsTrue(OrganizationViewPage.IsAt, "Organization view page path is not the expected one");

            LeftSideMenu.GoToOrganizations();
            NewOrganizationPage.GoTo();
            VerifyThat.IsTrue(NewOrganizationPage.IsAt, "New organization page path is not the expected one");
        }
Esempio n. 13
0
        public void Sort_Organizations_By_Sort_Options()
        {
            LeftSideMenu.GoToOrganizations();

            OrganizationsPage.SortBy().OrganizationName().Ascending().Sort();
            VerifyThat.IsTrue(OrganizationsPage.IsOrganizationListSortedByNameAscending, "Organization list was expected to be sorted by organization name ascending but, is not");

            OrganizationsPage.SortBy().OrganizationName().Descending().Sort();
            VerifyThat.IsTrue(OrganizationsPage.IsOrganizationListSortedByNameDescending, "Organization list was expected to be sorted by organization name descending but, is not");

            OrganizationsPage.SortBy().City().Ascending().Sort();
            VerifyThat.IsTrue(OrganizationsPage.IsOrganizationListSortedByCityAscending, "Organization list was expected to be sorted by city ascending but, is not");

            OrganizationsPage.SortBy().City().Descending().Sort();
            VerifyThat.IsTrue(OrganizationsPage.IsOrganizationListSortedByCityDescending, "Organization list was expected to be sorted by city descending but, is not");

            OrganizationsPage.SortBy().Profession().Ascending().Sort();
            VerifyThat.IsTrue(OrganizationsPage.IsOrganizationListSortedByProfessionAscending, "Organization list was expected to be sorted by profession ascending but, is not");

            OrganizationsPage.SortBy().Profession().Descending().Sort();
            VerifyThat.IsTrue(OrganizationsPage.IsOrganizationListSortedByProfessionDescending, "Organization list was expected to be sorted by profession descending but, is not");
        }
Esempio n. 14
0
 public void Signup_With_Email_That_Is_Not_Corporate()
 {
     LandingPage.SignupWithEmail("*****@*****.**");
     VerifyThat.IsTrue(LandingPage.IsEnterCorporateMessageShown, "There should be a message informing that a user with the given email, is already registered.");
 }