import { TestPage } from "./lforms_testpage.po" ; import { browser , logging , element , by , WebElementPromise , ExpectedConditions } from 'protractor' ; describe ( 'tree lines' , function ( ) { let tp = new TestPage ( ) ; beforeAll ( async ( ) => { await browser . waitForAngularEnabled ( false ) ; } ) ; it ( 'should show the last items correctly as a sub-items' , function ( ) { tp . LoadForm . openFormBuilder ( ) ; var treeItem1 = element ( by . id ( '/questionHeaderC/answersC/textC/1/1/1' ) ) , treeItem2 = element ( by . id ( '/questionHeaderC/formulaC/1/1' ) ) ; expect ( treeItem1 . isDisplayed ( ) ) . toBe ( true ) ; expect ( treeItem2 . isDisplayed ( ) ) . toBe ( true ) ; } ) ; } ) ;