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}"); }
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"); }
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"); }
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 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(); }
public void Check_That_Invite_Coworkers_Button_Works() { LeftSideMenu.GoToCoworkers(); CoworkersPage.ClickInviteCoworkers(); AssertThat.IsTrue(InvitePage.IsAt, "Browser should be at Invite new coworkers page, but is elsewhere."); }
public void Check_Contact_Is_Shareable_With_Valid_Email() { CoworkersPage.OpenFirstCoworker(); AssertThat.IsTrue(CoworkerViewPage.IsCoworkerShareableTo(DummyData.EmailValue), "Though email inserted is of valid syntax, Share button is not enabled."); }