Exemple #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");
        }
Exemple #2
0
        public void Search_Using_Side_Alphabet_Bar()
        {
            // Alphabet choice '#' was removed for Latin Alphabet

            //            AlphabetSideBar.SelectLetter(LatinAlphabet.RestChars);
            //            int expectedResult1 = 168;
            //            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult1, $"Alphabet side bar doesn't work using character '#' for latin alphabet. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult1}");

            AlphabetSideBar.SelectLetter(LatinAlphabet.Z);
            int expectedResult2 = 0;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult2, $"Alphabet side bar doesn't work using character 'Z' of latin alphabet. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult2}");

            AlphabetSideBar.SelectLetter(LatinAlphabet.P);
            int expectedResult3 = 2;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult3, $"Alphabet side bar doesn't work using character 'P' of latin alphabet. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult3}");

            // Alphabet choice '#' was removed for Greek Alphabet

            //            AlphabetSideBar.SelectLetter(GreekAlphabet.RestChars);
            //            int expectedResult4 = 35;
            //            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult4, $"Alphabet side bar doesn't work using character '#' for greek alphabet. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult4}");

            AlphabetSideBar.SelectLetter(GreekAlphabet.Α);
            int expectedResult5 = 4;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult5, $"Alphabet side bar doesn't work using character 'A' for greek alphabet. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult5}");

            AlphabetSideBar.SelectLetter(GreekAlphabet.Β);
            int expectedResult6 = 2;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult6, $"Alphabet side bar doesn't work using character 'B' for greek alphabet. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult6}");
        }
Exemple #3
0
        public void Filter_Using_Organization_Type()
        {
            LeftSideMenu.GoToOrganizations();
            OrganizationsPage.FilterBy().SelectingAccountType(AccountType.Consultant).Filter();
            int expectedResult1 = 0;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult1, $"The sum of organizations being displayed with Account Type = {AccountType.Consultant} is different from the expected. OrganizationsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult1}");

            OrganizationsPage.ResetFilters();
            OrganizationsPage.FilterBy().SelectingAccountType(AccountType.Reseller).Filter();
            int expectedResult2 = 10;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult2, $"The sum of organizations being displayed with Account Type = {AccountType.Reseller} is different from the expected. OrganizationsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult2}");

            OrganizationsPage.ResetFilters();
            OrganizationsPage.FilterBy().SelectingAccountType(AccountType.Customer).Filter();
            int expectedResult3 = 82;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult3, $"The sum of organizations being displayed with Account Type = {AccountType.Customer} is different from the expected. OrganizationsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult3}");

            OrganizationsPage.ResetFilters();
            OrganizationsPage.FilterBy().SelectingAccountType(AccountType.Supplier).Filter();
            int expectedResult4 = 7;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult4, $"The sum of organizations being displayed with Account Type = {AccountType.Supplier} is different from the expected. OrganizationsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult4}");

            OrganizationsPage.ResetFilters();
            OrganizationsPage.FilterBy().SelectingAccountType(AccountType.Partner).Filter();
            int expectedResult5 = 1;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult5, $"The sum of organizations being displayed with Account Type = {AccountType.Partner} is different from the expected. OrganizationsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult5}");
        }
Exemple #4
0
        public void ThenTheyShouldSeeThatSomeCommentTextIsItalic(string text)
        {
            var theActor = stage.GetTheActorInTheSpotlight();
            var comment  = GetCurrentComment();

            Then(theActor).Should(VerifyThat.TheRenderedText(text).Inside(comment).IsDisplayedWithinTheTag("em"));
        }
Exemple #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");
 }
Exemple #6
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");
 }
