/**
 * Test script to validate the window title is rendered
 */ import * as assert from "assert" ; import * as os from "os" ; import { createNewFile } from "./Common" ; export const test = async ( oni ) => { await oni . automation . waitForEditors ( ) ; await createNewFile ( "test_file" , oni ) ; await oni . automation . waitFor ( ( ) => { const titleBar = document . getElementById ( "oni-titlebar" ) ; return ( titleBar . textContent . indexOf ( "ONI" ) >= 0 && titleBar . textContent . indexOf ( "test_file" ) >= 0 ) ; } ) ; } ;