text: function selectDayFromCurrent(day){
          let date = new Date()
          date.setDate(date.getDate() + day)
          let futureDay = date.getDate()
          let futureMonth = date.toLocaleDateString ('default', {month: 'short'})
          let dateAssert = futureMonth+' '+futureDay+', '+date.getFullYear()
          //TODO verify vi 21 time: 15min       
          cy.get('nb-calendar-navigation').invoke('attr', 'ng-reflect-date').then( dateAttribute => {
              if(!dateAttribute.includes(futureMonth)){
                  cy.get('[data-name="chevron-right"]').click()
                  selectDayFromCurrent(day)
              } else {
                  cy.get('.day-cell').not('.bounding-month').contains(futureDay).click()
              }
          })            
          return dateAssert
      }
  
  export class DatepickerPage {
      selectCommomDatepickerDateFromToday(dayFromToday) {
          cy.contains('nb-card', 'Common Datepicker').find('input').then((input) => {
              cy.wrap(input).click() 
              let dateAssert = selectDayFromCurrent(dayFromToday)
              cy.wrap(input).invoke('prop', 'value').should('contain', dateAssert)
              cy.wrap(input).should('have.value', dateAssert)
  
          })    
      }
  
      selectDatepickerWithRangeFromToday(firstDay, secondDay){
          cy.contains('nb-card', 'Datepicker With Range').find('input').then((input) => {
              cy.wrap(input).click() 
              let dateAssertFirst = selectDayFromCurrent(firstDay)
              let dateAssertSecond = selectDayFromCurrent(secondDay)
              cy.log(dateAssertFirst)
              cy.log(dateAssertSecond)
              const finalDate = dateAssertFirst+' - '+dateAssertSecond
              cy.wrap(input).invoke('prop', 'value').should('contain', finalDate)
              cy.wrap(input).should('have.value', finalDate)
  
          })    
      }
  }
  
  export const onDatepickerPage = new DatepickerPage()