Exemple #7
0
        public void Filter_Organizations_With_SearchBox()
        {
            LeftSideMenu.GoToOrganizations();
            OrganizationsPage.FindOrganization().ContainingKeyword("koro").Find();
            int expectedResult1 = 2;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult1, $"Search using organization name field, with keyword = 'koro', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult1}");

            OrganizationsPage.FindOrganization().ContainingKeyword("21066").Find();
            int expectedResult2 = 3;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult2, $"Search using phone field, with keyword = '21066', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult2}");

            OrganizationsPage.FindOrganization().ContainingKeyword("@la").Find();
            int expectedResult3 = 6;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult3, $"Search using website name field, with keyword = '@la', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult3}");

            OrganizationsPage.FindOrganization().ContainingKeyword("γο").Find();
            int expectedResult4 = 3;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult4, $"Search using street name field, with keyword = 'γο', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult4}");

            OrganizationsPage.FindOrganization().ContainingKeyword("Καλλιθε").Find();
            int expectedResult5 = 4;

            VerifyThat.AreEqual(OrganizationsPage.TotalOrganizationsCountByLabel, expectedResult5, $"Search using city name field, with keyword = 'Καλλιθε', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={OrganizationsPage.TotalOrganizationsCountByLabel}, Expected={expectedResult5}");
        }
 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");
 }
 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.");
 }
Exemple #10
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");
 }
Exemple #11
0
        public void Search_Using_Searchbox()
        {
            CoworkersPage.FindCoworker().ContainingKeyword("γιάννης").Find();
            int expectedResult1 = 3;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCount, expectedResult1,
                                $"Search using first name field, with keyword = 'γιάννης', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCount}, Expected={expectedResult1}");

            CoworkersPage.FindCoworker().ContainingKeyword("Γιωργος").Find();
            int expectedResult2 = 3;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCount, expectedResult2,
                                $"Search using first name field, with keyword = 'Γιωργος', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCount}, Expected={expectedResult2}");

            CoworkersPage.FindCoworker().ContainingKeyword("research").Find();
            int expectedResult3 = 1;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCount, expectedResult3,
                                $"Search using department field, with keyword = 'research', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCount}, Expected={expectedResult3}");

            CoworkersPage.FindCoworker().ContainingKeyword("13332423").Find();
            int expectedResult4 = 1;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCount, expectedResult4,
                                $"Search using mobile phone field, with keyword = '13332423', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCount}, Expected={expectedResult4}");

            CoworkersPage.FindCoworker().ContainingKeyword("koko").Find();
            int expectedResult5 = 1;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCount, expectedResult5,
                                $"Search using email field, with keyword = 'koko', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCount}, Expected={expectedResult5}");
        }
Exemple #12
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.");
 }
Exemple #13
0
        public void Search_Using_Side_Alphabet_Bar()
        {
            LeftSideMenu.GoToCoworkers();

            AlphabetSideBar.SelectLetter(LatinAlphabet.R);
            int expectedResult1 = 1;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCountByLabel, expectedResult1, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCountByLabel}, Expected={expectedResult1}");

            AlphabetSideBar.SelectLetter(LatinAlphabet.RestChars);
            int expectedResult2 = 10;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCountByLabel, expectedResult2, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCountByLabel}, Expected={expectedResult2}");

            AlphabetSideBar.SelectLetter(GreekAlphabet.RestChars);
            int expectedResult4 = 1;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCountByLabel, expectedResult4, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCountByLabel}, Expected={expectedResult4}");

            AlphabetSideBar.SelectLetter(GreekAlphabet.Κ);
            int expectedResult5 = 2;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCountByLabel, expectedResult5, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCountByLabel}, Expected={expectedResult5}");

            AlphabetSideBar.SelectLetter(GreekAlphabet.Φ);
            int expectedResult6 = 1;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCountByLabel, expectedResult6, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCountByLabel}, Expected={expectedResult6}");
        }
Exemple #14
0
        public void Search_Using_Side_Alphabet_Bar()
        {
            LeftSideMenu.GoToOrganizations();

            AlphabetSideBar.SelectLetter(LatinAlphabet.RestChars);
            int expectedResult1 = 0;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult1, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult1}");

            AlphabetSideBar.SelectLetter(LatinAlphabet.Z);
            int expectedResult2 = 0;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult2, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult2}");

            AlphabetSideBar.SelectLetter(LatinAlphabet.L);
            int expectedResult3 = 93;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult3, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult3}");

            AlphabetSideBar.SelectLetter(GreekAlphabet.RestChars);
            int expectedResult4 = 200;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult4, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult4}");

            AlphabetSideBar.SelectLetter(GreekAlphabet.Α);
            int expectedResult5 = 0;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult5, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult5}");

            AlphabetSideBar.SelectLetter(GreekAlphabet.Β);
            int expectedResult6 = 0;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult6, $"Alphabet side bar doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult6}");
        }
