content: package com.anhtester.projects.cms.testcases;
  
  import com.anhtester.common.BaseTest;
  import com.anhtester.constants.FrameworkConstants;
  import com.anhtester.helpers.ExcelHelpers;
  import com.anhtester.projects.cms.CommonPageCMS;
  import com.anhtester.projects.cms.admin.pages.category.CategoryPage;
  import com.anhtester.projects.cms.admin.pages.logins.LoginPageCMS;
  import org.testng.annotations.Test;
  
  public class CategoryTest extends BaseTest {
  
      LoginPageCMS loginPageCMS;
      CategoryPage categoryPage;
      CommonPageCMS commonPageCMS;
      ExcelHelpers excelHelpers;
  
      public CategoryTest() {
          commonPageCMS = new CommonPageCMS();
          loginPageCMS = new LoginPageCMS();
          excelHelpers = new ExcelHelpers();
      }
  
      @Test
      public void TC_AddCategory() {
          loginPageCMS.loginSuccessAdminPage();
          categoryPage = commonPageCMS.clickMenuProducts().clickMenuCategory();
          excelHelpers.setExcelFile(FrameworkConstants.EXCEL_CMS_DATA, "Category");
          //category_name   order_number   meta_title  description
          categoryPage.clickAddNewButton()
                  .inputDataCategory(
                          excelHelpers.getCellData("category_name", 1),
                          excelHelpers.getCellData("order_number", 1),
                          excelHelpers.getCellData("meta_title", 1),
                          excelHelpers.getCellData("description", 1)
                  )
                  .clickSaveButton()
                  .checkCategoryDisplayed(excelHelpers.getCellData("category_name", 1));
      }
  
  }
  