public void testBannerAddressDetails(PageBanner banner, UserProfile overviewData)
      throws Exception {
    String addressDetails = banner.getBannerAddressText();
    String addressToken[] = addressDetails.split(", ");
    Assert.assertEquals(
        addressToken[0],
        overviewData.getAddress1(),
        "The correct Address1 is not displayed in banner");
    AutomationLog.info("Updated address1 found in banner");

    Assert.assertEquals(
        addressToken[1],
        overviewData.getAddress2(),
        "The correct Address2 is not displayed in banner");
    AutomationLog.info("Updated address2  found in banner");

    Assert.assertEquals(
        addressToken[2], overviewData.getCity(), "The correct City is not displayed in banner");
    AutomationLog.info("Updated City found in banner");

    createStateAbbreviationMap();

    String stateAndZipcode[] = addressToken[3].split(" ");
    String abbreviation = getStateAbbreviation(overviewData.getState());
    Assert.assertEquals(
        stateAndZipcode[0], abbreviation, "The correct state is not displayed in banner");
    AutomationLog.info("Updated State found in banner");

    Assert.assertEquals(
        stateAndZipcode[1],
        overviewData.getZipCode(),
        "The correct Zipcode is not displayed in banner");
    AutomationLog.info("Updated Zip found in banner");
  }
 public void testBannerPhoneDetails(PageBanner banner, UserProfile overviewData) throws Exception {
   String phoneDetails = banner.getBannerWorkPhoneText();
   String phoneToken[] = phoneDetails.split(": ");
   String formattedPhoneNumber = formatPhoneNumber(overviewData.getWorkPhone());
   Assert.assertEquals(
       phoneToken[1], formattedPhoneNumber, "The correct Workphone is not displayed in banner");
   AutomationLog.info("Updated WorkPhone found in banner");
 }
 public void verifyBannerDetails(PageBanner banner, UserProfile overviewData) throws Exception {
   String newBannerNameAfterSavingOverviewData = banner.getBannerText();
   Assert.assertEquals(
       newBannerNameAfterSavingOverviewData,
       overviewData.getName(),
       "Expected name is not displayed in banner");
   AutomationLog.info("Updated Name displayed on Banner");
 }
 public void testBannerMobileDetails(PageBanner banner, UserProfile overviewData)
     throws Exception {
   String mobileDetails = banner.getBannerMobilePhoneText();
   String mobileToken[] = mobileDetails.split(": ");
   String formattedMobileNumber = formatPhoneNumber(overviewData.getMobilePhone());
   Assert.assertEquals(
       mobileToken[1],
       formattedMobileNumber,
       "The correct Mobile number is not displayed in banner");
   AutomationLog.info(" Updated MobileNumber found in banner");
 }
  @Override
  protected void verifyTestCases() throws Exception {
    UserProfile userData = getTestOverviewData();

    overviewTab.populateOverviewDetails(userData);
    overviewTab = overviewTab.saveOverviewDetails();
    WaitFor.waitForPageToLoad(
        Page.driver,
        overviewTab.msg_SuccessAfterSave().getText(),
        overviewTab.neighborhoodlocator());

    pageBanner = dashboard.pageBanner();
    WaitFor.waitForPageToLoad(Page.driver, userData.getName(), pageBanner.getBannerTextLocater());

    verifyUpdatedOverviewBanner(pageBanner, userData);
    verifyUpdatedOverviewTabForm(overviewTab, userData);

    verifyIfEmailFieldIsEditable();

    verifyIfClickingSpecializedNeighborhoodsShowsDropDownToSelectNeighborhoods();
    verifyIfMoreThanFiveNeighborhoodsCanBeAddedInSpecializedNeighborhoods();
  }