2

How can I test how to manually open an angular material directive for unit testing?

          <div layout-gt-xs="row">
                <div class="col-md-12">
                    <md-input-container>
                        <label class="input-label">{{ 'policyform.DOB' | translate }}</label>
                        <md-datepicker ng-model="vm.data.dob" name="policyHolderDob"
                            ng-required="vm.config.dob.required"
                            md-min-date="vm.minDate"
                            md-max-date="vm.maxDate"
                            min-age="{{vm.config.dob.minage}}"
                            max-age="{{vm.config.dob.maxage}}">
                        </md-datepicker>
                        <uex-form-validation form="vm.policyForm" field="policyHolderDob" config="vm.config.dob"></uex-form-validation>
                    </md-input-container>
               </div>
          </div>
Mathemats
  • 1,185
  • 4
  • 22
  • 35
iQhry
  • 91
  • 8
  • 2
    That can't be achieved with an unit test. What you looking for is a functionalTest. – lin Mar 30 '17 at 08:22

0 Answers0