package com.Ceridian.tests;

import com.Ceridian.Pages.HomePage;
import com.Ceridian.Pages.Navigation;
import com.Ceridian.com.ExcelUtils;
import com.Ceridian.com.Helper;
import com.frameworkium.core.ui.pages.PageFactory;
import com.frameworkium.core.ui.tests.BaseTest;
import org.testng.annotations.Test;

/**
 * Created by Saahme on 19/07/2016.
 */
public class CD01 extends BaseTest {

@Test(description = "Change user details")
    public void CD05() {

    Helper helper = PageFactory.newInstance(Helper.class);
    ExcelUtils excelUtils = new ExcelUtils();
    String[] excelArray = excelUtils.readLoginInformation();

    HomePage homePage = new HomePage();
    homePage.openPage(excelArray[2])
            .logIn(excelArray[0], excelArray[1]);
    String firstName = helper.generateRandomName(5);
    String lastName = helper.generateRandomName(5);
    String middleName = helper.generateRandomName(5);
    Navigation navigation = PageFactory.newInstance(Navigation.class);
    navigation.clickMyDetailsImage()
            .updatePersonalDetails("Mrs", firstName, lastName,middleName);


}


}

@@ -618,16 +618,18 @@
 ion();%0A%0A
+//
     Home

test commit