text: /// <reference types="cypress" />
  
  
  import HomePageActions from '../../pageobjects/pageactions/HomePageActions'
  import AddCustomerPageActions from '../../pageobjects/pageactions/AddCustomerPageActions'
  
  
  describe("Adding a new Customer",()=>{
  
      const homePage = new HomePageActions()
      const addCust = new AddCustomerPageActions()
  
  
      before(()=>{
  
          cy.fixture('testdata').then((data)=>{
  
              globalThis.data = data
  
          })
  
  
      })
  
      beforeEach(()=>{
  
          homePage.navigateToURL()
  
  
      })
  
      it("Add Customer details",()=>{
          homePage.validateHomePage()
          homePage.loginAsBankManager()
          addCust.addCustomerDetails(data.firstname,data.lastname,data.postcode)
          addCust.validateAlert(data.alertmsg)
      })
  
      it("verify added Customer detail",()=>{
          homePage.navigateToHome()
      })
  
  
  
  })