/**
 * Test scripts for StatusBar
 *
 * Validating the 'mode' UX element showsu p
 */ import * as assert from "assert" ; import * as path from "path" ; import * as Oni from "oni-api" ; import { getElementByClassName } from "./Common" ; export const test = async ( oni ) => { await oni . automation . waitFor ( ( ) => getElementByClassName ( "mode" ) !== null ) ; const statusBarModeElement = getElementByClassName ( "mode" ) ; const textContent = statusBarModeElement . textContent ; assert . ok ( textContent . indexOf ( "normal" ) >= 0 , "Verify 'normal' was present in the statusbar mode item" ) ; } ;