Exemple #15
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");
 }
Exemple #16
0
 public static void CleanUp()
 {
     FirstOrganization.CleanUp();
     SecondOrganization.CleanUp();
     ThirdOrganization.CleanUp();
     LeftSideMenu.GoToContacts();
     VerifyThat.AreEqual(InitialOrganizationCount, OrganizationsPage.TotalOrganizationsCountByLabel,
                         $"Total organizations count is not the same as in the test initiation (Expected={InitialOrganizationCount}, Actual={OrganizationsPage.TotalOrganizationsCountByLabel}). Some organizations may have not been cleaned up at the end of test.");
 }
Exemple #17
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");
        }
Exemple #18
0
        public void Filter_Using_Filter_By()
        {
            ContactsPage.FilterBy().SelectingAllowEmail().Filter();
            var expectedResult1 = 85;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult1, $"The sum of contacts being displayed, with Allow Emails = True, is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult1}");
            ContactsPage.ResetFilters();

            ContactsPage.FilterBy().SelectingAllowSMS().Filter();
            var expectedResult2 = 75;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult2, $"The sum of contacts being displayed, with Allow SMS = True, is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult2}");
            ContactsPage.ResetFilters();

            ContactsPage.FilterBy().SelectingAllowPhones().Filter();
            var expectedResult3 = 49;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult3, $"The sum of contacts being displayed, with Allow Phones = True, is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult3}");
            ContactsPage.ResetFilters();

            ContactsPage.FilterBy().SelectingOrphans().Filter();
            var expectedResult4 = 17;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult4, $"The sum of orphan contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult4}");
            ContactsPage.ResetFilters();

            ContactsPage.FilterBy().SelectingDepartment(Department.Logistics).Filter();
            var expectedResult5 = 13;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult5, $"The sum of contacts being displayed and belong to Logistics department, is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult5}");
            ContactsPage.ResetFilters();

            ContactsPage.FilterBy().SelectingDepartment(Department.Consulting).Filter();
            var expectedResult6 = 57;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult6, $"The sum of contacts being displayed and belong to Consulting department, is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult6}");
            ContactsPage.ResetFilters();

            ContactsPage.FilterBy().SelectingAllowEmail().SelectingDepartment(Department.RnD).Filter();
            var expectedResult7 = 7;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult7, $"The sum of contacts being displayed, with Allow Email = True and belong to RnD department, is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult7}");
            ContactsPage.ResetFilters();

            ContactsPage.FilterBy()
            .SelectingAllowSMS()
            .SelectingAllowEmail()
            .SelectingDepartment(Department.Sales)
            .SelectingDepartment(Department.Administration)

            .Filter();
            var expectedResult8 = 6;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult8, $"The sum of contacts being displayed, with Allow SMS and Emails and belong either to the Sales or Administration departments, is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult8}");
        }
Exemple #19
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");
 }
        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");
        }
Exemple #21
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}");
        }
        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.");
        }
        public void Import_Contacts_With_Invalid_Birthdate_Values()
        {
            ContactCreator.ImportTemplateContactWithInvalidBirthdate();
            AssertThat.IsTrue(ContactCreator.IsContactFileImportedSuccessfully, "Contact were not imported but they should.");
            ContactsPage.FindContact().WithFirstName(ContactCreator.FirstContact.FirstName).AndLastName(ContactCreator.FirstContact.LastName).Open();
            VerifyThat.AreEqual(ContactViewPage.Birthdate, "", $"Contact birthdate should be empty because imported contact's birthdate value is {ContactCreator.FirstContact.Birthdate} which is invalid.");

            ContactsPage.FindContact().WithFirstName(ContactCreator.SecondContact.FirstName).AndLastName(ContactCreator.SecondContact.LastName).Open();
            VerifyThat.AreEqual(ContactViewPage.Birthdate, "", $"Contact birthdate should be empty because imported contact's birthdate value is {ContactCreator.SecondContact.Birthdate} which is invalid.");

            ContactsPage.FindContact().WithFirstName(ContactCreator.ThirdContact.FirstName).AndLastName(ContactCreator.ThirdContact.LastName).Open();
            VerifyThat.AreEqual(ContactViewPage.Birthdate, "", $"Contact birthdate should be empty because imported contact's birthdate value is {ContactCreator.ThirdContact.Birthdate} which is invalid.");
        }
