/**
 * Test script to verify the scenario where no neovim is installed
 *
 * We should be showing a descriptive error message...
 */ import * as assert from "assert" ; import * as os from "os" ; import * as path from "path" ; import * as Oni from "oni-api" ; const getInstallHelpElement = ( ) => { const elements = document . body . getElementsByClassName ( "install-help" ) ; if ( ! elements || ! elements . length ) { return null ; } else { return elements [ 0 ] ; } } ; export const test = async ( oni ) => { await oni . automation . waitFor ( ( ) => getInstallHelpElement ( ) !== null ) ; assert . ok ( true , "Found install help content as expected." ) ; } ; export const settings = { configPath : "NoInstalledNeovim.config.js" , allowLogFailures : true , } ;