public void Assert_That_Combo_List_Fields_Are_Sorted_Alphabetically() { LeftSideMenu.GoToOrganizations(); NewOrganizationPage.GoTo(); AssertThat.IsTrue(NewOrganizationPage.AreCountryComboListsSorted, "Country combo list is not sorted alphabetically"); AssertThat.IsTrue(NewOrganizationPage.IsIndustryComboListSorted, "Country combo list is not sorted alphabetically"); AssertThat.IsTrue(NewOrganizationPage.IsOrganizationTypeComboListSorted, "Country combo list is not sorted alphabetically"); }
public void Assert_Organization_Comment_Field_Character_Limit_Indicator_Works_Correctly() { LeftSideMenu.GoToOrganizations(); NewOrganizationPage.GoTo(); NewOrganizationPage.SetComments(" " + DummyData.SimpleText); VerifyThat.AreEqual(500 - NewOrganizationPage.CommentsTextLength, NewOrganizationPage.CommentsLimitIndicator, $"Comments text length is {500 - NewContactPage.CommentsTextLength} the value indicator is displaying is {NewOrganizationPage.CommentsLimitIndicator}"); NewOrganizationPage.SetComments(DummyData.SimpleText); VerifyThat.AreEqual(500 - NewOrganizationPage.CommentsTextLength, NewOrganizationPage.CommentsLimitIndicator, $"Comments text length is {500 - NewOrganizationPage.CommentsTextLength} the value indicator is displaying is {NewOrganizationPage.CommentsLimitIndicator}"); }
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"); }