Exemple #24
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");
        }
Exemple #25
0
        public void Filter_Using_Department_Filter()
        {
            CoworkersPage.FilterBy().SelectingDepartment(Department.RnD).Filter();
            var expectedResult1 = 4;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCount, expectedResult1,
                                $"The sum of contacts being displayed, with Allow Emails = True, is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCount}, Expected={expectedResult1}");
            CoworkersPage.ResetFilters();

            CoworkersPage.FilterBy().SelectingDepartment(Department.Administration).SelectingDepartment(Department.Consulting).Filter();
            var expectedResult2 = 5;

            VerifyThat.AreEqual(CoworkersPage.TotalCoworkersCount, expectedResult2,
                                $"The sum of contacts being displayed, with Allow Emails = True, is different from the expected. ContactsDisplayed={CoworkersPage.TotalCoworkersCount}, Expected={expectedResult2}");
            CoworkersPage.ResetFilters();
        }
Exemple #26
0
        public void Can_Use_Contactlist_Searchbox()
        {
            ContactsPage.FindContact().ContainingKeyword("lavi").Find();
            int expectedResult1 = 1;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCount, expectedResult1, $"Search using organization field, with keyword = 'lavi', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult1}");

            ContactsPage.FindContact().ContainingKeyword("παπα").Find();
            int expectedResult2 = 9;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCount, expectedResult2, $"Search using last name field, with keyword = 'παπα', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult2}");

            ContactsPage.FindContact().ContainingKeyword("πούλου").Find();
            int expectedResult3 = 6;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCount, expectedResult3, $"Search using last name field, with keyword = 'πούλου', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult3}");
        }
        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");
        }
Exemple #28
0
        public void Search_Using_Searchbox()
        {
            ContactsPage.FindContact().ContainingKeyword("lavi").Find();
            int expectedResult1 = 1;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult1, $"Search using organization field, with keyword = 'lavi', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult1}");

            ContactsPage.FindContact().ContainingKeyword("παπα").Find();
            int expectedResult2 = 9;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult2, $"Search using surname field, with keyword = 'παπα', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult2}");

            ContactsPage.FindContact().ContainingKeyword("21066").Find();
            int expectedResult3 = 1;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult3, $"Search using phone field, with keyword = '21066', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult3}");

            ContactsPage.FindContact().ContainingKeyword("αργυρουπ").Find();
            int expectedResult4 = 18;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult4, $"Search using city field, with keyword = 'αργυρουπ', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult4}");

            ContactsPage.FindContact().ContainingKeyword("βουλιαγμ").Find();
            int expectedResult5 = 13;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult5, $"Search using street field, with keyword = 'βουλιαγμ', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult5}");

            ContactsPage.FindContact().ContainingKeyword("roma").Find();
            int expectedResult6 = 21;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult6, $"Search using country field, with keyword = 'roma', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult6}");

            ContactsPage.FindContact().ContainingKeyword("director").Find();
            int expectedResult7 = 7;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCountByLabel, expectedResult7, $"Search using job title field, with keyword = 'director', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult7}");

            ContactsPage.FindContact().ContainingKeyword("kosmocar.gr").Find();
            int expectedResult8 = 17;

            VerifyThat.AreEqual(ContactsPage.TotalContactsCount, expectedResult8, $"Search using website field, with keyword = 'kosmocar.gr', doesn't work. The sum of contacts being displayed is different from the expected. ContactsDisplayed={ContactsPage.TotalContactsCount}, Expected={expectedResult8}");
        }
        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"
                );
        }
Exemple #30
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");
        }