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}"); }
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}"); }
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}"); }