Ejemplo n.º 1
0
 public void Organization_Value_At_Create_New_Contact_From_Within_Organization_Is_Locked()
 {
     LeftSideMenu.GoToOrganizations();
     OrganizationsPage.OpenFirstOrganization();
     OrganizationViewPage.CreateContact();
     AssertThat.IsFalse(NewContactPage.IsOrganizationNameEditable, "Organization name field is editable but the contact is being created from within an organization");
 }
Ejemplo n.º 2
0
 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.");
 }
Ejemplo n.º 3
0
 public void Create_Contact_From_Within_Organization()
 {
     LeftSideMenu.GoToOrganizations();
     OrganizationsPage.OpenFirstOrganization();
     ContactCreator.CreateSimpleContactFromWithinOrganization();
     AssertThat.IsTrue(ContactCreator.FirstContact.IsContactCreatedSuccessfully,
                       "Contact was not saved successfully but it should.");
     OrganizationViewPage.FindContactFromOrganizationContactList()
     .WithFirstName(ContactCreator.FirstContact.FirstName)
     .AndLastName(ContactCreator.FirstContact.LastName)
     .Open();
     AssertThat.IsTrue(ContactCreator.FirstContact.AreContactFieldValuesSavedCorrectly,
                       "Contact field values were not saved correctly");
 }
Ejemplo n.º 4
0
        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");
        }
Ejemplo n.º 5
0
 public void Check_Organization_Is_Shareable_With_Valid_Email()
 {
     OrganizationsPage.OpenFirstOrganization();
     AssertThat.IsTrue(OrganizationViewPage.IsOrganizationShareableTo(DummyData.EmailValue), "Though email inserted is of valid syntax, Share button is not enabled.");
 }