import { TestPage } from "./lforms_testpage.po" ; import { BuildTestPage } from "./buildTest.po" ; import TestUtil from "./util" ; import { browser , logging , element , by , WebElementPromise , ExpectedConditions } from 'protractor' ; describe ( 'build test page' , function ( ) { let tp ; let btp ; let LForms = ( global as any ) . LForms ; beforeAll ( async ( ) => { await browser . waitForAngularEnabled ( false ) ; tp = new TestPage ( ) ; btp = new BuildTestPage ( ) ; } ) ; it ( 'should have a drug name field that autocompletes' , function ( ) { btp . openPage ( ) ; expect ( btp . drugNameField . isDisplayed ( ) ) . toBeTruthy ( ) ; TestUtil . sendKeys ( btp . drugNameField , 'ar' ) ; browser . wait ( function ( ) { return btp . searchResults . isDisplayed ( ) ; } , tp . WAIT_TIMEOUT_1 ) ; } ) ; } ) ;